зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1612951 - Replace the usages of nsIDocShellTreeItem with BrowsingContext in about:performance. r=florian
`nsIDocShellTreeItem.rootTreeItem` has been deprecated. We should use an approach based on BrowsingContext. Differential Revision: https://phabricator.services.mozilla.com/D61496 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
8e79d7f529
Коммит
915c37a5a1
|
@ -690,7 +690,8 @@ var Control = {
|
|||
if (target.classList.contains("addon-icon")) {
|
||||
let row = target.parentNode.parentNode;
|
||||
let id = row.windowId;
|
||||
let parentWin = window.docShell.rootTreeItem.domWindow;
|
||||
let parentWin =
|
||||
window.docShell.browsingContext.embedderElement.ownerGlobal;
|
||||
parentWin.BrowserOpenAddonsMgr(
|
||||
"addons://detail/" + encodeURIComponent(id)
|
||||
);
|
||||
|
|
Загрузка…
Ссылка в новой задаче