Closed Bug 47887 Opened 26 years ago Closed 26 years ago

add GetPrompt() to nsIDOMWindow

Categories

(Core :: DOM: Core & HTML, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED DUPLICATE of bug 47889

People

(Reporter: dougt, Assigned: dougt)

Details

add GetPrompt() to nsIDOMWindow. To allow easier use of the nsIPrompt - a per window based interface which brings up modal dialogs, we should make it a bit easier to obtain. Currently, you need to do this: nsCOMPtr<nsIScriptGlobalObject> globalScript = do_QueryInterface(DOMWindow); nsCOMPtr<nsIDocShell> docShell; globalScript->GetDocShell(getter_AddRefs(docShell)); nsCOMPtr<nsIPrompt> prompter = do_GetInterface(docShell); prompter->XXX Adding a method off nsIDOMWindow, the above would reduce to: nsCOMPtr<nsIPrompt> prompter; DOMWinow->GetPrompt(getter_AddRefs(prompter)); prompter->XXX
bugzilla made three copies of this bug. *** This bug has been marked as a duplicate of 47889 ***
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → DUPLICATE
Verified Duplicate.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.