-
Notifications
You must be signed in to change notification settings - Fork 15
Fix Mac OS X browser launching #58
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
Conversation
Hey there, thanks for contributing. @tomitm @mitchhentges I'm now on linux, can you verify this? |
Hey, thanks for the PR! I won't have access to a Mac for another two weeks, but I like this PR: I'm not really sure how this was working before, hah |
I can verify Chrome, Chrome Canary, Firefox, Safari and Opera are working on Mac OS X El Capitan. I've tried james-browser-launcher as a drop in replacement for browser-launcher2, and it indeed fixed some problems I was seeing in a headless Linux CI environment. However, it broke browser launching on Mac OS X. After further investigation, I've noticed it was all related to malformation of the argument list. For Chrome, arr.pop() was getting --noerrdialogs instead of the URL, because now the URL is at the beginning of the array, not at the end. This is what I was getting: Also for Chrome, I had to add the URL after the -a <path to chrome>, otherwise it won't open the URL in a new tab in case Chrome is already open (it was opening a blank new window instead). Safari was a similar situation. Firefox is now working since we're doing the open -a mojo for all browsers. Opera is also working. Haven't tried phantomjs, though. Any reason to not do open -a for all browsers? About the lint error, it comes from the regexp in run.js line 125. ESlint got more aggressive lately: eslint/eslint#7656. Not sure if you really want to remove the escape before /], though. Cheers |
Yeah, since Thanks again for the PR! If you don't mind, just update this branch with |
Thought the same. Why did it ever had to be different for Firefox and PhantomJS? Anyway, do you have a PhantomJS in hand to give it a try? Will rebase it in a moment. |
I don't fully understand, sorry. Like, a version of |
Considering that this is an improvement either way, I'll merge this, release it, and we can improve |
Marcelo, I've published release |
@mitchhentges ping - Skype? |
No description provided.