Skip to content

Commit 2018a59

Browse files
committed
Fixed computedChildPolicy() regression on missing tab url.
1 parent 482d4eb commit 2018a59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bg/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@
295295
},
296296

297297
computeChildPolicy({url, contextUrl}, sender) {
298-
const {tab, frameId} = sender;
298+
let {tab} = sender;
299299
let policy = ns.policy;
300300
const {isTorBrowser} = ns.local;
301301
if (!policy) {
@@ -311,7 +311,7 @@
311311

312312
const tabId = tab ? tab.id : -1;
313313
let topUrl;
314-
if (frameId === 0) {
314+
if (sender.frameId === 0) {
315315
topUrl = url;
316316
} else if (tab) {
317317
if (!tab.url) tab = TabCache.get(tabId);

0 commit comments

Comments
 (0)