@lvce-editor/test-with-playwright-worker 22.40.1 → 22.40.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/workerMain.js +2 -1
- package/package.json +1 -1
package/dist/workerMain.js
CHANGED
|
@@ -2593,8 +2593,9 @@ const startBrowser = async ({
|
|
|
2593
2593
|
headless
|
|
2594
2594
|
};
|
|
2595
2595
|
// Chromium 153 crashes when restoring OPFS handles from its in-memory IndexedDB backend.
|
|
2596
|
+
// WebKit also rejects OPFS access in an ephemeral context.
|
|
2596
2597
|
// An empty userDataDir gives each run a temporary disk-backed profile managed by Playwright.
|
|
2597
|
-
const browserInstance = browser === '
|
|
2598
|
+
const browserInstance = browser === 'firefox' ? await launcher.launch(options) : await launcher.launchPersistentContext('', options);
|
|
2598
2599
|
let disposal;
|
|
2599
2600
|
const dispose = () => {
|
|
2600
2601
|
signal.removeEventListener('abort', handleAbort);
|