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