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

firefox: application fails to load #7771

Closed
vince-fugnitto opened this issue May 7, 2020 · 7 comments · Fixed by #7774
Closed

firefox: application fails to load #7771

vince-fugnitto opened this issue May 7, 2020 · 7 comments · Fixed by #7774
Assignees
Labels
browser/firefox issues related to the firefox browser bug bugs found in the application critical critical bugs / problems

Comments

@vince-fugnitto
Copy link
Member

Bug Description:

The application fails to load on firefox.
The loading screen is displayed, and there is an error on startup:

Screen Shot 2020-05-07 at 9 10 21 AM

It would be good for others to confirm that it is broken as well.

Steps to Reproduce:

  1. start the example-brower application (yarn start:browser)
  2. open localhost on firefox

Additional Information

  • Operating System: macOS
  • Theia Version: 7cf845b
@vince-fugnitto vince-fugnitto added bug bugs found in the application browser/firefox issues related to the firefox browser critical critical bugs / problems labels May 7, 2020
@kittaakos
Copy link
Contributor

It would be good for others to confirm that it is broken as well.

Confirmed.

Screen Shot 2020-05-07 at 15 37 44

@kittaakos
Copy link
Contributor

I have seen this before, not all the browsers(?) allow positive lookahead groups for regexp, it's an ES7 thing (I am just guessing, though). I have seen lookahead groups commit recently, not sure where.

@kittaakos
Copy link
Contributor

Here, FF and IE does not support groups, I remember I had the same issue a year ago.

@vince-fugnitto
Copy link
Member Author

@kittaakos this is what I could find that was added recently (following #7105):

const splitter = /[\W_]|(?<=[^A-Z])(?=[A-Z])/; // Any non-word character or the 0-length space between a non-upper-case character and an upper-case character

const splitter = /[\W_]|(?<=[^A-Z])(?=[A-Z])/;

I'll try a commit before and see if the changes affected firefox.

@vince-fugnitto
Copy link
Member Author

@kittaakos this is what I could find that was added recently (following #7105):

const splitter = /[\W_]|(?<=[^A-Z])(?=[A-Z])/; // Any non-word character or the 0-length space between a non-upper-case character and an upper-case character

const splitter = /[\W_]|(?<=[^A-Z])(?=[A-Z])/;

I'll try a commit before and see if the changes affected firefox.

I confirmed that a commit before the problem was not there, we will need to update the regular expressions.

@akosyakov
Copy link
Member

@vince-fugnitto Do you take care about it?

@akosyakov
Copy link
Member

I wonder is there some es linting for regex that we use only syntax supported by all browsers.

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 critical critical bugs / problems
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants