One new feature that Mozilla will include as part of Firefox 3.6 is a support for web pages to access machine orientation information if it’s available. As you can see from the demo above you can use it to figure out if the machine is moving and what direction it’s facing. Using the API is very simple. All you have to do is add a simple event listener:
window.addEventListener("MozOrientation", function(e) { /* 3 values: e.x, e.y, e.z */ }, true);
Originally they built as something that they would include for the upcoming mobile browser release, they’ve made it available on desktop systems as well. Many modern Macbooks and Thinkpads contain devices and drivers that expose this information. They’ve added support for Linux, Macs and some Thinkpads where drivers and devices are available.
I´m not sure, why they did it and which applications can use that function in a senseful way. We will see…
via Mozilla Hacks



