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): handle message manager `error` event without error (#1344)

Andrey Lushnikov3b85bf9c1fda
diff --git a/browser_patches/firefox/BUILD_NUMBER b/browser_patches/firefox/BUILD_NUMBER
index 6aaa2493d2..e3c00fddd3 100644
--- a/browser_patches/firefox/BUILD_NUMBER
+++ b/browser_patches/firefox/BUILD_NUMBER
@@ -1 +1 @@
-1041
+1042
diff --git a/browser_patches/firefox/patches/bootstrap.diff b/browser_patches/firefox/patches/bootstrap.diff
index 7a805f46a2..c113fae8c4 100644
--- a/browser_patches/firefox/patches/bootstrap.diff
+++ b/browser_patches/firefox/patches/bootstrap.diff
@@ -2458,7 +2458,7 @@ index 0000000000000000000000000000000000000000..be70ea364f9534bb3b344f64970366c3
+
diff --git a/juggler/content/PageAgent.js b/juggler/content/PageAgent.js
new file mode 100644
-index 0000000000000000000000000000000000000000..05c814d2b6a3df8d770acba723051eb52063bd4f
+index 0000000000000000000000000000000000000000..3cafc06be2262a79e8459eb9afc03d424bc01303
--- /dev/null
+++ b/juggler/content/PageAgent.js
@@ -0,0 +1,919 @@
@@ -2821,7 +2821,7 @@ index 0000000000000000000000000000000000000000..05c814d2b6a3df8d770acba723051eb5
+ this._browserPage.emit('pageUncaughtError', {
+ frameId: frame.id(),
+ message: errorEvent.message,
-+ stack: errorEvent.error.stack
++ stack: errorEvent.error ? errorEvent.error.stack : '',
+ });
+ }
+