Backed out 2 changesets (bug 1408129) for browser-chrome failures on /browser/test-oop-extensions/browser_ext_user_events.js. CLOSED TREE

Backed out changeset d25226ca3633 (bug 1408129)
Backed out changeset 7379720ca6f5 (bug 1408129)
This commit is contained in:
Brindusan Cristian 2018-07-31 20:40:01 +03:00
parent 0a080bf168
commit b9c1a2f365
3 changed files with 3 additions and 19 deletions

View File

@ -361,7 +361,6 @@ this.commands = class extends ExtensionAPI {
onCommand: new EventManager({
context,
name: "commands.onCommand",
inputHandling: true,
register: fire => {
let listener = (eventName, commandName) => {
fire.async(commandName);

View File

@ -61,8 +61,6 @@ add_task(async function testSources() {
}
});
browser.commands.onCommand.addListener(() => request("downloads"));
browser.test.sendMessage("actions-ready");
},
@ -113,16 +111,9 @@ add_task(async function testSources() {
browser_action: {default_title: "test"},
page_action: {default_title: "test"},
permissions: ["contextMenus"],
optional_permissions: ["bookmarks", "tabs", "webNavigation", "webRequest", "downloads"],
optional_permissions: ["bookmarks", "tabs", "webNavigation", "webRequest"],
options_ui: {page: "options.html"},
content_security_policy: "script-src 'self' https://example.com; object-src 'none';",
commands: {
command: {
suggested_key: {
"default": "Alt+Shift+J",
},
},
},
},
useAddonManager: "temporary",
@ -173,12 +164,6 @@ add_task(async function testSources() {
});
await check("options page link click");
EventUtils.synthesizeKey("j", {altKey: true, shiftKey: true});
promisePopupNotificationShown("addon-webext-permissions").then(panel => {
panel.button.click();
});
await check("commands shortcut");
await BrowserTestUtils.removeTab(gBrowser.selectedTab);
await BrowserTestUtils.removeTab(tab);

View File

@ -5,12 +5,12 @@
/* exported getCookieStoreIdForTab, getCookieStoreIdForContainer,
getContainerForCookieStoreId,
isValidCookieStoreId, isContainerCookieStoreId,
EventManager, URL */
EventManager, InputEventManager, URL */
/* global getCookieStoreIdForTab:false, getCookieStoreIdForContainer:false,
getContainerForCookieStoreId: false,
isValidCookieStoreId:false, isContainerCookieStoreId:false,
isDefaultCookieStoreId: false, isPrivateCookieStoreId:false,
EventManager: false */
EventManager: false, InputEventManager: false */
ChromeUtils.defineModuleGetter(this, "ContextualIdentityService",
"resource://gre/modules/ContextualIdentityService.jsm");