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
/* -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- */ | |
/* vim: set sts=2 sw=2 et tw=80: */ | |
"use strict"; | |
/* global getTabIdForToolbox */ | |
/** | |
* This module provides helpers used by the other specialized `ext-devtools-*.js` modules | |
* and the implementation of the `devtools_page`. | |
*/ |
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
Usage: ./bin/web-ext [options] addon-package-or-dir | |
Add-ons Linter (JS Edition) v0.15.3 | |
Options: | |
--version Show version number [boolean] | |
--source-dir, -s Web extension source directory. | |
[string] [required] [default: "/zfs-mordor/work/webext/tools/web-ext"] | |
--artifacts-dir, -a Directory where artifacts will be saved. |
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
it('throws an error about unknown sub-command options', () => { | |
const program = new Program(['thing', '--nope']) | |
.command('thing', '', () => {}); | |
return run(program) | |
.then(makeSureItFails()) | |
.catch((error) => { | |
// Again, yargs calls this an argument not an option for some reason. | |
assert.match(error.message, /Unknown argument: --nope/); | |
}); | |
}); |
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 Source Code Form is subject to the terms of the Mozilla Public License, | |
* v. 2.0. If a copy of the MPL was not distributed with this file, You can | |
* obtain one at http://mozilla.org/MPL/2.0/. */ | |
"use strict"; | |
const protocol = require("devtools/shared/protocol"); | |
const {Ci} = require("chrome"); | |
const Services = require("Services"); |
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
type RunConfig = { | |
runner: ExtensionRunner, | |
profile: FirefoxProfile, | |
client?: RemoteFirefox, | |
addonId?: string, | |
firefox?: FirefoxProcess, | |
}; | |
... | |
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 Source Code Form is subject to the terms of the Mozilla Public | |
* License, v. 2.0. If a copy of the MPL was not distributed with this | |
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | |
"use strict"; | |
this.EXPORTED_SYMBOLS = ["LegacyExtensionsUtils"]; | |
/* exported LegacyExtensionsUtils */ |
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
$(function() { | |
alert('You are on github') | |
// Load the options.html into the page | |
var optionsURL = chrome.extension.getURL("options.html"); | |
$.get(optionsURL, function(data){ | |
// the xml data has been received | |
console.log("OPTION.html data ", data); | |
// data is a string on Chrome |
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
# Automatically download and use compiled C++ components: | |
ac_add_options --enable-artifact-builds --debug-artifact | |
# Write build artifacts to: | |
mk_add_options MOZ_OBJDIR=./objdir-frontend-debug |
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/components/extensions/ext-notifications.js b/toolkit/components/extensions/ext-notifications.js | |
--- a/toolkit/components/extensions/ext-notifications.js | |
+++ b/toolkit/components/extensions/ext-notifications.js | |
@@ -47,24 +47,31 @@ Notification.prototype = { | |
svc.closeAlert(this.id); | |
} catch (e) { | |
// This will fail if the OS doesn't support this function. | |
} | |
notificationsMap.get(this.extension).delete(this.id); | |
}, |
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/components/extensions/test/mochitest/test_ext_web_accessible_resources.html b/toolkit/components/extensions/test/mochitest/test_ext_web_accessible_resources.html | |
--- a/toolkit/components/extensions/test/mochitest/test_ext_web_accessible_resources.html | |
+++ b/toolkit/components/extensions/test/mochitest/test_ext_web_accessible_resources.html | |
@@ -18,47 +18,45 @@ | |
SimpleTest.registerCleanupFunction(() => { | |
SpecialPowers.clearUserPref("security.mixed_content.block_display_content"); | |
}); | |
let image = atob("iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAA" + | |
"ACnej3aAAAAAXRSTlMAQObYZgAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII="); |