From 5b139174fc62df7505dffd6fac6a9da412752815 Mon Sep 17 00:00:00 2001 From: Ian Bicking Date: Fri, 22 Sep 2017 18:45:05 -0500 Subject: [PATCH] Fix #3491, stop Screenshots in Private Browsing (#3544) bootstrap.js sends the tab ID with the Photon page action, but it doesn't have the complete set of information that the WebExtension tab object has --- addon/webextension/background/startBackground.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addon/webextension/background/startBackground.js b/addon/webextension/background/startBackground.js index 5469fd07fd..283f0b658a 100644 --- a/addon/webextension/background/startBackground.js +++ b/addon/webextension/background/startBackground.js @@ -135,7 +135,9 @@ this.startBackground = (function() { switch (message.type) { case "click": loadIfNecessary().then(() => { - main.onClicked(message.tab); + return browser.tabs.get(message.tab.id); + }).then((tab) => { + main.onClicked(tab); }).catch((error) => { console.error("Error loading Screenshots:", error); });