Backed out changeset a315e85c5376 (bug 1613796) for bc failures on browser_file_xpi_no_process_switch.js . CLOSED TREE

This commit is contained in:
Narcis Beleuzu 2020-04-04 05:38:34 +03:00
parent 00218b8a49
commit b1133547ec
3 changed files with 0 additions and 44 deletions

View File

@ -184,7 +184,6 @@ skip-if = debug || os != 'win' # FIXME: re-enable on debug build (bug 1442822)
[browser_ext_port_disconnect_on_crash.js]
skip-if = !e10s || !crashreporter # the tab's process is killed during the test. Without e10s the parent process would die too
[browser_ext_port_disconnect_on_window_close.js]
[browser_ext_request_permissions.js]
[browser_ext_runtime_openOptionsPage.js]
[browser_ext_runtime_openOptionsPage_uninstall.js]
[browser_ext_search.js]

View File

@ -1,38 +0,0 @@
"use strict";
add_task(async function test_permissions_prompt() {
let extension = ExtensionTestUtils.loadExtension({
manifest: {
optional_permissions: ["history"],
},
background: () => {
browser.tabs.create({
url: browser.runtime.getURL("test.html"),
active: false,
});
},
files: {
"test.html": `<!DOCTYPE html><script src="test.js"></script>`,
"test.js": async () => {
const result = await new Promise(resolve => {
browser.test.withHandlingUserInput(() => {
resolve(browser.permissions.request({ permissions: ["history"] }));
});
});
browser.test.assertFalse(
result,
"permissions.request() from a hidden tab should be ignored"
);
browser.test.sendMessage("done");
},
},
});
await extension.startup();
await extension.awaitMessage("done");
// The extension tab is automatically closed upon unload.
await extension.unload();
});

View File

@ -372,11 +372,6 @@ var ExtensionsUI = {
await pending;
}
// Make sure the tab is the active tab in the window.
if (window.gBrowser.selectedBrowser !== browser) {
return false;
}
let promise = new Promise(resolve => {
function eventCallback(topic) {
let doc = this.browser.ownerDocument;