Kathy and I did some triage of this ticket because we thought it might be a macOS-only bug, but that is probably not true. It seems to be related to first party isolation of permissions. Using the following page for testing, notifications started to work after I changed privacy.firstparty.isolate to false:
https://developer.mozilla.org/en-US/docs/Web/API/notification
On that page, grant permission for notifications when prompted and then click the "Notify me!" button.
after successfully logging in, the Tor Browser asks "Will you allow protonirockerxow.onion to send notifications", click "Allow Notifications".
Expected result: every time I receive an email, I should get a notification (via libnotify or something like this) that looks just like any other KDE desktop notification.
Instead of this expected result, I get no notification at all.
Arthur, can you pick that up? I think it could be relevant to upstreaming the permissions patch you are working on.
I just tested notifications with TBB 8.5a4 and First Party Isolation enabled, and notifications did not work.
I don't know how different TBB alpha and TBB nightly currently are though, so I don't know if this bit of information helps.
Trac: Username: nsIContentPermissionRequest Summary: growl a-like browser notifications are not working anymore on macOS with Tor Browser 8 to browser notifications are not working anymore with Tor Browser 8
We keep this on our radar for two reasons, even though we backported the fixes for 1330467:
There are follow-up bug fixes that we should backport in case we keep the patch series
It's not clear yet that the permission isolation works with disabling Enhanced Tracking Protection, which we want.
I think we are good with respect to 2) as we actually don't disable it but just the UI while setting it to block third party cookies as we are doing right now in the stable series. Which leaves 1).
So, given that we are hiding/disabling content blocking for now (and in principle are not affected by that regression) should we postpone backporting this patch until we explore/decide enabling content blocking? If yes, perhaps we could update #30939 (moved) so that we remember to backport this.
So, given that we are hiding/disabling content blocking for now (and in principle are not affected by that regression) should we postpone backporting this patch until we explore/decide enabling content blocking? If yes, perhaps we could update #30939 (moved) so that we remember to backport this.
That looks like a good idea. I'll add a note to that bug. I am interested in seeing https://bugzilla.mozilla.org/show_bug.cgi?id=1554805 in 9.0, too. The proposed patches are not really big and are probably straightforward to apply. I'd wait a bit, though, until they have actually landed. I've created #31811 (moved) to keep track of that.
Those look good and I cherry-picked them onto tor-browser-68.1.0esr-9.0-2 (commit c6eb1efb7d3ca6a9b5e19f6ec352ee1b129efbd3 and f970a6e8a14d8f80f15be22fa1ed6b091b4d596b).
Trac: Resolution: N/Ato fixed Status: needs_review to closed