Closed Bug 256555 Opened 20 years ago Closed 8 years ago

window opened by modal dialog is itself modal

Categories

(Core Graveyard :: Embedding: APIs, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: surkov, Unassigned)

References

Details

Attachments

(3 files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040616 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040616 I open modal dialog and popup dialog from this modal dialog. I cann't set focus to modal dialog. Reproducible: Always Steps to Reproduce: 1. open modal dialog by openDialog(path, name, 'modal') method 2. open popup dialog by openDialog(path, name, 'popup') method from modal dialog 3. try to set focus to modal dialog Actual Results: modal dialog hasn't focus Expected Results: modal dialog should have focus
Attached file need to 1.xul (deleted) —
Attached file need to 1.xul (deleted) —
*** Bug 256556 has been marked as a duplicate of this bug. ***
This is another way of saying that a window opened by a modal window is itself modal, whether or not the "modal" flag was used explicitly. I'm adjusting the summary, component and assignee (which was the default DOM assignee). This was done for bug 56677. See also bug 15574, and bug 99284 comment 3 and 5. As those comments say, we've forgotten exactly why this was necessary. It sounds like a good idea, though, and I suspect nasty problems will be reintroduced if we lift that restriction. I'm leaving this bug open because it's true, though it's nearly a "won't fix." If someone wants to devote the time to discovering whether this is still a necessary restriction, jump on in. Be certain to test *all* platforms. But since the restriction fixed some bad problems at the time, and since almost no one has ever complained about this since it was done in late 2000, I'm inclined to let this sleeping dog lie.
Assignee: general → nobody
Status: UNCONFIRMED → NEW
Component: DOM → XP Apps
Ever confirmed: true
OS: Windows 2000 → All
Hardware: PC → All
Summary: Popup window doesn't permit to get a focus to modal dialog → window opened by modal dialog is itself modal
Product: Core → Mozilla Application Suite
Component: XP Apps → Embedding: Docshell
Product: Mozilla Application Suite → Core
QA Contact: ian → docshell
Not really a docshell thing.... And agree with danm's wontfix, fwiw.
Component: Embedding: Docshell → Embedding: APIs
QA Contact: docshell → apis
(In reply to comment #7) > And agree with danm's wontfix, fwiw. > Though usefull feature may be for XUL applications :)
The point is, some windowing systems don't really allow a window whose parent is a modal window to be nonmodal. So if we're trying to have an XP toolkit, we should be enforcing this, imo.
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
Closed: 8 years ago
Resolution: --- → INCOMPLETE
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: