fix(browser): fix downloads with nested frames (#9925)

This commit is contained in:
Max Schmitt 2021-11-01 17:37:07 +01:00 committed by GitHub
parent 1a2d23648f
commit 6a1e075903
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View file

@ -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

View file

@ -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;

View file

@ -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

View file

@ -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;