Specifically, the alert would be sent only if the user was uploading a
file and tried to close the browser. I think that was what you were
saying ".keyCode == 18 || .keyCode == 115" would be used for, but
correct me if I'm wrong.

On Mon, 2009-08-17 at 21:31 -0500, Adam Shannon wrote:
> 
> 
> On Mon, Aug 17, 2009 at 9:13 PM, Ben <[email protected]> wrote:
>         Couldn't the browser detect whether the user is uploading a
>         file and
>         provide a dialog warning the user that closing the browser
>         would stop
>         the upload? That would mitigate the need for javascript in
>         that use
>         case, at least. The same as downloads, I would think.
>         
>         I realize that doesn't eliminate all other good uses, though.
>         (however,
>         I wouldn't know of any off the top of my head)
>         
>         
> 
> 
> So, if a user would upload an image via an image hosting site there
> would be an alert?  Also, predefined JS would cause the browser to
> download a file, and asking users if they want to allow a site to load
> images could cause 20+ alerts per page.  It's not a bad idea.
> 
> -- 
> - Adam Shannon ( http://ashannon.us )


--~--~---------~--~----~------------~-------~--~----~
Chromium Discussion mailing list: [email protected] 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-discuss
-~----------~----~----~----~------~----~------~--~---

Reply via email to