Skip to content

Instantly share code, notes, and snippets.

View daleharvey's full-sized avatar

Dale Harvey daleharvey

View GitHub Profile
~/src/gecko (master)$ git diff
diff --git a/browser/components/extensions/parent/ext-chrome-settings-overrides.js b/browser/components/extensions/parent/ext-chrome-settings-overrides.js
index 6be8745427a7..ec344269cc42 100644
--- a/browser/components/extensions/parent/ext-chrome-settings-overrides.js
+++ b/browser/components/extensions/parent/ext-chrome-settings-overrides.js
@@ -339,7 +339,8 @@ this.chrome_settings_overrides = class extends ExtensionAPI {
let {extension} = this;
let isCurrent = false;
let index = -1;
- if (extension.startupReason === "ADDON_UPGRADE") {
--- a/dom/media/AutoplayPolicy.cpp
+++ b/dom/media/AutoplayPolicy.cpp
@@ -119,7 +119,8 @@ static bool IsWindowAllowedToPlay(nsPIDOMWindowInner* aWindow) {
static uint32_t DefaultAutoplayBehaviour() {
int prefValue =
Preferences::GetInt("media.autoplay.default", nsIAutoplay::ALLOWED);
- if (prefValue < nsIAutoplay::ALLOWED || prefValue > nsIAutoplay::BLOCKED) {
+ if (prefValue < nsIAutoplay::ALLOWED || prefValue > nsIAutoplay::BLOCKED_ALL) {
// Invalid pref values are just converted to BLOCKED.
return nsIAutoplay::BLOCKED;
curl: (22) The requested URL returned error: 404 Not Found
Error: Failure while executing; `/usr/bin/curl -q --show-error --user-agent Homebrew/2.1.1\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 10.14.3\)\ curl/7.54.0 --fail --progress-bar --location --remote-time --continue-at 0 --output /Users/dale/Library/Caches/Homebrew/Formula/autoconf213.rb https://raw.github.com/Homebrew/homebrew-versions/master/autoconf213.rb` exited with 22. Here's the output:
curl: (22) The requested URL returned error: 404 Not Found
Error running mach:
['bootstrap']
The error occurred in code that was called by the mach command. This is either
~/src/gecko (1544273)$ pip install --upgrade pip
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Requirement already up-to-date: pip in /usr/local/lib/python2.7/site-packages (19.1)
~/src/gecko (1544273)$ ./mach build
0:00.30 /usr/bin/make -f client.mk -s
0:01.28 Adding client.mk options from /Users/dale/src/dotfiles/moz/firefox.mozconfig:
0:01.28 AUTOCLOBBER=1
0:01.28 MOZ_OBJDIR=/Users/dale/src/gecko/objdir/firefox-opt
0:01.28 OBJDIR=/Users/dale/src/gecko/objdir/firefox-opt
0:01.28 FOUND_MOZCONFIG=/Users/dale/src/dotfiles/moz/firefox.mozconfig
const glob = require('glob');
const fs = require('fs');
const fetch = require('node-fetch');
const GECKO_PATH = "/Users/dale/src/gecko";
const EXTENSIONS_PATH = "browser/components/search/extensions";
async function testUrl(url) {
if (!url || !/https/.test(url)) {
return true;
const glob = require('glob');
const fs = require('fs');
const fetch = require('node-fetch');
const GECKO_PATH = "/Users/dale/src/gecko";
const EXTENSIONS_PATH = "browser/components/search/extensions";
async function testUrl(url) {
if (!url || !/https/.test(url)) {
return true;
const glob = require('glob');
const fs = require('fs');
const fetch = require('node-fetch');
const GECKO_PATH = "/Users/dale/src/gecko";
const EXTENSIONS_PATH = "browser/components/search/extensions";
async function testUrl(url) {
if (!url || !/https/.test(url)) {
return true;
~/src/gecko (1544077)$ moz-phab
IOError: [Errno 2] No such file or directory: '/Users/dale/.mozbuild/moz-phab/moz-phab.log'
~/src/gecko (master)$ ./mach environment
platform:
Darwin-18.2.0-x86_64-i386-64bit
python version:
2.7.16 (default, Mar 4 2019, 09:01:38)
[GCC 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.11.45.5)]
python prefix:
/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7
mach cwd:
/Users/dale/src/gecko
~/src/gecko (webextensions)$ ./mach test toolkit/components/search/tests/xpcshell/test_webextensions_install.js --sequential
0:01.75 INFO Found node at /Users/dharvey/.mozbuild/node/bin/node
0:01.75 INFO Found moz-http2 at /Users/dharvey/src/gecko/testing/xpcshell/moz-http2/moz-http2.js
0:01.88 INFO Running tests sequentially.
0:01.88 SUITE_START: xpcshell - running 1 tests
0:01.89 INFO profile dir is /var/folders/3x/v57whhy95m12lvkcvgclss200000gn/T/firefox/xpcshellprofile
0:01.91 TEST_START: toolkit/components/search/tests/xpcshell/test_webextensions_install.js
0:01.91 INFO toolkit/components/search/tests/xpcshell/test_webextensions_install.js | full command: ['/Users/dharvey/src/gecko/obj-x86_64-apple-darwin18.0.0/dist/Nightly.app/Contents/MacOS/xpcshell', '-g', '/Users/dharvey/src/gecko/obj-x86_64-apple-darwin18.0.0/dist/Nightly.app/Contents/Resources', '-a', '/Users/dharvey/src/gecko/obj-x86_64-apple-darwin18.0.0/dist/Nightly.app/Contents/Resources/browser', '-r', '/Users/dharvey/src/gecko/obj-x86_