Closed Bug 44149 Opened 25 years ago Closed 25 years ago

improperly parented modal dialog in nsWalletService

Categories

(Core :: Networking: Cookies, defect, P3)

defect

Tracking

()

CLOSED FIXED

People

(Reporter: danm.moz, Assigned: danm.moz)

References

Details

nsNetSupportDialog should only be used as a backup plan if no other nsIPrompt interface is available. It has been used in dozens of places because of its seductive convenience. But it's flawed, creating modal windows that don't behave correctly; the cause of various blanket bugs like 25684 and 39439 (both currently considered nsbeta2+). This problem can only be fixed by trying much harder to find a proper window to be the modal dialog's parent. nsNetSupportDialog should be relegated to providing backup when herculean efforts to locate the actual parent window fail for some reason. As an example, the cookie service has been taught to use a proper parent window for its dialog by laboriously storing a reference to that window's nsIPrompt in nsHTTPChannel, from which it can be extracted and passed around while processing notification events, punting to nsNetSupportDialog only when no other choice is available. That same sort of thing needs to be done in many more places. One such place is nsWalletlibService::OnEndDocumentLoad. I plan to take this one rather than dump it on someone else since it looks rather easily fixable. Happy recipients of this bug would spread the happiness most widely if they would start using a good nsIPrompt window. The "modal windows don't behave nicely" bugs are being made dependent on this bug and its siblings, and will eventually be closed as "as fixed as they're going to get" once these have all been considered.
Blocks: 25684
Got parent from channel. The affected dialog is the one from which a single user is selected from several when filling out a form using wallet.
see above comment. must have forgotten to mark it 'fixed' at the time.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
development issues - closing
Status: RESOLVED → CLOSED
You need to log in before you can comment on or make changes to this bug.