Skip to content

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

feat(firefox): roll to r1540 (#42229)

microsoft-playwright-automation[bot]535d8f10cd5a
diff --git a/browser_patches/firefox/juggler/content/Runtime.js b/browser_patches/firefox/juggler/content/Runtime.js
index a29af41b20..46cc4514b9 100644
--- a/browser_patches/firefox/juggler/content/Runtime.js
+++ b/browser_patches/firefox/juggler/content/Runtime.js
@@ -56,6 +56,10 @@ const disallowedMessageCategories = new Set([
class Runtime {
constructor(isWorker = false) {
this._debugger = new Debugger();
+ // A debuggee global with these flags unset is pinned to the debuggable wasm/asm.js
+ // baseline tier, with the optimizing compiler disabled entirely.
+ this._debugger.allowUnobservedWasm = true;
+ this._debugger.allowUnobservedAsmJS = true;
this._pendingPromises = new Map();
this._executionContexts = new Map();
this._windowToExecutionContext = new Map();
diff --git a/browser_patches/firefox/juggler/content/WorkerMain.js b/browser_patches/firefox/juggler/content/WorkerMain.js
index 99a6623e76..555a97a874 100644
--- a/browser_patches/firefox/juggler/content/WorkerMain.js
+++ b/browser_patches/firefox/juggler/content/WorkerMain.js
@@ -22,6 +22,10 @@ const runtime = new Runtime(true /* isWorker */);
// Create execution context in the runtime only when the script
// source was actually evaluated in it.
const dbg = new Debugger(global);
+ // A debuggee global with these flags unset is pinned to the debuggable wasm/asm.js
+ // baseline tier, with the optimizing compiler disabled entirely.
+ dbg.allowUnobservedWasm = true;
+ dbg.allowUnobservedAsmJS = true;
if (dbg.findScripts({global}).length) {
runtime.createExecutionContext(null /* domWindow */, global, {});
} else {
diff --git a/packages/playwright-core/browsers.json b/packages/playwright-core/browsers.json
index e402d597f8..a4981d493d 100644
--- a/packages/playwright-core/browsers.json
+++ b/packages/playwright-core/browsers.json
@@ -17,7 +17,7 @@
},
{
"name": "firefox",
- "revision": "1539",
+ "revision": "1540",
"installByDefault": true,
"browserVersion": "153.0",
"title": "Firefox"