News for hackers. Stuff that matters.
Re:Firefox 6 for web developers by yan on Tuesday August 16, 2011 @12:05PM (#2891690)
"For security reasons, data: and javascript: URIs no longer inherit the security context of the current page when the user enters them in the location bar; instead, a new, empty, security context is created. This means that script loaded by entering javascript: URIs in the location bar no longer has access to DOM methods and the like, for example. These URIs continue to work as before when used by script, however."

Good bye bookmarklets?

Re:Firefox 6 for web developers by simonw on Tuesday August 16, 2011 @12:30PM (#2891791)
Sounds smart. It's extremely easy to get an unsophisticated user (heck, any user who isn't a web developer) to paste a random string of junk in to their URL bar - and doing so is a very nasty XSS vector that works no matter what precautions a site's developers have taken.

I'm sure I've heard of this attack being used successfully on Facebook, spread through messages that say "paste this in to your URL bar to get X".

Re:Firefox 6 for web developers by re on Tuesday August 16, 2011 @12:46PM (#2891860)
So those messages will say "press [whatever key combo activates the console] and paste this text there for a funny video" instead?
Re:Firefox 6 for web developers by pbhjpbhj on Wednesday August 17, 2011 @06:09AM (#2894759)
Or possibly "drag this link to the toolbar and click when on any page on Facebook to see which of your friends is viewing that page" or whatever.
Re:Firefox 6 for web developers by int3 on Tuesday August 16, 2011 @12:09PM (#2891704)
I believe bookmarklets still work -- the restriction only applies if the javascript: URIs were typed in by the user.
Re:Firefox 6 for web developers by JoshTriplett on Tuesday August 16, 2011 @12:27PM (#2891779)
Right. Apparently this "security" feature came about because people followed instructions on random facebook pages saying "paste this in your address bar to activate $RANDOM_FAKE_FACEBOOK_FEATURE".

You can still run Javascript via the Scratchpad (Web Developer -> Scratchpad, or hit Shift-F4).

Re:Firefox 6 for web developers by beaumartinez on Tuesday August 16, 2011 @12:17PM (#2891740)
Interesting. Copying the TinEye bookmarklet,

    javascript:void(window.open('http://tineye.com/search?pluginver=bookmark_1.0&url='%20+%20encodeURIComponent(document.URL)));
into the address bar did nothing; an "Error: uncaught exception: ReferenceError: window is not defined" was logged in the error console.

Clicking it as normal worked as expected, though.

Re:Firefox 6 for web developers by ck2 on Tuesday August 16, 2011 @02:08PM (#2892242)
Hopefully there is an about:config to undo that for power-users.
Re:Firefox 6 for web developers by josscrowcroft on Tuesday August 16, 2011 @10:03PM (#2893720)
Yeah, I caught this hanging out at the bottom of the list too... Immediately set to thinking how I'm gonna have to go rewrite the dozen or so bookmarklets I've written to support FF6
Re:Firefox 6 for web developers by mbrubeck on Wednesday August 17, 2011 @12:10AM (#2894054)
Bookmarklets are not affected when used as bookmarks. Only URIs typed directly into the location bar are affected.
Re:Firefox 6 for web developers by josscrowcroft on Wednesday August 17, 2011 @10:44PM (#2897761)
Oh, sweet.
Re:Firefox 6 for web developers by gchucky on Tuesday August 16, 2011 @12:24PM (#2891770)
> WebSockets are back!

I have a feeling that's going to make a lot of people very happy. Good to see that they were able to solve the security issues.

Re:Firefox 6 for web developers by highriseo on Tuesday August 16, 2011 @01:23PM (#2892046)
Mozilla is supporting a new version of websockets (https://bugzilla.mozilla.org/show_bug.cgi?id=640003) that as of a week ago did not work with a lot of popular libraries yet (socket.io). Its awesome to see better security features in place and I hope that library distributors are fast to follow up with changes in their library.
Re:Firefox 6 for web developers by JoshTriplett on Tuesday August 16, 2011 @12:28PM (#2891784)
Server-sent events seem awesome as well. Open a connection to the server, let it stream you events, and each one generates a Javascript event.
Re:Firefox 6 for web developers by PedroCandeias on Tuesday August 16, 2011 @12:52PM (#2891890)
It's hard to believe it's 2011 and there's still no standard way of sending data from a server to a browser other than ajax and comet trickery.

This sounds like a step in the right direction.

Re:Firefox 6 for web developers by bobfunk on Tuesday August 16, 2011 @04:33PM (#2892769)
Also seems like server-sent events should be a lot easier to pass through standard load balancers and proxies than web sockets. Very cool...
Re:Firefox 6 for web developers by robin_reala on Tuesday August 16, 2011 @12:44PM (#2891853)
For what it’s worth, you have to update your client code to instantiate a MozWebSocket and update your server to support the latest protocol. I know, because I’ve done this today :) We’re using the em-websocket gem though which has been updated recently so it really wasn’t that difficult.
Re:Firefox 6 for web developers by hendler on Tuesday August 16, 2011 @05:38PM (#2892998)
Happy about websockets.

But mostly excited for FF 7 with the memory management improvements. http://blog.mozilla.com/nnethercote/2011/08/09/firefox-7-is-...

Firebug needs a manual update. see http://getfirebug.com/downloads

[edited to add firebug link]

Learned that

Re:Firefox 6 for web developers by mixmastamyk on Wednesday August 17, 2011 @02:56AM (#2894410)
Meh, I've been using FF8 nightly for a few weeks and the memory improvements are modest at best. I just had to restart my browser because it got up to 650mb even after closing tabs.
Re:Firefox 6 for web developers by tbassetto on Wednesday August 17, 2011 @03:23AM (#2894457)
It may be caused by poorly written extensions and/or extensions "forced" to be compatible with nightlies.
Re:Firefox 6 for web developers by ck2 on Tuesday August 16, 2011 @02:07PM (#2892237)
Thanks for adopting the existing "standard" for touches, now I can remove some of the extra code I had for F4 mobile.
Re:Firefox 6 for web developers by mbrubeck on Tuesday August 16, 2011 @08:14PM (#2893445)
Awesome! Please let us know if you find any problems with the touch events in Fx6 mobile. (You can contact me directly at [email protected] or file a bug at bugzilla.mozilla.org under the "Fennec" product.)
Re:Firefox 6 for web developers by dbingham on Tuesday August 16, 2011 @02:16PM (#2892269)
I think my favorite part is that they've finally added an auto-update feature. If you open about Firefox, it checks to determine whether or not you're up to date. Especially if they're going to be bringing out frequent releases, I don't want to be constantly reinstalling Firefox.
Re:Firefox 6 for web developers by brown9-2 on Tuesday August 16, 2011 @04:58PM (#2892869)
That's been there for a while - I'd prefer if they would silently update the browser in the background and active it on the next restart, just as Chrome does.

I hate being told that Firefox 5.0 or 6.0 is out, only to find out that there are barely any major changes in this seemingly major version. If you want to release more often and make it a more seemless process, the app should stop announcing each new version like a major release.

Re:Firefox 6 for web developers by bzbarsky on Tuesday August 16, 2011 @07:35PM (#2893349)
The app doesn't announce each new version unless you have add-ons that are incompatible with the new version (in which case you get a dialog telling you so), last I checked.

It does tell you that it's applying an update when you do the update startup, so far. That's likely to go away as well.

Re:Firefox 6 for web developers by kevingadd on Tuesday August 16, 2011 @02:36PM (#2892352)
That's been there since 4.0 for me.
Re:Firefox 6 for web developers by bzbarsky on Tuesday August 16, 2011 @07:42PM (#2893371)
It'll be interesting to see whether sites start using the CSS auto-hyphenation features....
Re:Firefox 6 for web developers by jfoucher on Tuesday August 16, 2011 @07:58PM (#2893409)
That's good, but what I really want to know is "Will Firebug still work after I upgrade?"
Re:Firefox 6 for web developers by mbrubeck on Tuesday August 16, 2011 @09:00PM (#2893558)
Re:Firefox 6 for web developers by jdelsman on Wednesday August 17, 2011 @12:57AM (#2894163)
Server sent events and WebSockets are the +1 for me!
Re:Firefox 6 for web developers by mbrzuzy on Tuesday August 16, 2011 @08:56PM (#2893547)
I'm getting a download rate of anywhere from 4kb/s to 10kb/s for the download. :'(