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
/* 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
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"; | |
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
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
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
/* -*- 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
1476999152622 addons.xpi ERROR Error: aAddon must include an id, version, and type (resource://gre/modules/addons/XPIProvider.jsm:4716:20) JS Stack trace: [email protected]:4716:20 < this.XPIProvider.installTemporaryAddon<@XPIProvider.jsm:3964:5 | |
1476999152634 addons.xpi ERROR Error: aAddon must include an id, version, and type (resource://gre/modules/addons/XPIProvider.jsm:4716:20) JS Stack trace: [email protected]:4716:20 < this.XPIProvider.installTemporaryAddon<@XPIProvider.jsm:3978:5 | |
1476999364314 addons.manager WARN Error in background update: [Exception... "aID must be a non-empty string" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: resource://gre/modules/AddonManager.jsm :: AddonManagerInternal.getAddonByID :: line 2395" data: no] Stack trace: AddonManagerInternal.getAddonByID()@resource://gre/modules/AddonManager.jsm:2395 < AddonManagerInternal.getAddonsByIDs/promises<()@resource:/ |
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
// Auto-generated WebExtensions Flow types definitions generated from WebExtensions JSON API schema. | |
declare type webext$alarms$Alarm = {| | |
name: string, | |
scheduledTime: number, | |
periodInMinutes?: number | |
|}; | |
declare function webext$alarms$create(alarmInfo: {| | |
when?: number, |
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 () { | |
if (...) { | |
return Promise.resolve(); | |
} | |
const isDonePromise = doSomethingAsync().then(() => { | |
}); | |
... |