Fixed computedChildPolicy() regression on missing tab url.
This commit is contained in:
parent
482d4eb91d
commit
2018a5957a
|
@ -295,7 +295,7 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
computeChildPolicy({url, contextUrl}, sender) {
|
computeChildPolicy({url, contextUrl}, sender) {
|
||||||
const {tab, frameId} = sender;
|
let {tab} = sender;
|
||||||
let policy = ns.policy;
|
let policy = ns.policy;
|
||||||
const {isTorBrowser} = ns.local;
|
const {isTorBrowser} = ns.local;
|
||||||
if (!policy) {
|
if (!policy) {
|
||||||
|
@ -311,7 +311,7 @@
|
||||||
|
|
||||||
const tabId = tab ? tab.id : -1;
|
const tabId = tab ? tab.id : -1;
|
||||||
let topUrl;
|
let topUrl;
|
||||||
if (frameId === 0) {
|
if (sender.frameId === 0) {
|
||||||
topUrl = url;
|
topUrl = url;
|
||||||
} else if (tab) {
|
} else if (tab) {
|
||||||
if (!tab.url) tab = TabCache.get(tabId);
|
if (!tab.url) tab = TabCache.get(tabId);
|
||||||
|
|
Loading…
Reference in New Issue