Closed Bug 47889 Opened 25 years ago Closed 25 years ago

add GetPrompt() to nsIDOMWindow

Categories

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

x86
Windows NT
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: dougt, Assigned: dougt)

References

Details

(Keywords: embed, Whiteboard: nsbeta3+)

Attachments

(2 files)

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
Attached patch Adds GetPrompt()Splinter Review
Keywords: embed, nsbeta3
Whiteboard: nsbeta3+
Attached patch implementionSplinter Review
*** Bug 47887 has been marked as a duplicate of this bug. ***
*** Bug 47888 has been marked as a duplicate of this bug. ***
Fixed.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Verified with 2000-09-13-09.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: