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

Commit

Permalink
Fix #3491, stop Screenshots in Private Browsing (#3544)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ianb authored and jaredhirsch committed Sep 22, 2017
1 parent 418ea50 commit 5b13917
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion addon/webextension/background/startBackground.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit 5b13917

Please sign in to comment.