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

browser(firefox): support relative paths for firefox videos #27099

Merged
merged 1 commit into from
Sep 15, 2023

Conversation

aslushnikov
Copy link
Contributor

Firefox protocol requires absolute paths for video recording.

Fixes #27086

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@@ -236,7 +237,7 @@ export class FFBrowserContext extends BrowserContext {
// validateBrowserContextOptions ensures correct video size.
options: {
...this._options.recordVideo!.size!,
dir: this._options.recordVideo!.dir,
dir: path.resolve(process.cwd(), this._options.recordVideo!.dir),
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we fix it on the client instead? Sending a relative path over protocol sounds strange.

@github-actions

This comment has been minimized.

Firefox protocol requires absolute paths for video recording.

Fixes microsoft#27086
@aslushnikov aslushnikov merged commit a34030b into microsoft:main Sep 15, 2023
26 of 27 checks passed
@aslushnikov aslushnikov deleted the fix-ff-video-path branch September 15, 2023 17:26
@github-actions
Copy link
Contributor

Test results for "tests 1"

6 flaky ⚠️ [chromium] › library/tracing.spec.ts:469:5 › should work with multiple chunks
⚠️ [chromium] › page/page-event-request.spec.ts:130:3 › should report navigation requests and responses handled by service worker with routing
⚠️ [chromium] › page/page-event-request.spec.ts:101:3 › should report navigation requests and responses handled by service worker
⚠️ [chromium] › library/tracing.spec.ts:239:5 › should not include trace resources from the previous chunks
⚠️ [webkit] › library/browsercontext-reuse.spec.ts:50:1 › should reset serviceworker
⚠️ [webkit] › page/page-goto.spec.ts:277:3 › should fail when navigating to bad SSL after redirects

25623 passed, 605 skipped
✔️✔️✔️

Merge workflow run.

vogler added a commit to vogler/free-games-claimer that referenced this pull request Sep 18, 2023
Recording videos with relative path as in docs was broken for Firefox.
Issue: microsoft/playwright#27086
Can be reverted after PR is available in release: microsoft/playwright#27099
Germandrummer92 pushed a commit to OctoMind-dev/playwright that referenced this pull request Oct 27, 2023
…t#27099)

Firefox protocol requires absolute paths for video recording.

Fixes microsoft#27086
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.

[REGRESSION] recordVideo not working anymore after update
2 participants