fix(browser): fix downloads with nested frames (#9925)
This commit is contained in:
parent
1a2d23648f
commit
6a1e075903
|
|
@ -1,2 +1,2 @@
|
||||||
1300
|
1301
|
||||||
Changed: yurys@chromium.org Wed Oct 27 17:58:07 PDT 2021
|
Changed: max@schmitt.mx Mon 1 Nov 2021 16:28:05 CET
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ class DownloadInterceptor {
|
||||||
if (!(request instanceof Ci.nsIChannel))
|
if (!(request instanceof Ci.nsIChannel))
|
||||||
return false;
|
return false;
|
||||||
const channel = request.QueryInterface(Ci.nsIChannel);
|
const channel = request.QueryInterface(Ci.nsIChannel);
|
||||||
let pageTarget = this._registry._browserBrowsingContextToTarget.get(channel.loadInfo.browsingContext);
|
let pageTarget = this._registry._browserBrowsingContextToTarget.get(channel.loadInfo.browsingContext.top);
|
||||||
if (!pageTarget)
|
if (!pageTarget)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
1298
|
1299
|
||||||
Changed: yurys@chromium.org Wed Oct 27 17:58:07 PDT 2021
|
Changed: max@schmitt.mx Mon 1 Nov 2021 16:28:05 CET
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ class DownloadInterceptor {
|
||||||
if (!(request instanceof Ci.nsIChannel))
|
if (!(request instanceof Ci.nsIChannel))
|
||||||
return false;
|
return false;
|
||||||
const channel = request.QueryInterface(Ci.nsIChannel);
|
const channel = request.QueryInterface(Ci.nsIChannel);
|
||||||
let pageTarget = this._registry._browserBrowsingContextToTarget.get(channel.loadInfo.browsingContext);
|
let pageTarget = this._registry._browserBrowsingContextToTarget.get(channel.loadInfo.browsingContext.top);
|
||||||
if (!pageTarget)
|
if (!pageTarget)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue