[whatwg] Can we deprecate alert(), confirm(), prompt() ?

Markus Ernst derernst at gmx.ch
Thu Nov 25 08:53:57 PST 2010


Am 25.11.2010 17:12 schrieb Nikita Popov:
> On 25.11.2010 15:55, Biju wrote:
>> The request I put is NOT about whether you can make it PRETTY looking
>> or not.

Sorry, that was how I understood point 1 your initial message.

>> The question is about why we are allowing website have something which
>> is MODAL
>> (ie, both window modal and tab modal
>> https://bugzilla.mozilla.org/show_bug.cgi?id=59314)
>> In my opinion a no website should have that much control over user
>> interaction.
> Well, you just said it: Bug 59314!
> That alert()s, prompt()s and confirm()s are window-modal is only an
> implementation issue: Some years ago browsers implemented these prompts
> the most convenient way: By opening a native modal dialog. But right now
> broswer vendors realize that this isn't really the best solution -
> because of DOS attacks and simply because it doesn't make any sense.
> And as you already mentioned: Firefox landed tab-modal dialogs a few
> days ago. Opera already had them.

Opera even provided a "Stop executing scripts" checkbox in the alert() 
dialog for years already, which made it my preferred browser for 
debugging my scripts (handy if you have forgotten an i++ in a loop, and 
placed an alert() inside).



More information about the whatwg mailing list