mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Backed out changeset a315e85c5376 (bug 1613796) for bc failures on browser_file_xpi_no_process_switch.js . CLOSED TREE
This commit is contained in:
parent
00218b8a49
commit
b1133547ec
@ -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]
|
||||
|
@ -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();
|
||||
});
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user