Removing/Replacing a content script from web page--does unregister currently work?
Removing/Replacing a content script from web page--does unregister currently work? Do you know if the unregister() function currently works in Firefox? I thought it wasn't working but it does after the page is reloaded. I was expecting the change to take place in the current load. I was able to register a content script, meaning inject via the background script at the desired point. However, I can't get unregister() to remove the content script from the page and then inject a new one. The first obj object loads into the page and functions, but the unregister and new register don't do anything. The post message in the else block sends the message back that the code entered the else block to unregister. If the obj objects are reversed, the first loads into the page and works, but nothing happens when try to unregister and register the new content. Changing the "matches" property and manifest.json permissions to all_urls made no difference; and no errors appear in t...