Closed
Bug 47889
Opened 25 years ago
Closed 25 years ago
add GetPrompt() to nsIDOMWindow
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
VERIFIED
FIXED
People
(Reporter: dougt, Assigned: dougt)
References
Details
(Keywords: embed, Whiteboard: nsbeta3+)
Attachments
(2 files)
|
1.07 KB,
patch
|
Details | Diff | Splinter Review | |
|
6.27 KB,
patch
|
Details | Diff | Splinter Review |
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
| Assignee | ||
Comment 1•25 years ago
|
||
Updated•25 years ago
|
| Assignee | ||
Comment 2•25 years ago
|
||
| Assignee | ||
Comment 5•25 years ago
|
||
Fixed.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•