clicking on web notification when spawning parent tab is closed fails to launch URL

NEW
Unassigned

Status

()

Core
DOM
2 years ago
2 years ago

People

(Reporter: edwong, Unassigned)

Tracking

43 Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

2 years ago
0. open a tab to any URL
1. open another tab to: https://people.mozilla.org/~ewong2/push-notification-test/
2. click 'pop notification' button
3. click allow for session in permission door hanger
3b. OS level notification should have popped up and displayed
4. close this tab with: https://people.mozilla.org/~ewong2/push-notification-test/
5. click on the notification

actual: nothing happens

expected: mozilla.org should have opened in a new tab.
We should check what the spec says about this.
Component: Notifications and Alerts → DOM
Product: Toolkit → Core
Summary: clicking on notifications when spawning parent tab is closed fails to launch URL → clicking on web notification when spawning parent tab is closed fails to launch URL
(Reporter)

Comment 2

2 years ago
It's possible that Catalin's patch for openWindow() in a SW will fix this.
Maybe not for notifications created outside of service workers though. There are 3 contexts in the DOM code that can create notifications: regular page context, web workers, and service workers.
You need to log in before you can comment on or make changes to this bug.