Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Can't enable "Web notifications" on twitter #3579

Closed
joneschrisg opened this issue Aug 30, 2016 · 12 comments
Closed

Can't enable "Web notifications" on twitter #3579

joneschrisg opened this issue Aug 30, 2016 · 12 comments
Labels
needs-discussion A suggestion that lacks agreement from the team. webcompat

Comments

@joneschrisg
Copy link

Did you search for similar issues before submitting this one?

Yes.

Describe the issue you encountered:

Can't enable "Web notifications" on twitter.

Expected behavior:

Web notifications are enabled after tapping "Turn on" button; see STR below.

  • Platform (Win7, 8, 10? macOS? Linux distro?):
    OS X 10.11.6
  • Brave Version:
    0.11.5
  • Steps to reproduce:
    1. Navigate to Twitter Settings, then "Web notifications" subsection.
    2. Tap "Turn on" button
  • Screenshot if needed:
  • Any related issues:
@joneschrisg
Copy link
Author

Same behavior in 0.11.6.

@bbondy
Copy link
Member

bbondy commented Sep 4, 2016

/cc @diracdeltas

@luixxiul
Copy link
Contributor

The config page says "web notifications settings are currently disabled" for me.

@diracdeltas
Copy link
Member

@luixxiul do you see any permission for Twitter domains in about:preferences#security?

@alexwykoff
Copy link
Contributor

Confirmed this is not working:
web_notifications

No special permissions existed for Twitter domains in about:preferences#security

I believe this also caused : #3877

@alexwykoff alexwykoff reopened this Sep 12, 2016
@diracdeltas
Copy link
Member

#3877 is definitely unrelated to 08e6191, but web notifications won't work anyway because of it

@bridiver
Copy link
Collaborator

this is going to require some larger changes. Electron's somewhat odd permission handling doesn't cover this case and we really should migrate to HostContentSettingsMap

@bbondy
Copy link
Member

bbondy commented Sep 13, 2016

moving to 0.12.2

@bbondy bbondy modified the milestones: 0.12.2dev, 0.12.1dev Sep 13, 2016
@bridiver
Copy link
Collaborator

The issue is caused by the way electron handles permissions. Everything is initially granted and the actual allow/deny decision is made in the cancel callback. This causes problems for setting detection both in twitter and in https://www.browserleaks.com/geo
As mentioned above, I think the best solution is to move away from the default electron handling and use HostContentSettingsMap and implement GetPushMessagingService in BraveBrowserContext so we can still return permissions synchronously and only trigger the permission callback when CheckPermissionOnIOThread returns ASK

@bbondy bbondy removed this from the 0.12.3dev milestone Sep 26, 2016
@bbondy bbondy modified the milestones: 1.1.0, 0.12.4dev Oct 4, 2016
@diracdeltas
Copy link
Member

This seems to be fixed now? On OS X web notifications are appearing for me in 0.12.3

@bridiver
Copy link
Collaborator

bridiver commented Oct 5, 2016

maybe twitter changed something? Either way I think we want to either keep this open or open a new ticket because there we are not handling some calls correctly and really can't the way electron works right now

@alexwykoff alexwykoff modified the milestones: 1.1.0, Backlog Nov 1, 2017
@luixxiul
Copy link
Contributor

luixxiul commented Nov 2, 2017

Closing as fixed. Let's reopen if we see the issue again 👍

@luixxiul luixxiul closed this as completed Nov 2, 2017
@luixxiul luixxiul removed this from the Triage Backlog milestone Nov 2, 2017
@luixxiul luixxiul added the needs-discussion A suggestion that lacks agreement from the team. label Nov 3, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs-discussion A suggestion that lacks agreement from the team. webcompat
Projects
None yet
Development

No branches or pull requests

7 participants