Skip to content

Commit

Permalink
Don't try to capture discarded tabs #3412
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Nov 27, 2024
1 parent ae94988 commit b948f16
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions webextensions/sidebar/tab-preview-tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ async function onTabSubstanceEnter(event) {
let previewURL;
try {
if (!active &&
!event.target.tab.discarded &&
CAPTURABLE_URLS_MATCHER.test(event.target.tab.url)) {
previewURL = await browser.tabs.captureTab(event.target.tab.id);
}
Expand Down

0 comments on commit b948f16

Please sign in to comment.