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

preferences: fix regex incompatible with Firefox #7774

Merged
merged 1 commit into from
May 7, 2020
Merged

Conversation

paul-marechal
Copy link
Member

Firefox doesn't handle lookahead/lookbehind patterns in regexes, leading
to Theia applications not starting when ran inside Firefox.

This commit replaces the problematic regex with a method that produces
the same result.

Fixes: #7771

How to test

Theia's browser example application should now work in Firefox.

Review checklist

Reminder for reviewers

Firefox doesn't handle lookahead/lookbehind patterns in regexes, leading
to Theia applications not starting when ran inside Firefox.

This commit replaces the problematic regex with a method that produces
the same result.

Signed-off-by: Paul Maréchal <[email protected]>
@paul-marechal paul-marechal added bug bugs found in the application browser/firefox issues related to the firefox browser labels May 7, 2020
Copy link
Member

@vince-fugnitto vince-fugnitto left a comment

Choose a reason for hiding this comment

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

I verified the changes:

  • the initial implementation still works correctly when constructing preference headers
  • the added test passes locally when run npx run test @theia/preferences
  • the changes fix loading the application on firefox and safari

@paul-marechal paul-marechal merged commit fa7fb7d into master May 7, 2020
@paul-marechal paul-marechal deleted the mp/ff-fix branch May 7, 2020 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
browser/firefox issues related to the firefox browser bug bugs found in the application
Projects
None yet
Development

Successfully merging this pull request may close these issues.

firefox: application fails to load
2 participants