RequestPolicyContinued / requestpolicy

a web browser extension that gives you control over cross-site requests. Available for XUL/XPCOM-based browsers.
https://github.com/RequestPolicyContinued/requestpolicy/wiki
Other
252 stars 35 forks source link

Is there a RequestPolicyContinued version for seamonkey 2.53 ? #915

Open jan-perl opened 1 year ago

jan-perl commented 1 year ago

Could a version of requestpolicy be made, supporting all versions of seamonkey 2.53 ?

The 0.5.27 version only gives a grey flag for all sites in seamonkey 2.53.16. For versions <= seamonkey 2.53.16, the 0.5.28.1-signed.1-signed Info worked well.

However, now almost all content is blocked in seamonkey 2.53.17 as soon as requestpolicy the 0.5.28.1- is enabled, with no option to switch it on. https://github.com/RequestPolicy/requestpolicy/issues/476

So, preferably, a newer RequestPolicy could be made working. I don't know how to debug plugins, but I'm willing to learn.

freecycler commented 9 months ago

I have the same issue with RequestPolicyContinued 0.5.32 (I found it at https://addons.thunderbird.net/en-US/seamonkey/addon/requestpolicy-legacy/ ) which was working well through seamonkey 2.53.16, but is broken in latest version.

Not sure there is any solution, I haven't seen new releases for a VERY long time.

freecycler commented 8 months ago

Well, I found the solution, user "raj_bhaskar" provided the clue at http://forums.mozillazine.org/viewtopic.php?p=14959997#p14959997

You can use 7Zip or similar to look inside the .xpi file. Find the file components\requestpolicyService.js, and edit it, you can use notepad, wordpad or similar. Search for the 2 instances of "nsIPrefBranch2" and change them to "nsIPrefBranch" so they look like this (the "// fix" indicates the original commented out line):

    this.prefs = this._prefService.getBranch("extensions.requestpolicy.")
// fix        .QueryInterface(CI.nsIPrefBranch2);
        .QueryInterface(CI.nsIPrefBranch);
    this.prefs.addObserver("", this, false);

    this._rootPrefs = this._prefService.getBranch("")
// fix        .QueryInterface(CI.nsIPrefBranch2);
        .QueryInterface(CI.nsIPrefBranch);

then save the file back inside the .xpi. Uninstall the extension from seamonkey, restart, install the edited version, restart again, and you should be back in business. Or if you want to trust some random stranger on the internet you can use requestpolicy_v05_legacy-0.5.32-fx+sm.4sm2_46.edited.xpi.zip