Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
fix(browser): fix downloads with nested frames (#9925)
Max Schmitt6a1e0759037c
diff --git a/browser_patches/firefox-beta/BUILD_NUMBER b/browser_patches/firefox-beta/BUILD_NUMBERindex 59dad47440..3bd255f39d 100644--- a/browser_patches/firefox-beta/BUILD_NUMBER+++ b/browser_patches/firefox-beta/BUILD_NUMBER@@ -1,2 +1,2 @@-1300-Changed: [email protected] Wed Oct 27 17:58:07 PDT 2021+1301+Changed: [email protected] Mon 1 Nov 2021 16:28:05 CETdiff --git a/browser_patches/firefox-beta/juggler/TargetRegistry.js b/browser_patches/firefox-beta/juggler/TargetRegistry.jsindex a0b470c71d..a12d9f96b3 100644--- a/browser_patches/firefox-beta/juggler/TargetRegistry.js+++ b/browser_patches/firefox-beta/juggler/TargetRegistry.js@@ -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;diff --git a/browser_patches/firefox/BUILD_NUMBER b/browser_patches/firefox/BUILD_NUMBERindex 6b399055af..0f0bd7f455 100644--- a/browser_patches/firefox/BUILD_NUMBER+++ b/browser_patches/firefox/BUILD_NUMBER@@ -1,2 +1,2 @@-1298-Changed: [email protected] Wed Oct 27 17:58:07 PDT 2021+1299+Changed: [email protected] Mon 1 Nov 2021 16:28:05 CETdiff --git a/browser_patches/firefox/juggler/TargetRegistry.js b/browser_patches/firefox/juggler/TargetRegistry.jsindex a0b470c71d..a12d9f96b3 100644--- a/browser_patches/firefox/juggler/TargetRegistry.js+++ b/browser_patches/firefox/juggler/TargetRegistry.js@@ -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;