Closed Bug 1638803 Opened 5 years ago Closed 5 years ago

Add automated tests for the window parenting of the protocol handler choice dialog

Categories

(Firefox :: File Handling, task, P3)

task

Tracking

()

RESOLVED WONTFIX
Tracking Status
firefox78 --- wontfix

People

(Reporter: Gijs, Unassigned)

References

Details

This was likely broken in e10s for a while prior to the changes in bug 1638092, because we passed something on which we tried to call getInterface to obtain an nsIDOMWindow. But the callers:

https://searchfox.org/mozilla-beta/search?q=nsExternalHelperAppService%3A%3ALoadURI&path=&case=false&regexp=false

pass various different things, and AFAICT only the docshell case would reliably produce a same-process window - but we wouldn't be hitting the docshell case with e10s enabled. So I suspect we just always passed null as the window parent of the dialog prior to the changes in bug 1638092 and bug 1196151.

When we show the dialog in response to an unknown protocol loading from within web content, we should verify it's parented to the right chrome window.

No longer blocks: 1638092
Depends on: 1638092
Severity: -- → S4
Flags: needinfo?(gijskruitbosch+bugs)
Priority: -- → P3

There is some test coverage here now; it's not really clear that the "right" parent window is going to make a difference (more than just showing the window topmost when it appears), and we're likely to move this to be a tab-modal dialog soon, at which point this becomes moot. So going to close this out.

Status: NEW → RESOLVED
Closed: 5 years ago
Flags: needinfo?(gijskruitbosch+bugs)
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.