Closed onemen closed 1 year ago
Look like there is a simple fix to this issue
Add the line delete Constants.AppConstants;
// signing bypass by onemen
const Constants = ChromeUtils.import('resource://gre/modules/AppConstants.jsm');
const temp = Object.assign({}, Constants.AppConstants);
temp.MOZ_REQUIRE_SIGNING = false
+ delete Constants.AppConstants;
Constants.AppConstants = Object.freeze(temp);
but now i get BootstrapLoader: TypeError: property "AppConstants" is non-configurable and can't be deleted
need to investigate more !!!
This may prevent release channel to use legacy add-ons ever again ?!!
If the AppConstants
is unchangeable in the future, Is it possible we redirect whole file to an edited one? Like what Mozilla are doing now with from .jsm
to .sys.mjs
?
Fixed, right?
@xiaoxiaoflood, it is working,
however it may trigger an issue for Waterfox users, same as #149, maybe you can move all the bootstrap loading code into a new file in chrome/utils
xiaoxiaoflood,
This is puzzling trying to figure out where the problem is coming from but since updating BootstrapLoader.jsm the custom and script buttons are larger now than the addon icons on the toolbars. Aris cannot reproduce it so it does not appear to be a firefox issue.
Can you reproduce it? I have downloaded and installed some of your script buttons and those icons are larger too.
@onemen
The change shouldn't disturb ESR v102. As you can see in the code, it works with both v108+ (AppConstants.sys.mjs
) and v107- (AppConstants.jsm
). Even because I use DevEd, I'd never push an update that doesn't work on DevEd (currently in v107, actually I'm still using v106).
And I can't move signing bypass code away from config.js
because this new version would cause recursion.
@marty60
No, everything is fine for me and I see no relation between latest change and the size of anything.
BootstrapLoader stop working Starting today with Firefox Nightly 108.0a1, Build ID: 20221019211615
the error
BootstrapLoader: TypeError: "AppConstants" is read-only
is trigger by this line from BootstrapLoader.jsConstants.AppConstants = Object.freeze(temp);
Maybe it is related to changes made by bug 1792341
AppConstants.jsm
renamed toAppConstants.sys.mjs
and it is now an Esm module