On the pop-up page of your extensions, add the part of JS, which utilities are chrome.runtime.getBackgroundPage (callback) . Set the background page <html> id and use window.getElementById("myBackgroundPageHTMLElementId")
For example, your callback might look like this:
document.getElementById("myPopupHTMLElementId").outerHTML = backgroundWindow.getElementById("myBackgroundPageHTMLElementId").outerHTML
After completing this JS script, the HTML element of your popup page will be FULLY replaced by the background page (until you reload it)! This means that all attributes, even in the HTML element, are set to the version of the background page.
Hope this helps!
source share