Re: Albatross: clicking on Javascript alert boxesprogrammatically

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Albatross: clicking on Javascript alert boxesprogrammatically

Boris Popov, DeepCove Labs (SNN)
Re: [Seaside] Albatross: clicking on Javascript alert boxesprogrammatically

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.

Cheers!

-Boris (via BlackBerry)

----- Original Message -----
From: [hidden email] <[hidden email]>
To: Seaside - general discussion <[hidden email]>
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
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Albatross: clicking on Javascript alert boxesprogrammatically

Lukas Renggli
> 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: [hidden email]
> <[hidden email]>
>  To: Seaside - general discussion
> <[hidden email]>
>  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
>  [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
> _______________________________________________
>  seaside mailing list
>  [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>


--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Albatross: clicking on Javascript alert boxesprogrammatically

Matthias Berth-2
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 <[hidden email]> 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: [hidden email]
>> <[hidden email]>
>>  To: Seaside - general discussion
>> <[hidden email]>
>>  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
>>  [hidden email]
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>
>> _______________________________________________
>>  seaside mailing list
>>  [hidden email]
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>
>>
>
>
> --
> Lukas Renggli
> http://www.lukas-renggli.ch
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside