Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

browser(firefox): set initial page url to about:blank (#2300)

Dmitry Gozman5d0b5625fa64
diff --git a/browser_patches/firefox/BUILD_NUMBER b/browser_patches/firefox/BUILD_NUMBER
index ba851d8439..54ba9c1112 100644
--- a/browser_patches/firefox/BUILD_NUMBER
+++ b/browser_patches/firefox/BUILD_NUMBER
@@ -1 +1 @@
-1096
+1097
diff --git a/browser_patches/firefox/patches/bootstrap.diff b/browser_patches/firefox/patches/bootstrap.diff
index 8964645056..44fdc1da9d 100644
--- a/browser_patches/firefox/patches/bootstrap.diff
+++ b/browser_patches/firefox/patches/bootstrap.diff
@@ -2402,7 +2402,7 @@ index 0000000000000000000000000000000000000000..ba34976ad05e7f5f1a99777f76ac08b1
+this.SimpleChannel = SimpleChannel;
diff --git a/juggler/TargetRegistry.js b/juggler/TargetRegistry.js
new file mode 100644
-index 0000000000000000000000000000000000000000..bbd2983755282e514c17824c210e9ab49a1bbad0
+index 0000000000000000000000000000000000000000..921cea40e11588805a0ab014e810c6aff8998f16
--- /dev/null
+++ b/juggler/TargetRegistry.js
@@ -0,0 +1,676 @@
@@ -2732,7 +2732,7 @@ index 0000000000000000000000000000000000000000..bbd2983755282e514c17824c210e9ab4
+ this._linkedBrowser = linkedBrowser;
+ this._browserContext = browserContext;
+ this._viewportSize = undefined;
-+ this._url = '';
++ this._url = 'about:blank';
+ this._openerId = opener ? opener.id() : undefined;
+ this._channel = SimpleChannel.createForMessageManager(`browser::page[${this._targetId}]`, this._linkedBrowser.messageManager);
+ this._channelIds = new Set();