зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 78a53da8a8c1 (bug 1358314) for intermittent, different leaks on Windows 7 VM debug. r=backout on a CLOSED TREE
This commit is contained in:
Родитель
409b5e35e2
Коммит
f44ee02eec
|
@ -1050,11 +1050,8 @@ nsContextMenu.prototype = {
|
|||
}
|
||||
|
||||
if (!this.isRemote) {
|
||||
// Propagate the frameOuterWindowID value saved when
|
||||
// the context menu has been opened.
|
||||
params.frameOuterWindowID = this.frameOuterWindowID;
|
||||
params.frameOuterWindowID = WebNavigationFrames.getFrameId(this.target.ownerGlobal);
|
||||
}
|
||||
|
||||
// If we want to change userContextId, we must be sure that we don't
|
||||
// propagate the referrer.
|
||||
if ("userContextId" in params &&
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
[DEFAULT]
|
||||
support-files =
|
||||
dummy_page.html
|
||||
test_bug1358314.html
|
||||
|
||||
[browser_abandonment_telemetry.js]
|
||||
[browser_allow_process_switches_despite_related_browser.js]
|
||||
[browser_contextmenu_openlink_after_tabnavigated.js]
|
||||
[browser_tabCloseProbes.js]
|
||||
[browser_tabSpinnerProbe.js]
|
||||
skip-if = !e10s # Tab spinner is e10s only.
|
||||
|
|
|
@ -1,39 +0,0 @@
|
|||
"use strict";
|
||||
|
||||
const example_base = "http://example.com/browser/browser/base/content/test/tabs/";
|
||||
|
||||
add_task(function* test_contextmenu_openlink_after_tabnavigated() {
|
||||
let url = example_base + "test_bug1358314.html";
|
||||
|
||||
const tab = yield BrowserTestUtils.openNewForegroundTab(gBrowser, url);
|
||||
|
||||
const contextMenu = document.getElementById("contentAreaContextMenu");
|
||||
let awaitPopupShown = BrowserTestUtils.waitForEvent(contextMenu, "popupshown");
|
||||
yield BrowserTestUtils.synthesizeMouse("a", 0, 0, {
|
||||
type: "contextmenu",
|
||||
button: 2,
|
||||
}, gBrowser.selectedBrowser);
|
||||
yield awaitPopupShown;
|
||||
info("Popup Shown");
|
||||
|
||||
info("Navigate the tab with the opened context menu");
|
||||
gBrowser.selectedBrowser.loadURI("about:blank");
|
||||
yield BrowserTestUtils.browserLoaded(gBrowser.selectedBrowser);
|
||||
|
||||
let awaitNewTabOpen = BrowserTestUtils.waitForNewTab(gBrowser, "http://example.com/");
|
||||
|
||||
info("Click the 'open link in new tab' menu item");
|
||||
let openLinkMenuItem = contextMenu.querySelector("#context-openlinkintab");
|
||||
openLinkMenuItem.click();
|
||||
|
||||
info("Wait for the new tab to be opened");
|
||||
const newTab = yield awaitNewTabOpen;
|
||||
yield BrowserTestUtils.browserLoaded(newTab.linkedBrowser);
|
||||
const newTabURL = yield ContentTask.spawn(newTab.linkedBrowser, null, function* () {
|
||||
return content.location.href;
|
||||
});
|
||||
is(newTabURL, "http://example.com/", "Got the expected URL loaded in the new tab");
|
||||
|
||||
BrowserTestUtils.removeTab(newTab);
|
||||
BrowserTestUtils.removeTab(tab);
|
||||
});
|
|
@ -1,10 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
</head>
|
||||
<body>
|
||||
<p>Test page</p>
|
||||
<a href="/">Link</a>
|
||||
</body>
|
||||
</html>
|
Загрузка…
Ссылка в новой задаче