Closed Bug 44608 Opened 25 years ago Closed 25 years ago

Need to add nsIWebBrowserChrome::ExitModalEventLoop()

Categories

(Core Graveyard :: Embedding: APIs, defect, P3)

x86
Windows NT
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: vidur, Assigned: vidur)

Details

(Keywords: arch, embed, Whiteboard: [nsbeta2+])

Currently, we bring up modal windows by calling nsIDocShellTreeOwner::ShowModal()/nsIWebBrowserChrome::ShowAsModal(). The expectation is that the implementation of these methods will spin a nested event loop while the modal window is up. We only break out of the event loop when the window itself is destroyed. Based on discussions in the API review meeting, we decided to add nsIDocShellTreeOwner::ExitModalLoop() and nsIWebBrowserChrome::ExitModalEventLoop() methods to allow the browser component to programmatically exit the event loop, providing a status code to be passed back to the caller of ShowModal() in the case of an error.
I have a fix that's been reviewed by rpotts. It's safe since it doesn't change existing codepaths. Nominating for nsbeta2 since it's a safe fix and helps us drive to API completion.
Keywords: arch, embed, nsbeta2
Putting on [nsbeta2+] radar for beta2 fix.
Whiteboard: [nsbeta2+]
Fix checked in on 7/12/2000.
Vidur stated a fix was checked in. Marking this fixed.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
verified fixed (er, checked in)
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.