xiaoxiaoflood / firefox-scripts

userChromeJS / autoconfig.js and extensions
Mozilla Public License 2.0
1.02k stars 86 forks source link

Breaks on Firefox 108 #212

Closed ElDani82 closed 1 year ago

ElDani82 commented 1 year ago

I've been using this with LibreWolf for a while now, which is a more privacy-focused fork of Mozilla Firefox that is otherwise identical to the original. It worked on the last version 107.0.1-1 just fine, but the browser fails to start with the 108 update, whenever the contents of the fx-folder.zip are applied to the browser's installation directory.

Is there a way I could diagnose the root cause somehow? I only noticed the empty .startup-incomplete file in the profile folder, but couldn't locate any log files of the browser('s startup process).

benyaminl commented 1 year ago

This also break on Firefox 108, I mean they are the same, when you run on Linux, the error printed on terminal is, the script can't load Missing chrome or resource URL: chrome://userchromejs/content/userChrome.jsm , I think that's based on the config.js

cc @xiaoxiaoflood, does the new firefox drop the userChrome.jsm?

EDIT 1: Even with userChrome.jsm is there, Firefox doesn't start sadly... *I'm using the extension only at start, now with full script added using userChrome.jsm.. it is still not working, sadly... no error or such, sad...

dv8472 commented 1 year ago

This sounds similar to my problem too. OS: Arch Linux (not sure what all OSs are affected) After I updated yesterday to FF v108, I had problem with the TMP extension. Have updated the fx-folder.zip, and the FF did not start. So far I've managed to find, that the new content in config.js https://github.com/xiaoxiaoflood/firefox-scripts/commit/66e896ec1514499557b64ce205104b04cdb8444a just under the // signing bypass by Dumby from forum.mozilla-russia.org is the cause. When I remove that particular part out of the config.js, I'm able to start FF, but I'm unable to install the add-on because of "This add-on could not be installed because it has not been verified.". However, workaround (works until next FF restart, then I have to repeat this again) is possible through the "Debug Add-ons".

megamorphg commented 1 year ago

I'm on 108.0 (release) and 109b2 (developer) on Windows 10 and 11 64x and both work fine with the latest updates (I just use a couple add-ons and most of the scripts).

savoury1 commented 1 year ago

Running latest Firefox 108 from deb package (not Snap) on Ubuntu and receiving the same error as @benyaminl mentioned in https://github.com/xiaoxiaoflood/firefox-scripts/issues/212#issuecomment-1355943179 above, specifically:

Missing chrome or resource URL: chrome://userchromejs/content/userChrome.jsm

Removing /usr/lib/firefox/config.js completely allows Firefox to load, didn't try removing just the code for signing bypass as @dv8472 mentioned in https://github.com/xiaoxiaoflood/firefox-scripts/issues/212#issuecomment-1356083075, but then there is no userChromeJS facility of course. So this is an additional confirmation that there is a notable issue with the latest Firefox 108 and the config.js script.

benyaminl commented 1 year ago

For another FYI, some other extension also broken on 108, I don't know why, some folks on /r/firefox said that noscript is broken, at least it's confirmed.

alemenke commented 1 year ago

I'm running version 108.0.1+build1-0ubuntu0.20.04.1 from the ubuntu repository. Firefox does not start with the config.js from https://github.com/xiaoxiaoflood/firefox-scripts/commit/66e896ec1514499557b64ce205104b04cdb8444a

Unsigned addons like TMP don't work after commenting out the bypass code but without it firefox doesn't start at all. Commenting out the bypass lines makes firefox start.

Deleting config.js also makes FF start.

megamorphg commented 1 year ago

Someone should edit the title of this to indicate it breaks only on Linux systems. I am using scripts and add-ons on 108 and 109 on Windows and no issues.

Ultimately will need to find out what is different on Linux Firefox and report it to Bugzilla...

eilegz commented 1 year ago

i had a menu on tabs issues with Tab mix plus too, it was causing some elements to dissapear. had to disabled it to make it work again

bemyak commented 1 year ago

I stumbled upon this issue a couple of days ago and submitted a bug to their bugzilla: https://bugzilla.mozilla.org/show_bug.cgi?id=1805713

xiaoxiaoflood commented 1 year ago

Please try the updated fx-folder.zip (config.js).

dv8472 commented 1 year ago

Please try the updated fx-folder.zip (config.js).

The https://github.com/xiaoxiaoflood/firefox-scripts/commit/51a1b6c47a6e45dc411ba29dd1c017c7b0bf3f26 seems to work fine. Browser starts, and allows installation of un-signed add-on. Many thanks!

bemyak commented 1 year ago

I also confirm that the fix works! Thanks!

savoury1 commented 1 year ago

Also working here. Thanks for the fix.