News for hackers. Stuff that matters.
Re:Mozilla/web-ext: A command line tool to help build, run, ... by idoubtit on Thursday November 26, 2020 @05:09AM (#25218567)
In my opinion, Firefox imposes complex constraints on casual developers, and web-ext is part of it.

I have a few web extensions I wrote in order to customize a few web sites (automate tasks, alter display, etc). After a Firefox update, they were not allowed anymore, because they're not signed. The extensions page cannot load local extensions. Then I discovered the secret debug-extensions page of Firefox where I could load them.

Unfortunately, Firefox removes local extension when it closes. I had the choice between loading each local extension after launching a new Firefox, which mean a dozen of clicks, or installing web-ext in order to sign my extensions, and sign them again after each change (no idea if there were extra actions needed in the process, like manual reload). I opted for a much simple option: with Chromium-based browsers, you can enable the extension-developer mode, and then you're allowed to load local extensions from the normal extensions page. Extensions are kept across restarts.

Re:Mozilla/web-ext: A command line tool to help build, run, ... by badsectoracula on Thursday November 26, 2020 @06:00AM (#25218840)
I had the same issue but i solved it by using Firefox Developer edition instead which allows you to install unsigned extensions. This allowed me to use my Firefox profile (by manually copying the files over the existing profile files) which i have going back several years now.

If that ever changes i'll look into making my own Firefox binaries or whatever that have this check removed.

Re:Mozilla/web-ext: A command line tool to help build, run, ... by diegocg on Thursday November 26, 2020 @06:09AM (#25218888)
Unbranded stable (and beta) builds also allows disabling the signature check. There are plenty of options, just not in the official stable builds.
Re:Mozilla/web-ext: A command line tool to help build, run, ... by mook on Thursday November 26, 2020 @12:11PM (#25221778)
Does the unbranded stable build have automatic updates yet? Last time I checked (which was quite a while ago) it didn't, which made using it day-to-day seem like a bad idea. I'd totally switch to it if I can just use it normally.
Re:Mozilla/web-ext: A command line tool to help build, run, ... by johnisgood on Thursday November 26, 2020 @07:12PM (#25224471)
What is up with this "Developer edition", "Unbranded stable", and God knows what else?
Re:Mozilla/web-ext: A command line tool to help build, run, ... by badsectoracula on Friday November 27, 2020 @04:09AM (#25226813)
Developer edition: https://www.mozilla.org/en-US/firefox/developer/

This updates frequently since it is basically Firefox beta (though in practice i never had any issue). Note that this has telemetry enabled by default so you may want to disable it via the options.

Unbranded stable: https://wiki.mozilla.org/Add-ons/Extension_Signing#Unbranded...

The unbranded stable isn't updated automatically so you'll need to check for new versions yourself (shouldn't be too hard to automate it with a python script or whatever that runs via cronjob or windows task scheduler and notifies you for new versions).

Re:Mozilla/web-ext: A command line tool to help build, run, ... by iggldiggl on Thursday November 26, 2020 @06:16AM (#25218925)
And the long-term support (ESR) version as well, if I remember correctly.
Re:Mozilla/web-ext: A command line tool to help build, run, ... by badsectoracula on Thursday November 26, 2020 @06:19AM (#25218939)
That makes things even easier then :-P
Re:Mozilla/web-ext: A command line tool to help build, run, ... by Spivak on Thursday November 26, 2020 @09:00AM (#25220062)
I think the argument is that if you’re knowledgeable enough to write an extension you can switch to the “I know what I’m doing version” and let everyone else reap the benefits of malware protection.
Re:Mozilla/web-ext: A command line tool to help build, run, ... by calpaterson on Thursday November 26, 2020 @06:46AM (#25219119)
They don't document it well but they will sign pretty much anything over the web so long as you're not distributing it on add-ons.mozilla.org (AMO). You don't have to use web-ext.

There isn't even a manual review gate for AMO releases after the first one (but it can happen after that fact).

I find Mozilla's policies friendlier than Google's but this is the first I've heard of "extension developer mode" - will have to look into that as my extension is cross browser.

Re:Mozilla/web-ext: A command line tool to help build, run, ... by madushan1000 on Thursday November 26, 2020 @10:09AM (#25220615)
You can still use firefox autoconfig scripts to do a lot of things that they locked down(like using old XUL apis) https://support.mozilla.org/en-US/kb/customizing-firefox-usi...
Re:Mozilla/web-ext: A command line tool to help build, run, ... by Farow on Thursday November 26, 2020 @08:32AM (#25219857)
It might be a bit tiresome if you make regular changes but you can have mozilla sign your extension without having to wait for them to review or place it on AMO.

https://extensionworkshop.com/documentation/publish/signing-...

Re:Mozilla/web-ext: A command line tool to help build, run, ... by account42 on Thursday November 26, 2020 @09:51AM (#25220463)
What is the signature good for if they hand it out without review? Might as well get rid of the requirement.
Re:Mozilla/web-ext: A command line tool to help build, run, ... by toyg on Thursday November 26, 2020 @10:33AM (#25220836)
They get an archive of stuff they can (theoretically) ban if found to be malware. Which I guess (or rather I hope) spreads a bit of a chilling effect among potential malware writers.
Re:Mozilla/web-ext: A command line tool to help build, run, ... by dblohm7 on Thursday November 26, 2020 @11:32AM (#25221357)
Then there’s something to revoke if necessary.
Re:Mozilla/web-ext: A command line tool to help build, run, ... by maple3142 on Thursday November 26, 2020 @11:32AM (#25221364)
If you only need to tweak websites, using a userscript manager is much more easier: https://addons.mozilla.org/en-US/android/addon/violentmonkey...
Re:Mozilla/web-ext: A command line tool to help build, run, ... by AlexITC on Thursday November 26, 2020 @11:54AM (#25221594)
I feel you, while the debugging option is handy for development, it is annoying that you can't easily install the extension permanently.

The way I do it now is to package the extension as zip (no webext needed) with a custom manifest, which can be installed by setting xpinstall.signatures.required to false in the about:config page.

On the manifest side, you just need to include this snippet:

  "browser_specific_settings": {
    "gecko": {
      "id": "[email protected]"
    }
  }
Re:Mozilla/web-ext: A command line tool to help build, run, ... by freethinky on Thursday November 26, 2020 @07:51AM (#25219571)
At least until 82 I (have to try if it still works), I used:

about:config xpinstall.signatures.required -> false

    zip -0 mywebext.xpi manifest.json *.js *.png *.html
about:addons -> install xpi
Re:Mozilla/web-ext: A command line tool to help build, run, ... by AlexITC on Thursday November 26, 2020 @12:15PM (#25221818)
That worked for me only after including this snippet on the manifest:

  "browser_specific_settings": {
    "gecko": {
      "id": "[email protected]"
    }
  }
Re:Mozilla/web-ext: A command line tool to help build, run, ... by weaksauce on Thursday November 26, 2020 @03:23PM (#25223258)
you can sign up for a free account on mozilla's site to sign personal extensions without any oversight as long as you don't select the option to list it on the marketplace. (even that is free but it requires a bit more review on the part of mozilla)