New browser window is not opened from system notification if only private window or browser console are opened
Categories
(Toolkit :: Alerts Service, defect, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr115 | --- | unaffected |
| firefox124 | --- | unaffected |
| firefox125 | --- | unaffected |
| firefox126 | --- | affected |
People
(Reporter: bmaris, Assigned: nrishel)
References
Details
(Whiteboard: [fidedi])
Attachments
(1 file)
|
8.60 MB,
image/gif
|
Details |
Found in
- Latest Nightly 126.0a1
Affected versions
- Latest Nightly 126.0a1
Tested platforms
- Affected platforms: Windows 10 and Windows 11
- Unaffected platforms: macOS 13 and Ubuntu 22.04
Preconditions
- Have the default browser something that's not Nightly
- Have Nightly opened
Steps to reproduce
- Open a private window and close the other normal windows
- Visit about:preferences and click on
Make Default... - Click on
Show mefrom the system notification
or - Open one normal window and Browser Console
- Visit about:preferences and click on
Make Default... - Quickly close the normal window before the notification appears
- Click on
Show mefrom the system notification
Expected result
- The expected sumo page opens in a normal window or in private window.
Actual result
- The sumo page is not loaded.
Regression range
- Not a regression since the notification landed just yesterday in Nightly (2024-04-12).
Additional notes
- I suspect this is not related with the notification itself but with how Firefox handles browser windows but I can't think of another way to reproduce at this time so feel free to change the component if necessary.
- Marking all the other Fx versions as unaffected but that can change if this is not related to the notification itself and someone has another way of reproducing it outside of the notification.
- If setting Nightly as
Never remember historyfrom about:preferences#privacy a new tab will open with the SUMO page. - I tried a similar way of forcing a Fx window to open by using the mailto feature and a new window has opened correctly. Steps:
- Set Nightly as the default Email handler in Settings from Windows
- Open a 3rd party app with a mailto link (I used qBittorrent and went to About and there is a mailto url, any app that has something like that will do)
- Have only the browser console opened and other Nightly browser windows closed
- Click the mailto URL
Actual result: A Nightly window is opened, loading the email service or the choose application flow.
| Assignee | ||
Comment 1•1 year ago
|
||
This might be a broader OMC issue and outside of the scope of Bug 1890066.
| Assignee | ||
Comment 2•1 year ago
|
||
Moving this to the Messaging System on the intuition that it looks like some weird interaction between it and private browsing, but we can reevaluate if OMC feels differently.
Updated•1 year ago
|
Updated•1 year ago
|
Comment 3•1 year ago
|
||
(In reply to Nick Rishel [:nrishel] from comment #2)
Moving this to the Messaging System on the intuition that it looks like some weird interaction between it and private browsing, but we can reevaluate if OMC feels differently.
@nrishel on debugging code here seems to be not working as expected when private browsing is the only window that is open.
For regular window, winForAction is getting set correct and able to pass needed params to SpecialMessageActions API to handle OPEN_URL.
Changing component to Alert Service to help debug for this edge case handleWindowsTag implemented with Bug 1805514. Thanks
Updated•1 year ago
|
| Assignee | ||
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
| Assignee | ||
Comment 4•1 year ago
|
||
Hmm, we intentionally filter against private browsing Windows unless private browsing is always enabled. The browser console case is probably that we don't have a window to launch into, but we're also not in a first launch scenario.
A couple fixes that might apply here:
- Open a new window when there are no candidate windows for the notification to launch to.
- Try to find a common identifier for windows that correlate between sessions and relaunch to them (opening a new window when there is no correlation)
Which direction is preferable depends on what we should be doing from a Messaging System notification that originates from a private window - we probably don't want to leak a private browser interaction into a normal session since there are implications around telemetry consent? I'll poke around to see what the correct behavior is here.
Description
•