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