Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Commit 1888d39

Browse files
committed
backport - Bug 1374741 - Within devtools/ make openUILinkIn() provide the correct triggeringPrincipal. r=jryans
1 parent cc9e29e commit 1888d39

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

assets/panel/panel.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,13 @@ DebuggerPanel.prototype = {
7474
}
7575

7676
const top = win.ownerDocument.defaultView.top;
77-
if (!top || typeof top.openUILinkIn !== "function") {
77+
if (!top || typeof top.openWebLink !== "function") {
7878
return;
7979
}
8080

81-
top.openUILinkIn(url, "tab");
81+
top.openWebLinkIn(url, "tab", {
82+
triggeringPrincipal: win.document.nodePrincipal
83+
});
8284
},
8385

8486
openWorkerToolbox: function(worker) {

0 commit comments

Comments
 (0)