Skip to content

Conversation

@JoelEinbinder
Copy link
Contributor

My version of #693

In order to make tests work, I needed to add a 'close' event to Browser. This broke the doclint, which didn't like browser having a 'close' event and a .close method. So that is why this patch is bigger than it should be.

Fixes #527

lib/Launcher.js Outdated
Copy link
Contributor Author

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.

Copy link
Contributor

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.

Copy link
Contributor

@aslushnikov aslushnikov left a 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
Copy link
Contributor

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
Copy link
Contributor

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

@aslushnikov
Copy link
Contributor

@JoelEinbinder any updates on this?

@JoelEinbinder
Copy link
Contributor Author

@aslushnikov I removed the event, browser.close() returns a promise.

Copy link
Contributor

@aslushnikov aslushnikov left a 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

@JoelEinbinder
Copy link
Contributor Author

Rebased

@aslushnikov aslushnikov merged commit f398e69 into puppeteer:master Sep 14, 2017
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.

using --user-data-dir=profilepath corrupts settings and remove all extensions

2 participants