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

fix(permissions): fix notifications permissions on firefox #1531

Merged
merged 1 commit into from Mar 25, 2020

Conversation

pavelfeldman
Copy link
Member

No description provided.

Copy link
Contributor

@dgozman dgozman left a comment

Choose a reason for hiding this comment

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

I think browser patch has a bug, so I wonder whether the flakiness is still there? 😄

await page.goto(server.EMPTY_PAGE);
await context.grantPermissions(['notifications'], { origin: server.EMPTY_PAGE });
await page.waitFor(3000);
Copy link
Contributor

Choose a reason for hiding this comment

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

whoopsy

Copy link
Member Author

Choose a reason for hiding this comment

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

Removed

Copy link
Member Author

@pavelfeldman pavelfeldman left a comment

Choose a reason for hiding this comment

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

I think browser patch has a bug, so I wonder whether the flakiness is still there?

My patch is not fixing flakiness, it makes notifications permissions work. If you follow the code, you can see that exception on the content side was the thing that 'fixed' the flakiness in the first place. The bug you saw in the browser side was me making last-minute call beautification.

Since then I reworked the browser-side patch to only do the empty rountrip, it turned out that the perm-change event that it awaited never arrived.

@pavelfeldman pavelfeldman merged commit ef9e04d into microsoft:master Mar 25, 2020
@pavelfeldman pavelfeldman deleted the fe_perms branch April 17, 2020 21:10
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.

None yet

2 participants