Skip to content

fix: reset SNAP* env variables when launching Firefox#20692

Merged
aslushnikov merged 3 commits intomicrosoft:mainfrom
aslushnikov:work-better-with-snap
Feb 7, 2023
Merged

fix: reset SNAP* env variables when launching Firefox#20692
aslushnikov merged 3 commits intomicrosoft:mainfrom
aslushnikov:work-better-with-snap

Conversation

@aslushnikov
Copy link
Contributor

Our builds never come from Snap, so Playwright's Firefox should
never consider that it's been installed via SNAP.

Fixes #20555

Our builds never come from Snap, so Playwright's Firefox should
never consider that it's been installed via SNAP.

Fixes microsoft#20555
// Always remove SNAP_NAMe and SNAP_INSTANCE_NAME env variables since they
// confuse Firefox: in our case, builds never come from SNAP.
// See https://github.com/microsoft/playwright/issues/20555
return {...env, SNAP_NAME: undefined, SNAP_INSTANCE_NAME: undefined };
Copy link
Member

Choose a reason for hiding this comment

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

nit: can we have a test for this?

aslushnikov and others added 2 commits February 6, 2023 23:17
Co-authored-by: Max Schmitt <max@schmitt.mx>
Signed-off-by: Andrey Lushnikov <aslushnikov@gmail.com>
@aslushnikov aslushnikov merged commit d3c5430 into microsoft:main Feb 7, 2023
@aslushnikov aslushnikov deleted the work-better-with-snap branch February 7, 2023 09:41
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] Firefox problems when running v1.30.0 inside Webstorm snap terminal

4 participants