One thing which has been very important when it comes to creating special end user experiences have been the ability to show something fullscreen, effectively hiding all the other content etc.
Firefox Articles
-
-
Introducing Aurora 11 with tons of new features and improvements
We have now released Aurora 11, soon to become Firefox 11, and wanted to cover all the the things we have improved in this version!
-
New Developer Tools in Firefox 11 Aurora
More Goodies for the Holidays!
Last month, I wrote a post for Hacks introducing the new tools in Firefox 10 Aurora. Those features have now moved to beta. Thanks for all of the great feedback so far!
In a dramatic turn at the end of that blog post, I foreshadowed that we had “more to come”. And, indeed here I am to tell you about the new developer tools features now in Firefox Aurora. What you see here is slated for final release in March, 2012.
Free-form Style Sheet Editing
In the last Firefox release, we introduced the Style Inspector. You can use the Style Inspector’s rules view to make changes to the CSS properties for an element. With this release, we’re adding a free-form Style Editor to the mix.
Select the Style Editor from the Web Developer menu, and you’re presented with a view that lists the style sheets for the page in one pane, and gives you an editor to make changes in another:
The Style Editor provides a friendly environment for working on your style sheets. Any changes you make are reflected instantly on the page. Once you’ve made your changes, you can save the file on your computer.
There are also a number of handy additional features. Click on the “eye” icon next to the style sheet and you can toggle the entire sheet on and off. If you’re working on a new page, you can create new style sheets on the fly or load a style sheet from disk.
If you want to take a look at how other sites on the web are styled, you can use the Style Editor to view the style sheets on any site. On public sites, the style sheets are often minified to reduce download time. The Style Editor will automatically prettify style sheets that it detects have been minified, but it will leave your source style sheets alone.
“Tilt” 3D View of Web Page Structure
Open up the Page Inspector (Web Developer->Inspect from the menu, or Inspect Element in the context menu on the page), and you’ll see a new 3D button on the toolbar if your computer is compatible with WebGL. Click that, and you’re presented with a whole new perspective on web page structure.
This 3D view (which was previously available in an add-on called Tilt), stacks elements as they are nested in the DOM and lets you see elements that are hidden or off the page. You can zoom in and out, rotate and pan the view to see the page from any angle that is helpful to you.
The 3D view is fully integrated with the rest of the Page Inspector functionality. You can open the HTML view or the Style Inspector for more information about the element you’ve clicked on in the 3D view. You can also change selected elements using the breadcrumbs on the toolbar.
The controls for the 3D view are easy:
Function Mouse Keyboard Zoom Scroll up/down +and-Rotate Click and drag a/dandw/sPan right-click and drag Arrow keys Dozens of Other Improvements
Since the last release, we’ve landed dozens of refinements to our other developer features. A growing number of contributors are making the tools they use better by getting involved.
The Web Console, Scratchpad and Style Inspector have all had improvements since the last Firefox. Take a look, and let us know what you think!
Get it Now!
You don’t need to wait until March to get these great new features. Download Firefox Aurora today and see these and other improvements that are coming to final release soon.
Updates+Screencast
Since I wrote this article, we’ve landed some fixes and improvements to these tools. I added the way to pan the Page Inspector 3D view (right-click and drag). Also, there is now a screencast for these features. Be sure to opt-in to YouTube’s HTML5 video option.
-
New features for HTML5 video playback in Firefox
As explained in this blog post by Jared Wein of the Firefox team there are quite a few new features in Firefox when it comes to playing HTML5 video. As an Aurora user, I am most excited about the option to go full-screen, the ability to overlay video statistics and to save a snapshot of the current frame as a JPG. You can see me talking about and showing them in this short video:
Firefox has a few features up its sleeve when it comes to HTML5 video playback you might not be aware of:
- Firefox‘s seeking is now accurate to
millisecondsmicroseconds, there is visual feedback when the video has stalled and clicking the whole video pauses and plays it - Firefox Beta has specialised controls when you watch video on small devices and watching HTML5 video shows a pleasing background rather than a brutal grey
- Firefox Aurora has fullscreen, statistics overlay, saving of snapshots and controls appearing when the video ended
- Firefox Nightly has a full-screen button, fading video controls after 2 seconds of non-interaction, no loading throbber on audio, error reporting when a video could not be loaded on the video, loop attribute support, and resizing of videos larger than the browser window when you watch them directly
Planned features for Firefox are an overlay play button like YouTube when the video is not set to autoplay and turning off screensavers during fullscreen playback.
Check out Jared’s post for more information.
- Firefox‘s seeking is now accurate to
-
Mozilla Hacks Weekly, December 8th 2011
Thursday is here, and just like every week when that day comes, we at Mozilla want to share some good reading with you.
-
Developer Tools in Firefox Aurora 10
The Preview You Can Use Now
Mozilla is building a collection of stable, fast and usable developer tools that ship with the browser. I’d like to introduce a collection of improvements that are scheduled to be released in final form on January 31, 2012.
But, you can get them now by downloading the Firefox Aurora channel. I personally find Aurora builds to be quite stable and usable for general browsing and web development. Give it a try and see what you think. You can install Aurora alongside your stable release of Firefox.
The New Page Inspector
Using built-in tools, you can now peek into your page’s structure and layout. Choose “Inspect” from the “Web Developer” menu, or press the handy ctrl-shift-I (cmd-shift-I on Mac) keyboard shortcut, and you can visually select the page element that is of interest to you.
You’ll also find a new “Inspect Element” context menu item that lets you immediately select the element that’s under your cursor.
When you’re inspecting a page, you’ll see something like this:
We overlay the page to highlight the element that you’re working with (1). The highlighter also shows you the tag, ID and classes associated with the page element you’re viewing.
At the bottom of the window, there’s a toolbar that gives you options for changing or working with the selected element. Starting from the left, there’s a close button to close the page inspector and return to normal browsing. The “Inspect” button toggles visual selection mode so that you can highlight another element. ProTip: pressing the ESC key also switches modes.
Breadcrumbs
We call the next part of the toolbar the “breadcrumbs”. They show you where you are in the HTML structure and let you quickly switch to another element. The selected element is the dark “pushed” button. To the left of it are its parents, and to the right one of its children. Just click one of the buttons to move between the page elements. If you click and hold a button, you get a menu that lets you select from the siblings of the element listed on the button. The breadcrumbs make navigation quick without taking up much of your screen.
HTML
Sometimes looking at the HTML representation of a page is the quickest way to figure out what’s going on. Click the HTML button and that’s the view you’ll get. There’s a resizer on the right side of the toolbar to set just how much space you want for the HTML view. Also, clicking on a node in the HTML view will select that element for further inspection. ProTip: ctrl-H toggles the HTML view.
Styles
Last, but definitely not least, is the Style view. This lets you dive in, explore and experiment with your CSS. It offers two separate views of the CSS attached to the selected element: a CSS rules-based view (left, above), and a properties-based view (right, above).
The rules view is organized much like your stylesheets, showing all of the rules that apply to the element and all of those properties that those rules give you. Properties that are overridden are crossed out. You can toggle any single property easily using the checkbox to the left of it. A single click on a property name or value lets you edit it and see the results immediately on the page. If you click anywhere on the line with the brace at the bottom of the rule, you can add a new property there.
On a page with lots of styles, you sometimes just want to find out what the font-size is set to. That’s where the property view comes in. You can expand the “font-size” property and see how its set and which stylesheet set it. By default, only styles that are set in your stylesheets will be displayed (so you don’t get browser defaults listed). If you have a lot of properties listed, as you might if you use a reset stylesheet, you can quickly find what you’re looking for by typing in the search box.
ctrl-S toggles the Style view.
Web Console + Page Inspector: Great Together
The Web Console is available whenever you want it, even when you’re using the page inspector. If you have an element selected, that element is available to JavaScript in the console using the variable
$0.Scratchpad
The Scratchpad feature, which we released in August, gives you a very friendly way to experiment with JavaScript. Rather than being confined to a small input box, you get a whole editor window to work with. Now, Scratchpad uses the Orion code editor to provide syntax highlighting, better indentation and other features you’d expect from a modern code editor.
Scratchpad is now wired into Firefox’s “session restore” feature. This means that you can try out a bunch of code in Scratchpad and if you restart Firefox, restoring your session will also bring back your Scratchpad. Of course, you can always save and reload your Scratchpad files, just as you could before.
If you are only doing web development, we’ve streamlined the user interface. If you’re doing Firefox add-on development, you owe it to yourself to set devtools.chrome.enabled to true in about:config. That setting allows Scratchpad to run code in a privileged browser context and not just against the current web page.
The
consoleObjectWe’ve been building out the
consoleobject that you call from your JavaScript code or use at the Web Console’s JavaScript input. It is now in line with the de facto standard, implementing the methods that are standard across browsers. Firebug has a couple of others that we don’t implement yet (console.table, console.profile, console.dirxml), but the commonly used methods are there.More Is On The Way
All of these features are available now in Firefox Aurora builds. We’re working on getting more new features together for you for the next Aurora.
Check out our Get Involved page to see how you can provide feedback and help make these tools even better.
Footnotes:
1. Other web developer tools make changes to your page (for example, adding a class) to make the selected element visible. Firefox’s highlighter does its work without making any changes to your content .↩
-
Announcing Firefox Aurora 10
We’re happy to announce the availability of Aurora 10.
(Download and Test Aurora 10)In additional to the normal improvements that you’ve come to expect like performance, security and bug fixes, Aurora 10 focuses in HTML5 enhancements.
New additions
- HTML5 Visibility API
- createProcessingInstruction
- WebGL antialiasing
- 3D Transforms
- Visibility API
- Document.mozFullScreenEnabled\
Developer Tools
Aurora 10 also implements incremental enhancements like IndexedDB setVersion API changes. Ongoing detailed attention to evolving specifications help to keep Firefox at the front of the Web revolution. (Read more about IndexedDB on MDN.)
DOM
- We now fire a “load” event on stylesheet linking when the sheet load finishes or “error” if the load fails.
- We turn the POSTDATA prompt into an information page (when navigating in session history).
- We only forward event attributes on body/frameset to the window if we also forward the corresponding on* property.
- We no longer allow more than one call to window.open() when we allow popups.
- We fixed a bug where a success callback never fired when a position update is triggered after getCurrentPosition().
- We removed replaceWholeText().
- We fixed an error with createPattern(zero-size canvas).
- We now handle putImageData(nonfinite) correctly.
- We now throw INVALID_STATE_ERR when dispatching uninitialized events.
- We’ve made Document.documentURI readonly.
- We fixed document.importNode to comply with optional argument omitted.
Web workers
- We now allow data URLs.
- We implemented event.stopImmediatePropagation in workers.
- We made XHR2 response/responseType work in Web Workers.
Graphics
- We implement the WebGL OES_standard_derivatives extension.
- We implement minimal-capabilities WebGL mode.
JavaScript
- The function caller property no longer skips over eval frames.
- We fixed E4X syntax so that it is not accepted in ES5 strict mode.
- weakmap.set no longer returns itself instead of undefined.
- We implemented the battery API.
Offline: IndexedDB enhancements
- IndexedDB setVersion API changes
- Added support for IDBObjectStore/IDBIndex.count
- Various methods accept both keys and KeyRanges.
- Added support for IDBCursor.advance.
- Implemented deleteDatabase.
- objectStoreNames are no longer updated on closed databases when another connection adds or removes object stores
- IDBObjectStore.delete and IDBCursor.delete now return undefined.
- No longer throws an error if there are unknown properties in the options objects to createObjectStore/createIndex.
- We now the errorCode to “ABORT_ERR” for all pending requests when IDBTransaction.abort() is called.
- Fixed the sort order for indexes.
Layout
- We have updated the current rule for handling malformed media queries.
- We now support the HTML5 <bdi> element and CSS property unicode-bidi: isolate.
- The CSS3 implementation now supports unicode-bidi: plaintext.
Media
- Implemented Document.mozFullScreenEnabled.
- Enabled the DOM full-screen API on desktop Firefox by default.
-
CSS 3D transformations in Firefox Nightly
When the first 3D transformations in CSS got support on Webkit browsers people got incredibly excited about them. Now that they have matured we also support 3D CSS in Firefox. To see it for yourself, check out one of the latest nightly builds.
You can see them in action in this demo of a rotating HTML5 logo and the screencast below:
This means now that we need your support in trying out CSS 3D examples in Firefox and add other extensions than
-webkit-to your CSS 3D products and demos. To show that this is possible, we took the well-known webkit-only “poster circle” demo and made it work with Firefox nightly by adding the -moz- (and of course the other prefixes and one set of instructions without browser prefixes). Here is a slight excerpt:-webkit-transform-style: preserve-3d; -moz-transform-style: preserve-3d; -o-transform-style: preserve-3d; -ms-transform-style: preserve-3d; transform-style: preserve-3d;
You can see this in action in the screencast below alongside Chrome and you try the demo out yourself. The slight jerkiness is actually my MacBook Air impersonating a starting jet every time I use ScreenFlow and not the browser.
To celebrate the release and to show how CSS 3D can be applied as subtle effect, have a game of pairs using your favourite browsers (and a cat) :
Oleg Romashin also spent some time to convert a few CSS 3D demos to work with Mozilla and you can check the 3D city for more “wow”.
If you are new to CSS 3D transformations here’s a good beginner course and a tool to create them.
The rotating HTML5 logo demo also shows how you can check if the currently used browser supports 3D transforms. Instead of repeating the animation frames for all the prefixes we test in JavaScript and create the CSS on the fly:
function checksupport() { var props = ['perspectiveProperty', 'WebkitPerspective', 'MozPerspective', 'OPerspective', 'msPerspective'], i = 0, support = false; while (props[i]) { if (props[i] in form.style) { support = true; pfx = props[i].replace('Perspective',''); pfx = pfx.toLowerCase(); break; } i++; } return support; } if (checksupport()) { var s = ''; styles = document.createElement('style'); s += '#stage{-'+ pfx +'-perspective: 300px;}'+ '#logo{-'+ pfx +'-transform-style: preserve-3d;position:relative;}'+ '#logo.spin{-'+ pfx +'-animation: spin 3s infinite linear;}'+ '@-'+ pfx +'-keyframes spin {'+ '0% {'+ '-'+ pfx +'-transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);'+ '}'+ '100% {'+ '-'+ pfx +'-transform: rotateX(0deg) rotateY(360deg)'+ ' rotateZ(360deg);'+ '}}'; styles.innerHTML = s; document.querySelector('head').appendChild(styles); }
For more information on creating your own pages that use 3D transformations, take a look at the draft specification
As always, If you find any bugs, please report them at bugzilla.mozilla.org!
So please reward our hard work bringing the third dimension to Firefox’s CSS engine by supporting and testing. Cheers!
-
What’s new for Web Developers in Firefox 7
Today we’re releasing Firefox Update 7. This update contains work that’s been stabilizing over the last 3 months and there are quite a few interesting things to talk about.
To be clear, this is not the canonical list of changes, just highlights. As always, we’ve created a page to track the changes that web developers will care about. For the full list please see the Firefox 7 for developers page.
Firefox now supports text-overflow: ellipsis
Firefox now supports the
ellipsismode for thetext-overflowproperty. This property is supported in other browsers which means developers should be able to start using it in the wild. Here’s an example of how text-overflow ellipsis works:HTML:
<html> <body> <div class="inner">I am some very long text!</div> </body> </html>CSS:
div.inner { width: 120px; text-overflow: ellipsis; white-space:nowrap; overflow:hidden; color: red; border: 1px dashed #333; margin: 20px; padding: 10px; }
Result:

As you can see, it’s pretty easy to make text that cuts off in a sane way with this new property. Our developer page for the property also contains sample syntax for other browsers.
WebSockets: Updated protocol and available on mobile
First, WebSockets is now enabled by default for Firefox for Mobile. For mobile networks that are high-latency and have high connection setup-up costs, WebSockets offers an opportunity to create a much better experience than is available with polling HTTP.
Second, we’ve updated to the most recent draft version of the WebSockets protocol from the IETF. Somewhat confusingly, this is version 8 of the protocol, but is draft version 10. This will be mostly of interest to people who are building applications on top of WebSockets and tool vendors, but is worth calling out since it affects backwards compatibility.
Since the WebSockets work is ongoing, the namespace for WebSockets remains moz-prefixed to indicate that it’s not yet finalized.
An even faster Canvas element
The
canvaselement in Firefox 7 is even faster. We’ve revised our code for Canvas based on what we learned in previous Firefox releases and how people are using Canvas in the wild. Based on that you are likely to see much snappier performance on many demos when drawing to canvas elements. For an example, see our Runfield demo.Web sites can no longer resize your main browser window
It’s no longer possible for a web site to change the default size of a window in a browser, according to the following rules:
- You can’t resize a window or tab that wasn’t created by window.open.
- You can’t resize a window or tab when it’s in a window with more than one tab.
Support for the new Navigation Web Timing Spec
Firefox Update 7 now supports the Navigation Timing spec. This allows a web page author to monitor parts of web page performance in the page itself. For people who are interested in page load and navigation performance, they can send that back to the server which can give them a better view into real-world performance.
There are a couple of other specs in this space – the User Timing and Resource Timing – but those are still under discussion in working groups and as such we have not yet implemented them.
-
Firefox 7: Telemetry
Based on a blog post originally posted here by Taras Glek, Firefox Developer.
Firefox 7 marks a turning point in how we measure Firefox performance. Traditionally we measured Firefox performance on individual developer machines and our build & release infrastructure. However it turns out synthetic benchmarks do not correspond to real-world Firefox usage: it is difficult to model a “typical” computer in a lab environment. Surprisingly slow consumer hardware, changes in usage patterns, preinstalled bloatware all affect Firefox performance in surprising ways.
Firefox 7 telemetry will prompt users to opt-in to reporting performance data to Mozilla. This data will supplement our existing benchmarking infrastructure to help us optimize future Firefox releases. Telemetry performance metrics are very lightweight and will not negatively impact Firefox performance.
In addition to transmitting data via SSL, Mozilla privacy team worked tirelessly to ensure that no personally-identifiable information is sent via telemetry. Whereas many other software projects stamp this kind of data with a unique per-user id, we opted for a per-session id which is reset every time the browser restarts. Telemetry is also disabled while in private-browsing mode.
The following telemetry data will be gathered in Firefox 7:
Memory usage
CPU core count
Cycle collection times
Startup speedUse the about:telemetry extension to check on your browser performance. The following screenshot shows how to enable telemetry:

I’m very excited that Firefox finally joins the ranks of cars, airplanes and other software projects in making performance decisions based on real evidence gathered in the wild.
- This is Page 2 of 7
- Previous
- Go to page 1
- You're on page 2
- Go to page 3
- Go to page 4
- Go to page 5
- Go to page 6
- …
- Go to page 7
- Next










