[Webkit-unassigned] [Bug 17171] [Gtk] script-confirm and script-prompt signals are not binding-friendly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Feb 23 09:22:22 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=17171





--- Comment #14 from Carlos Garcia Campos <cgarcia at igalia.com>  2012-02-23 09:22:21 PST ---
(In reply to comment #13)
> (In reply to comment #12)
> 
> > I still think they are different things and should be handled differently, alert, confirm and prompt are modal dialogs too, so having alert, confirm, prompt and modal is indeed confusing. Also, as I said, alert, confirm and prompt are dialogs to show a message, or get user inoput, they are not supposed to show a web view, while window.showModalDialog() is actually a shortcut for window.open with the dialog feature. 
> 
> I don't necessarily disagree that the showModalDialog support should be a separate API, but do note that showModalDialog has a return value and is used for getting user input, much like the prompt API:
> 
> https://developer.mozilla.org/en/DOM/window.showModalDialog

The fact that you can emulate a prompt dialog with showModalDialog doesn't mean it's the same thing. With showModalDialog you load a new web view in a new toplevel, so you can do whatever you want. Prompt dialogs don't load a web view.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list