NoScript breaks Cocoon Plugin
Posted: Wed May 04, 2011 10:27 pm
I am a developer on the Firefox addon "Cocoon" (https://getcocoon.com/). Our users have been complaining that our addon is incompatible with NoScript (both are privacy/security solutions for Firefox - the intersection is large!)
The reason for the incompatibility (which we cannot, unfortunately, fix on our end) has to do with NoScripts initialization process:
- During profile-after-change, NoScript processes a variety of user-set lists of URIs
- To do this, it invokes IOService's newURL (in unwrapURL - line 155 in IOUtil.js)
- If NoScript gets loaded first, these calls to IOService prevent Cocoon from initializing properly
A few potential solutions exist:
- Patch unwrapURL to not call newURI with "http" URIs (which is not required for what it does)
- Change the load order so that NoScript calls init() on final-ui-startup, instead of profile-after-change
Either way is pretty straightforward and neither is "wrong", and neither way looks like it will hamper NoScript's functionality etc.
I wish there was a way for us to fix this, but we've exhausted all our options. If y'all have an idea, let me know! I also couldn't find a version control link on the website, if SVN or GIT exists, I'm happy to submit a patch.
Cheers,
Dan Staudigel
The reason for the incompatibility (which we cannot, unfortunately, fix on our end) has to do with NoScripts initialization process:
- During profile-after-change, NoScript processes a variety of user-set lists of URIs
- To do this, it invokes IOService's newURL (in unwrapURL - line 155 in IOUtil.js)
- If NoScript gets loaded first, these calls to IOService prevent Cocoon from initializing properly
A few potential solutions exist:
- Patch unwrapURL to not call newURI with "http" URIs (which is not required for what it does)
- Change the load order so that NoScript calls init() on final-ui-startup, instead of profile-after-change
Either way is pretty straightforward and neither is "wrong", and neither way looks like it will hamper NoScript's functionality etc.
I wish there was a way for us to fix this, but we've exhausted all our options. If y'all have an idea, let me know! I also couldn't find a version control link on the website, if SVN or GIT exists, I'm happy to submit a patch.
Cheers,
Dan Staudigel