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/modules/addons/WebNavigation.jsm b/toolkit/modules/addons/WebNavigation.jsm | |
--- a/toolkit/modules/addons/WebNavigation.jsm | |
+++ b/toolkit/modules/addons/WebNavigation.jsm | |
@@ -20,23 +20,25 @@ Cu.import("resource://gre/modules/Servic | |
// onCreatedNavigationTarget, onHistoryStateUpdated | |
var Manager = { | |
listeners: new Map(), | |
init() { |
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
let blockedImagePromise = new Promise((resolve, reject) => { | |
let blockedImage = document.createElement("img"); | |
blockedImage.setAttribute("src", "http://example.com/tests/toolkit/components/extensions/test/mochitest/file_image_bad.png"); | |
let errorListener = () => { | |
browser.test.succeed("img got blocked as expected"); | |
cleanupListeners(); | |
resolve(); | |
}; | |
let loadListener = () => { | |
browser.test.fail("img loaded unexpected"); |
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/internal/XPIProvider.jsm b/toolkit/mozapps/extensions/internal/XPIProvider.jsm | |
--- a/toolkit/mozapps/extensions/internal/XPIProvider.jsm | |
+++ b/toolkit/mozapps/extensions/internal/XPIProvider.jsm | |
@@ -6990,22 +6990,23 @@ AddonWrapper.prototype = { | |
icons[32] = icons[48] = this.getResourceURI("icon.png").spec; | |
} | |
if (this.hasResource("icon64.png")) { | |
icons[64] = this.getResourceURI("icon64.png").spec; | |
} | |
} |
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/devtools/server/actors/webbrowser.js b/devtools/server/actors/webbrowser.js | |
--- a/devtools/server/actors/webbrowser.js | |
+++ b/devtools/server/actors/webbrowser.js | |
@@ -30,16 +30,17 @@ loader.lazyRequireGetter(this, "ProcessA | |
loader.lazyImporter(this, "AddonManager", "resource://gre/modules/AddonManager.jsm"); | |
// Assumptions on events module: | |
// events needs to be dispatched synchronously, | |
// by calling the listeners in the order or registration. | |
loader.lazyRequireGetter(this, "events", "sdk/event/core"); |
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
// do your stuff or import your modules | |
const { on } = require("sdk/system/events"); | |
const { id } = require("sdk/self"); | |
console.log("ADDON ID: ", id); | |
on(`${id}-cmdPressed`, function ({data}) { | |
console.log("CMD PRESSED", data); |
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
Are you sure you want to push to remote? (y/n): y | |
pushing to ssh://reviewboard-hg.mozilla.org/gecko | |
searching for changes | |
remote: adding changesets | |
remote: adding manifests | |
remote: adding file changes | |
remote: added 1 changesets with 1 changes to 1 files (+1 heads) | |
remote: recorded push in pushlog | |
submitting 1 changesets for review | |
remote: ** unknown exception encountered, please report by visiting |
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
% ./mach eslint toolkit/components/extensions/ browser/components/extensions/ ~/work/mozlab/mozilla-central-hg | |
0:00.12 Running /usr/local/bin/eslint | |
0:00.12 /usr/local/bin/eslint --plugin html --ext [.js,.jsm,.jsx,.xml,.html] toolkit/components/extensions/ browser/components/extensions/ | |
/zfs-tardis/mozlab/desktop/mozilla-central-hg/toolkit/components/extensions/test/mochitest/test_ext_bookmarks.html | |
92:4 warning Block must not be padded by blank lines padded-blocks | |
94:9 error Expected indentation of 6 space characters but found 8 indent | |
95:9 error Expected indentation of 6 space characters but found 8 indent | |
96:9 error Expected indentation of 6 space characters but found 8 indent | |
97:9 error Expected indentation of 6 space characters but found 8 indent |
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
duplicate: function(tabId, callback) { | |
let tab = TabManager.getTab(tabId); | |
// Ignore invalid tab ids. | |
if (!tab) { | |
if (callback) { | |
runSafe(context, callback, undefined); | |
} | |
return; | |
} |
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
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */ | |
/* vim:set ts=2 sw=2 sts=2 et: */ | |
/* 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/. */ | |
/* | |
* An implementation of an HTTP server both as a loadable script and as an XPCOM | |
* component. See the accompanying README file for user documentation on | |
* httpd.js. |
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
TEST-PASS | leakcheck | default process: no leaks detected! | |
== BloatView: ALL (cumulative) LEAK AND BLOAT STATISTICS, tab process 24550 | |
|<----------------Class--------------->|<-----Bytes------>|<----Objects---->| | |
| | Per-Inst Leaked| Total Rem| | |
0 |TOTAL | 56 4640| 152828 33| | |
11 |AsyncTransactionTrackersHolder | 72 72| 2 1| | |
42 |CompositorChild | 880 880| 1 1| | |
44 |CondVar | 40 120| 25 3| |