-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Launcher: Close gracefully when a userDataDir is specified #700
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
Launcher: Close gracefully when a userDataDir is specified #700
Conversation
lib/Launcher.js
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aslushnikov I copied this from your previous PR. I'm not sure if we need it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's to handle "process.exit " case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
test/test.js
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's make browser.close() return a promise
lib/Browser.js
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's kill the event
|
@JoelEinbinder any updates on this? |
eca4e8e to
2ff0bec
Compare
|
@aslushnikov I removed the event, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, rebaseline so that there are no conflicts
166af0a to
6c340ef
Compare
|
Rebased |
My version of #693
In order to make tests work, I needed to add a
'close'event toBrowser. This broke the doclint, which didn't like browser having a'close'event and a.closemethod. So that is why this patch is bigger than it should be.Fixes #527