8000 Fix notification crash when using permission handler by kevinsawicki · Pull Request #7788 · electron/electron · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix notification crash when using permission handler #7788

New issue < 8000 button aria-label="Close dialog" data-close-dialog="" type="button" data-view-component="true" class="Link--muted btn-link position-absolute p-4 right-0">

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

Merged
merged 5 commits into from
Oct 31, 2016

Conversation

kevinsawicki
Copy link
Contributor
@kevinsawicki kevinsawicki commented Oct 28, 2016

This pull request upgrades Brightray to include electron-archive/brightray#258 and also adds a spec for using setPermissionRequestHandler with notifications.

Also updates a few asserts that were using assert instead of assert.equal/assert.deepEqual.

/cc @deepak1556 👀

Fixes #7645

@kevinsawicki kevinsawicki changed the title Fix notification crash when using permission handler [WIP] Fix notification crash when using permission handler Oct 28, 2016
session.fromPartition(webview.partition).setPermissionRequestHandler(function (webContents, permission, callback) {
if (webContents.getId() === webview.getId()) {
assert.equal(permission, 'notifications')
callback(true)
Copy link
Member

Choose a reason for hiding this comment

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

Do we want to add a delay here before responding, just so it tests for the original issue ?

@deepak1556
Copy link
Member

looks good to me 👍

@kevinsawicki kevinsawicki changed the title [WIP] Fix notification crash when using permission handler Fix notification crash when using permission handler Oct 31, 2016
@kevinsawicki kevinsawicki merged commit aa3bc13 into master Oct 31, 2016
@kevinsawicki kevinsawicki deleted the notification-crash branch October 31, 2016 16:39
@kevinsawicki
Copy link
Contributor Author

Thanks @deepak1556 for fixing this 👍

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.

2 participants
0