Black lives matter
Portrait Dr. Axel Rauschmayer
Dr. Axel Rauschmayer
Homepage | Twitter
Cover of book “JavaScript for impatient programmers”
Book, exercises, quizzes
(free to read online)
Cover of book “Deep JavaScript”
Book (50% free online)
Cover of book “Tackling TypeScript”
Book (first part free online)
Logo of newsletter “ES.next news”
Newsletter (free)

Firefox 6: new features for developers

[2011-06-03] browser, dev, firefox, webdev
(Ad, please don’t block)

A post on the Mozilla Hacks blog details what’s new for developers in Aurora 6 (pre-beta Firefox 6). The following is a summary of its contents:

  • Progress bars via the <progress> HTML element, with a look that is native to the host operating system.
  • window.matchMedia(): allows you to programmatically execute CSS Media Queries. For example, you can check the orientation of a device and act differently in landscape and in portrait orientation.
  • Improved handling of binary data: Read binary data via an XMLHttpRequest or from a file; concatenate binary data and text and produce binary data.
  • WebSockets are supported (again).
  • Server-Sent Events allow servers to push messages to clients. It is one-directional and thus much more limited than bidirectional mechanisms such as WebSockets. But it makes provisions for mobile devices where a proxy in a network can handle messages when a device is asleep or offline and then convert a server-sent event to a true push message.