Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(reuse): reset Origin Private File System API #29921

Conversation

mxschmitt
Copy link
Member

Fixes #29901

This clears the Origin Private File System API when using VSCode extension.

This comment has been minimized.

@mxschmitt mxschmitt marked this pull request as draft March 13, 2024 15:22
@mxschmitt mxschmitt force-pushed the bugfix/should-reset-Origin-Private-File-System branch from de98288 to 45f3e0f Compare March 14, 2024 16:01
@mxschmitt mxschmitt marked this pull request as ready for review March 14, 2024 16:01

This comment has been minimized.

@pavelfeldman
Copy link
Member

As agreed offline, let's do web api-based solution.

@mxschmitt mxschmitt force-pushed the bugfix/should-reset-Origin-Private-File-System branch from 45f3e0f to 1a9d678 Compare March 14, 2024 18:23
@@ -212,7 +212,7 @@ test('should clean storage', async ({ runInlineTest }) => {
let lastContextGuid;

test.beforeEach(async ({ page }) => {
await page.route('**/*', route => route.fulfill('<html></html>'));
await page.route('**/*', route => route.fulfill({ body: '<html></html>', contentType: 'text/html' }));
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

drive-by: it was never working before.

This comment has been minimized.

@mxschmitt mxschmitt force-pushed the bugfix/should-reset-Origin-Private-File-System branch 2 times, most recently from 3b3fbd8 to 7ddc8d8 Compare March 14, 2024 19:47

This comment has been minimized.

@mxschmitt mxschmitt force-pushed the bugfix/should-reset-Origin-Private-File-System branch 2 times, most recently from ba61e37 to a04ee35 Compare March 14, 2024 20:06

This comment has been minimized.

This comment has been minimized.

@mxschmitt mxschmitt force-pushed the bugfix/should-reset-Origin-Private-File-System branch from a04ee35 to 05c48d9 Compare March 15, 2024 15:03
@mxschmitt mxschmitt force-pushed the bugfix/should-reset-Origin-Private-File-System branch from 05c48d9 to 88e6d38 Compare March 15, 2024 15:04

This comment has been minimized.

This comment has been minimized.

Copy link
Contributor

Test results for "tests 1"

7 flaky ⚠️ [chromium-library] › library/tracing.spec.ts:243:5 › should not include trace resources from the previous chunks
⚠️ [chromium-library] › library/tracing.spec.ts:243:5 › should not include trace resources from the previous chunks
⚠️ [playwright-test] › ui-mode-test-ct.spec.ts:117:5 › should run component tests after editing test and component
⚠️ [playwright-test] › ui-mode-test-screencast.spec.ts:21:5 › should show screenshots
⚠️ [playwright-test] › ui-mode-test-ct.spec.ts:117:5 › should run component tests after editing test and component
⚠️ [playwright-test] › ui-mode-test-progress.spec.ts:165:5 › should update tracing network live
⚠️ [webkit-library] › library/tracing.spec.ts:243:5 › should not include trace resources from the previous chunks

26796 passed, 618 skipped
✔️✔️✔️

Merge workflow run.

@mxschmitt mxschmitt merged commit 048d666 into microsoft:main Mar 15, 2024
30 checks passed
mxschmitt added a commit to mxschmitt/playwright that referenced this pull request Apr 11, 2024
mxschmitt added a commit that referenced this pull request Apr 11, 2024
…30342)

This reverts commit 048d666.

This change caused the crash for
#30339 (comment).
If we don't execute this code, it does not crash.

Reverting it for now until the Chromium fix lands in Beta/Stable.
mxschmitt pushed a commit that referenced this pull request Apr 11, 2024
…stem API (#29921)" (#30344)

This PR cherry-picks the following commits:

- 96053ed

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Origin Private File System is not isolated between tests
2 participants