W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2010

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

From: Markus Ernst <derernst@gmx.ch>
Date: Thu, 25 Nov 2010 17:53:57 +0100
Message-ID: <4CEE94A5.102@gmx.ch>
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).
Received on Thursday, 25 November 2010 08:53:57 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:28 UTC