Bug 1510628 - Add rel=opener to browser_moz_action_link.js, r=me
authorAndrea Marchesini <amarchesini@mozilla.com>
Thu, 29 Nov 2018 11:46:45 +0100
changeset 505164 27fd2915a7ce6fb309142f9cdfa1b4eb3d7f5b20
parent 505163 5893496d34c5ebe22982f9e0adde0a55fb797e1c
child 505165 2449004c31ffceacbcc306b813458dd31fd8505d
push id10290
push userffxbld-merge
push dateMon, 03 Dec 2018 16:23:23 +0000
treeherdermozilla-beta@700bed2445e6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1510628
milestone65.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1510628 - Add rel=opener to browser_moz_action_link.js, r=me
browser/base/content/test/urlbar/browser_moz_action_link.js
--- a/browser/base/content/test/urlbar/browser_moz_action_link.js
+++ b/browser/base/content/test/urlbar/browser_moz_action_link.js
@@ -2,17 +2,17 @@
 
 const kURIs = [
   "moz-action:foo,",
   "moz-action:foo",
 ];
 
 add_task(async function() {
   for (let uri of kURIs) {
-    let dataURI = `data:text/html,<a id=a href="${uri}" target=_blank>Link</a>`;
+    let dataURI = `data:text/html,<a id=a href="${uri}" target=_blank rel="opener">Link</a>`;
     let tab = await BrowserTestUtils.openNewForegroundTab(gBrowser, dataURI);
 
     let tabSwitchPromise = BrowserTestUtils.switchTab(gBrowser, function() {});
     await ContentTask.spawn(tab.linkedBrowser, null, async function() {
       content.document.getElementById("a").click();
     });
     await tabSwitchPromise;
     isnot(gBrowser.selectedTab, tab, "Switched to new tab!");