Coder Social home page Coder Social logo

Comments (7)

onemen avatar onemen commented on June 3, 2024

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
Constants.AppConstants = Object.freeze(temp);

    // 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);

from firefox-scripts.

onemen avatar onemen commented on June 3, 2024

but now i get BootstrapLoader: TypeError: property "AppConstants" is non-configurable and can't be deleted

need to investigate more !!!

from firefox-scripts.

117649 avatar 117649 commented on June 3, 2024

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 ?

from firefox-scripts.

xiaoxiaoflood avatar xiaoxiaoflood commented on June 3, 2024

Fixed, right?

from firefox-scripts.

onemen avatar onemen commented on June 3, 2024

@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

from firefox-scripts.

marty60 avatar marty60 commented on June 3, 2024

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.

from firefox-scripts.

xiaoxiaoflood avatar xiaoxiaoflood commented on June 3, 2024

@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.

from firefox-scripts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.