Re: [whatwg] Please disallow javascript: URLs in browser address bars

2010-08-11 Thread Ian Hickson
On Thu, 22 Jul 2010, Luke Hutchison wrote: There has been a spate of facebook viruses in the last few months that have exploited social engineering and the ability to paste arbitrary javascript into the addressbar of all major browsers to propagate themselves. Typically these show up as

Re: [whatwg] Please disallow javascript: URLs in browser address bars

2010-08-11 Thread Charles Iliya Krempeaux
On Thu, Jul 22, 2010 at 1:46 PM, Adam Barth w...@adambarth.com wrote: On Thu, Jul 22, 2010 at 1:41 PM, Aryeh Gregor simetrical+...@gmail.comsimetrical%2b...@gmail.com wrote: On Thu, Jul 22, 2010 at 4:32 PM, Luke Hutchison luke.hu...@mit.edu wrote: There is no legitimate reason that

Re: [whatwg] Please disallow javascript: URLs in browser address bars

2010-07-24 Thread Nikita Popov
On 24.07.2010 02:33, Bjartur Thorlacius wrote: Wrong. Plain wrong. Kids who like to test stuff do things like this. I do agree though that the urlbar isn't the right place, there should be a different prompt for this kind of stuff. Probably disabled at compile time by default and accessible

Re: [whatwg] Please disallow javascript: URLs in browser address bars

2010-07-23 Thread João Eiras
On Thu, 22 Jul 2010 21:32:39 +0100, Luke Hutchison luke.hu...@mit.edu wrote: [snip] Comments, please? This is entirely out of scope of any specification and 100% an user agent UI issue.

Re: [whatwg] Please disallow javascript: URLs in browser address bars

2010-07-23 Thread Ryosuke Niwa
I second that call. While your suggestion seems to prevent some existing social engineering, you must realize that HTML5 isn't going to be recommended until ~2020. By that time, everything we talk about social engineering today will be completely obsolete. Things like this are best left to be

Re: [whatwg] Please disallow javascript: URLs in browser address bars

2010-07-23 Thread Bjartur Thorlacius
99.% of people have never manually entered a javascript: URL into a browser addressbar in their life -- unless duped by a social engineering virus. Wrong. Plain wrong. Kids who like to test stuff do things like this. I do agree though that the urlbar isn't the right place, there

[whatwg] Please disallow javascript: URLs in browser address bars

2010-07-22 Thread Luke Hutchison
There has been a spate of facebook viruses in the last few months that have exploited social engineering and the ability to paste arbitrary javascript into the addressbar of all major browsers to propagate themselves. Typically these show up as Facebook fan pages with an eye-catching title that

Re: [whatwg] Please disallow javascript: URLs in browser address bars

2010-07-22 Thread Adam Barth
Personally, I write JavaScript URLs in the address bar all the time, but I might not be a typical user. :) This sounds like a great opportunity for a CSP directive. Adam On Thu, Jul 22, 2010 at 1:32 PM, Luke Hutchison luke.hu...@mit.edu wrote: There has been a spate of facebook viruses in

Re: [whatwg] Please disallow javascript: URLs in browser address bars

2010-07-22 Thread Adam Barth
On Thu, Jul 22, 2010 at 1:41 PM, Aryeh Gregor simetrical+...@gmail.com wrote: On Thu, Jul 22, 2010 at 4:32 PM, Luke Hutchison luke.hu...@mit.edu wrote: There is no legitimate reason that non-developers would need to paste javascript: URLs into the addressbar, and the ability to do so should be

Re: [whatwg] Please disallow javascript: URLs in browser address bars

2010-07-22 Thread Luke Hutchison
A bookmark is more like a link than a manually-entered URL, and as mentioned in the original email, the browser will have to of course keep working with javascript: links. 99.% of people have never manually entered a javascript: URL into a browser addressbar in their life -- unless duped by a

Re: [whatwg] Please disallow javascript: URLs in browser address bars

2010-07-22 Thread Tab Atkins Jr.
On Thu, Jul 22, 2010 at 1:41 PM, Aryeh Gregor simetrical+...@gmail.com wrote: On Thu, Jul 22, 2010 at 4:32 PM, Luke Hutchison luke.hu...@mit.edu wrote: There is no legitimate reason that non-developers would need to paste javascript: URLs into the addressbar, and the ability to do so should be

Re: [whatwg] Please disallow javascript: URLs in browser address bars

2010-07-22 Thread Boris Zbarsky
On 7/22/10 4:46 PM, Luke Hutchison wrote: A bookmark is more like a link than a manually-entered URL What would prevent the viruses in question from saying drag this link to your bookmarks bar and then click the bookmark? Note that this is something that sites actually do... not necessarily

Re: [whatwg] Please disallow javascript: URLs in browser address bars

2010-07-22 Thread Maciej Stachowiak
On Jul 22, 2010, at 1:32 PM, Luke Hutchison wrote: There has been a spate of facebook viruses in the last few months that have exploited social engineering and the ability to paste arbitrary javascript into the addressbar of all major browsers to propagate themselves. Typically these show

Re: [whatwg] Please disallow javascript: URLs in browser address bars

2010-07-22 Thread Mike Shaver
On Thu, Jul 22, 2010 at 4:48 PM, Tab Atkins Jr. jackalm...@gmail.com wrote: These days, though, all major browsers have javascript consoles which you can bring up and paste that into. That doesn't typically apply to content tabs or windows, though. I have a couple of questions: What is the

Re: [whatwg] Please disallow javascript: URLs in browser address bars

2010-07-22 Thread Boris Zbarsky
On 7/22/10 5:03 PM, Mike Shaver wrote: What should the URL bar say when the user clicks a javascript: link which produces content?a href=javascript:5;five!/a This part the spec actually covers, I think; the url bar is supposed to say the url of the page that link was on, iirc. Which is what

Re: [whatwg] Please disallow javascript: URLs in browser address bars

2010-07-22 Thread Boris Zbarsky
On 7/22/10 5:32 PM, Luke Hutchison wrote: Well, is it the simplest one, though? If closing it will do nothing for security but just inconvenience people, what's the point? I'd really rather not have us doing security theater just to look like we're doing something. It's not unreasonable to

Re: [whatwg] Please disallow javascript: URLs in browser address bars

2010-07-22 Thread Jonas Sicking
On Thu, Jul 22, 2010 at 1:46 PM, Adam Barth w...@adambarth.com wrote: On Thu, Jul 22, 2010 at 1:41 PM, Aryeh Gregor simetrical+...@gmail.com wrote: On Thu, Jul 22, 2010 at 4:32 PM, Luke Hutchison luke.hu...@mit.edu wrote: There is no legitimate reason that non-developers would need to paste

Re: [whatwg] Please disallow javascript: URLs in browser address bars

2010-07-22 Thread Mike Shaver
On Thu, Jul 22, 2010 at 5:32 PM, Luke Hutchison luke.hu...@mit.edu wrote: On Thu, Jul 22, 2010 at 5:03 PM, Mike Shaver mike.sha...@gmail.com wrote: What is the proposed change to which specification, exactly?  URL-bar behaviour, especially input permission, seem out of scope for the specs that

Re: [whatwg] Please disallow javascript: URLs in browser address bars

2010-07-22 Thread Luke Hutchison
On Thu, Jul 22, 2010 at 5:48 PM, Mike Shaver mike.sha...@gmail.com wrote: No, I mean like the prompts for geolocation, popup windows, first-use helper applications, first-use URL protocols, and similar.  But my question is more about what you propose to disallow, and why you choose disable as

Re: [whatwg] Please disallow javascript: URLs in browser address bars

2010-07-22 Thread Paul Ellis
On Thu, Jul 22, 2010 at 2:48 PM, Mike Shaver mike.sha...@gmail.com wrote: On Thu, Jul 22, 2010 at 5:32 PM, Luke Hutchison luke.hu...@mit.edu wrote: On Thu, Jul 22, 2010 at 5:03 PM, Mike Shaver mike.sha...@gmail.com wrote: Would a UA that asked for the user's permission the first time a

Re: [whatwg] Please disallow javascript: URLs in browser address bars

2010-07-22 Thread Luke Hutchison
On Thu, Jul 22, 2010 at 7:17 PM, Paul Ellis p...@ellisfoundation.com wrote: This seems to be the wrong venue for this discussion but it is worth noting that IE8 doesn't allow drag-and-drop of javascript: links to the favorites bar. If you do right-click-Add to Favorites for a javascript: link

Re: [whatwg] Please disallow javascript: URLs in browser address bars

2010-07-22 Thread Daniel Cater
Note that for Mozilla this is basically bug 305692: https://bugzilla.mozilla.org/show_bug.cgi?id=305692 I mentioned Facebook in comment 9. Daniel Cater. On 22 July 2010 21:32, Luke Hutchison luke.hu...@mit.edu wrote: There has been a spate of facebook viruses in the last few months that have

Re: [whatwg] Please disallow javascript: URLs in browser address bars

2010-07-22 Thread Michael A. Puls II
If javascript URI entry support/execution in my address field went away, I'd be very pissed! A JS console in the dev tools is not the same usability-wise. I might get over it *after a while* if it was off by default with an option to re-enable it though. For example, I could imagine having

Re: [whatwg] Please disallow javascript: URLs in browser address bars

2010-07-22 Thread Brett Zamir
On 7/23/2010 6:35 AM, Luke Hutchison wrote: On Thu, Jul 22, 2010 at 5:39 PM, Boris Zbarskybzbar...@mit.edu wrote: I can see the security benefits of disallowing all cross-origin application of javascript: (if you don't know where it came from, don't apply it). Yes, that is actually a

Re: [whatwg] Please disallow javascript: URLs in browser address bars

2010-07-22 Thread Luke Hutchison
I should add that to complicate things, not all the social engineering directions make it clear to the user that they will be pasting stuff into the addressbar: e.g. I got one called World's Hardest Riddle that selected the text in the box for you somehow and then told the user that to see the