[Seaside] Albatross: clicking on Javascript alert boxesprogrammatically

Matthias Berth matthias.berth at googlemail.com
Tue Aug 26 17:05:48 UTC 2008


Thanks a lot Boris and Lukas! I was suspecting that clicking OK
programmatically  is a big security hole. So redefining alert() is the
way to go here :-) .


Cheers

Matthias


On Tue, Aug 26, 2008 at 4:50 PM, Lukas Renggli <renggli at gmail.com> wrote:
>> No, and it is by design as it would be a huge security hole for browsers if
>> you could script OS mouse movement to confirm installation of malicious
>> components.
>
> What you can do is to redefine the about() function though, by doing
> something like that:
>
>    function about (msg) { console.log(msg); }
>
> Now there is no about-box popping up anymore, but you get a log entry
> in the console (in Safari and FireFox).
>
> Cheers,
> Lukas
>
>
>>
>>  Cheers!
>>
>>  -Boris (via BlackBerry)
>>
>>
>>  ----- Original Message -----
>>  From: seaside-bounces at lists.squeakfoundation.org
>> <seaside-bounces at lists.squeakfoundation.org>
>>  To: Seaside - general discussion
>> <seaside at lists.squeakfoundation.org>
>>  Sent: Tue Aug 26 03:59:46 2008
>>  Subject: [Seaside] Albatross: clicking on Javascript alert
>> boxesprogrammatically
>>
>>  Hello,
>>
>>
>>  I wonder if it is possible at all to use Albatross (or Javascript for
>>  that matter) to click the OK button on an alert box. I guess not, but
>>  I'm no javascript expert.
>>
>>  Thanks in advance
>>
>>  Matthias
>>  _______________________________________________
>>  seaside mailing list
>>  seaside at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>
>> _______________________________________________
>>  seaside mailing list
>>  seaside at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>
>>
>
>
> --
> Lukas Renggli
> http://www.lukas-renggli.ch
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>


More information about the seaside mailing list