Uh oh!
There was an error while loading. Please reload this page.
fix: allow opt out from IndexedDB in storagestate - #34650
Conversation
This comment has been minimized.
This comment has been minimized.
Max Schmitt (mxschmitt)
left a comment
There was a problem hiding this comment.
Isn't it skipping IndexedDb only? Maybe adjust title?
storageStateIndexedDB in storagestateSimon Knott (Skn0tt)
commented
Feb 6, 2025
Good catch. I haven't had coffee this morning, time to change that. |
| const originsToSave = new Set(this._origins); | ||
| const collectScript = `(${storageScript.collect})((${utilityScriptSerializers.source})(), ${this._browser.options.name === 'firefox'})`; | ||
| const collectScript = `(${storageScript.collect})((${utilityScriptSerializers.source})(), ${this._browser.options.name === 'firefox'}, ${Boolean(process.env.PLAYWRIGHT_SKIP_INDEXEDDB)})`; |
There was a problem hiding this comment.
Let's make it a proper API option.
This comment has been minimized.
This comment has been minimized.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Max Schmitt (mxschmitt)
commented
Feb 6, 2025
Whats the motivation behind this flag? The potential risk that it contains unwanted data? |
This comment has been minimized.
This comment has been minimized.
Simon Knott (Skn0tt)
commented
Feb 6, 2025
IndexedDB might be very large, e.g. because it's used as a local cache. |
Test results for "tests 1"1 failed 12 flaky37798 passed, 655 skipped Merge workflow run. |
Allows opting out from
storageStateviaenv varoption.