From 915c37a5a1b61cf1e47cd9a0ac7e94ca544b1c34 Mon Sep 17 00:00:00 2001 From: Tetsuharu OHZEKI Date: Wed, 5 Feb 2020 15:24:29 +0000 Subject: [PATCH] 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 --- .../components/aboutperformance/content/aboutPerformance.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/toolkit/components/aboutperformance/content/aboutPerformance.js b/toolkit/components/aboutperformance/content/aboutPerformance.js index e9d74d64dcee..bf7b566bbc87 100644 --- a/toolkit/components/aboutperformance/content/aboutPerformance.js +++ b/toolkit/components/aboutperformance/content/aboutPerformance.js @@ -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) );