-
UI
about:flags
(or maybeabout:features
?)- similar to
chrome://flags
in Chromium - allow enabling/disabling/changing settings
- also specifies if Mozilla has remotely changed flag and allows opting out
-
Library / SDK
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/config/external/moz.build b/config/external/moz.build | |
--- a/config/external/moz.build | |
+++ b/config/external/moz.build | |
@@ -8,12 +8,16 @@ external_dirs = [] | |
DIRS += [ | |
'lgpllibs', | |
- 'prio', | |
'sqlite', | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# Simple script to generate a CURVE25519 keypair. | |
# brew install libsodium && pip install pysodium | |
import pysodium | |
keypair = pysodium.crypto_box_keypair() | |
toHex = lambda x: "".join("{:02X}".format(ord(c)) for c in x) |
Hey,
For anyone who missed it, we had a meeting in Austin about how to move away from old-style bootstrapped add-ons. Specifically we're talking about things like bootstrap.js (which loads chrome-privileged JS code into the main process) and install.rdf (this is one of the things keeping us from dropping RDF support).
Keeping this support alive is also a burden in terms of code complexity and tests, mostly in the add-ons manager code.
We've successfully made this transition for third-party add-ons (AMO and Firefox both require WebExtensions), but we still have some Mozilla-published add-ons:
- Test Pilot
- System Add-ons[1]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/browser/extensions/moz.build b/browser/extensions/moz.build | |
--- a/browser/extensions/moz.build | |
+++ b/browser/extensions/moz.build | |
@@ -15,6 +15,7 @@ DIRS += [ | |
'pocket', | |
'screenshots', | |
'shield-recipe-client', | |
+ 'tracking-protection-study', | |
'webcompat', | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.Study = { | |
onPageLoad: evt => { | |
console.log("caught pageload event", evt); | |
console.log("stuff is:", stuff); | |
}, | |
init() { | |
this.stuff = "things"; | |
this.win = Services.wm.getMostRecentWindow("navigator:browser"); | |
this.win.gBrowser.addEventListener("DOMContentLoaded", this.onPageLoad); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/toolkit/mozapps/extensions/AddonManagerStartup.cpp b/toolkit/mozapps/extensions/AddonManagerStartup.cpp | |
--- a/toolkit/mozapps/extensions/AddonManagerStartup.cpp | |
+++ b/toolkit/mozapps/extensions/AddonManagerStartup.cpp | |
@@ -745,6 +745,16 @@ AddonManagerStartup::Reset() | |
return NS_OK; | |
} | |
+nsresult | |
+AddonManagerStartup::InitializeURLPreloader() | |
+{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Content Security Policy: Directive ‘frame-src’ has been deprecated. Please use directive ‘child-src’ instead. (unknown) | |
1501559686810 extensions.shield-recipe-client.preference-experiments DEBUG PreferenceExperiments.getAllActive() | |
While creating services from category 'profile-after-change', service for entry 'Notification Telemetry Service', contract ID '@mozilla.org/notificationTelemetryService;1' does not implement nsIObserver. | |
OpenGL compositor Initialized Succesfully. | |
Version: 2.1 ATI-1.51.8 | |
Vendor: ATI Technologies Inc. | |
Renderer: AMD Radeon R9 M370X OpenGL Engine | |
FBO Texture Target: TEXTURE_2D | |
Unix error 2 during operation open on file /Users/rhelmer/Library/Caches/Firefox/Profiles/j7efm381.tmp/directoryLinks.json (No such file or directory) DirectoryLinksProvider.jsm:254 | |
OpenGL compositor Initialized Succesfully. |
- Download and install the targeted version of Firefox
- Create a .xpi file for your add-on (this is just a zip file with install.rdf and bootstrap.js at the root)
The filename must start with your add-on ID, for instance
[email protected]
- Create an XML file as described in http://firefox-source-docs.mozilla.org/toolkit/mozapps/extensions/addon-manager/SystemAddons.html#update-request
- Open
about:config
and modify theextensions.systemAddon.update.url
pref to point to the above XML file - Also in
about:config
, flip theextensions.logging.enabled
anddevtools.chrome.enabled
prefs to true - Open the Browser Console (Tools->Web Developer->Browser Console)
- At the prompt at the bottom of the Browser Console, force an update check by running
Cu.import("resource://gre/modules/AddonManager.jsm"); AddonManagerPrivate.backgroundUpdateCheck()
- Open
about:support
and verify that system add-on appears and information is correct
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<updates> | |
<addons> | |
<addon id="[email protected]" | |
URL="http://localhost:8080/src/[email protected]" | |
hashFunction="sha512" | |
hashValue="63aa2ce3c0632b5b5ad8d878ee7a52029078dbcddbd3d40b32df633079485f0e0b26e746fd5020447d1379d0e882a73a218d154558178d468c95983146e3f287" | |
size="6129" | |
version="1.0"/> | |
</addons> |