window.showModalDialog fails in fennec mochitests

RESOLVED INCOMPLETE

Status

()

Core
Embedding: APIs
RESOLVED INCOMPLETE
7 years ago
2 years ago

People

(Reporter: jdm, Unassigned)

Tracking

(Blocks: 1 bug)

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

7 years ago
We end up hitting this assertion in content/html/document/test/test_bug391777.html:

###!!! ASSERTION: attempted to open a new window with no WindowCreator: 'mWindowCreator', file /Users/jdm/src/mobilebase/embedding/components/windowwatcher/src/nsWindowWatcher.cpp, line 687

We're trying to create a modal chrome window with no chrome parent, and the parent has a null result from GetMainWidget (see nsWindowWatcher::OpenWindowJSInternal).
(Reporter)

Comment 1

7 years ago
In fact, the parentWindow is just an nsDocShellTreeOwner and GetMainWidget just returns NS_ERROR_NULL_POINTER.
(Reporter)

Comment 2

7 years ago
It looks like the main problem here is that we don't initialize the window watcher component at startup by calling SetWindowCreator as it states we need to in the docs.
(Reporter)

Comment 3

7 years ago
Front-end folk, is this something we should be able to do?
(Reporter)

Updated

7 years ago
Blocks: 682416
Related to bug 753555.

Updated

2 years ago
See Also: → bug 1239896

Comment 5

2 years ago
Marking a bunch of bugs in the "Embedding: APIs" component INCOMPLETE in preparation to archive that component. If I have done this incorrectly, please reopen the bugs and move them to a more correct component as we don't have "embedding" APIs any more.
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.