mozilla

Revision 235026 of Firefox 15 for developers

  • Revision slug: Firefox_15_for_developers
  • Revision title: Firefox 15 for developers
  • Revision id: 235026
  • Created:
  • Creator: pdmdn
  • Is current revision? No
  • Comment 1 words added, 1 words removed

Revision Content

{{ draft() }}

{{ ReleaseChannelInfo("15") }}

Want to help document Firefox 15? See the list of bugs that need to be written about and pitch in!

Changes for Web developers

HTML

  • The size attribute of the {{ HTMLElement("font") }} element is now handled according the HTML5 spec. It means that all integer greater than 10 or smaller than -10 are now considered equivalent to 10, respectively -10.
  • Support for font-weight and point-size attributes on the <font> element has been removed; these were non-standard and Gecko was the only engine supporting them.
  • The Opus codec is now supported for audio in Ogg containers for the HTML {{ HTMLElement("audio") }} and {{ HTMLElement("video") }} elements.
  • The {{ HTMLElement("source") }} element now supports the media attribute.
  • The {{ HTMLElement("audio") }} and {{ HTMLElement("video") }} elements now support the played attribute, which provides a {{ domxref("TimeRanges") }} object listing the time ranges of the media that have been played back so far.

CSS

  • The {{ cssxref("font-feature-settings") }} property has been updated to the latest syntax: font-feature-settings: "lnum" 1;
  • The CSS {{ cssxref("text-transform") }} property has been extended to correctly handle Unicode ligature characters (like ).
  • The CSS {{ cssxref("word-break") }} property has been implemented.

DOM

  • The DOM Events Level 3 methods KeyboardEvent.getModifierState() and MouseEvent.getModifierState(), which let you query the state of modifier keys, like Ctrl or Shift, have been implemented (bugs 630811 and 731878).
  • On mouse events, support for querying the state of the mouse buttons using the MouseEvent.buttons attribute, has been implemented.
  • On keyboard events, support for querying the key location (standard, left or right of modifier key, in the Numpad) using the KeyboardEvent.location attribute, has been implemented ({{ bug("166240") }}).
  • KeyboardEvent.keycode result has been computed from better rules which were almost same on Windows/Linux/Mac. And now they are available on some keyboard layouts which are not ASCII capable layouts on Linux and Mac, such as Arabic, Cyrillic, Thai and so on. See the document for virtual key codes.
  • The range.detach() method has been transformed in a no-op and will probably be removed in the future.
  • The method HTMLVideoElement.mozHasAudio() has been implemented. It indicates if there is an audio track associated to a given video element. (bug 480376)
  • The Performance API has a new method, now(), supporting high resolution timers of type DOMHighResTimeStamp. (bug 539095).
  • The Window.java and Window.packages attributes has been removed. These were never documented, and hopefully you're not using them!
  • The WebSMS API has been updated and now supports a read attribute indicating whether an SMS text message is read or unread.

JavaScript

  • Support for the DataView interface from the Typed Arrays specification has been added. This provides low-level access to the data contained in an ArrayBuffer.

WebGL

  • Support for the WEBGL_compressed_texture_s3tc extension has been added. Compressed textures reduce the amount of memory needed to store a texture on the GPU, allowing for higher resolution textures or more of the same resolution textures.

MathML

  • Mathematical operators can now use downloadable fonts specified with {{ cssxref("@font-face") }}. This makes the MathML-fonts add-on work with stretchy operators too.
  • The selection attribute of the {{ MathMLElement("maction") }} is now only taken into account with the toggle actiontype.
  • Deprecated namedspace binding has been removed ({{ bug("673759") }}).
  • Supported syntax for Length and {{ MathMLElement("mpadded") }} values have been made closer to the one specified in MathML3 spec.

Changes for add-on and Mozilla developers

Interface changes

{{ interface("nsIDOMWindowUtils") }}
aModifiers of sendMouseEvent(), sendTouchEvent(), sendMouseEventToWindow(), sendMouseScrollEvent() and sendKeyEvent() supports all modifier keys which are supported by KeyboardEvent.getModifierState(). Use MODIFIER_* values. And now the 5th parameter of sendKeyEvent() is changed from boolean to unsigned long. For backward compatibility, if caller passes true or false to it, the behavior isn't changed. This change allows callers to specify the key's location.
{{ interface("nsIBrowserHistory") }}
The hidePage() method was never implemented, and has been removed entirely in this release. The addPageWithDetails() method has also been removed as part of the ongoing work to make all Places APIs asynchronous; use {{ ifmethod("mozIAsyncHistory", "updatePlaces") }} instead. Also, the count attribute was removed; it had not returned an actual count in some time (instead, it was simply indicating whether or not any entries existed). You can use {{ ifattribute("nsINavHistoryService", "hasHistoryEntries") }} instead.

New interfaces

{{ interface("nsISpeculativeConnect") }}
Provides a way to hint to the networking layer that you are likely to ask to open a connection to a given URI sometime in the near future. This lets the network layer begin the sometimes high-latency process of opening a new network connection ahead of time.

Removed interfaces

The following interfaces have been removed.

  • {{ interface("nsIGlobalHistory") }}

See also

{{ languages( { "ja": "ja/Firefox_15_for_developers"} ) }}

Revision Source

<p>{{ draft() }}</p>
<p>{{ ReleaseChannelInfo("15") }}</p>
<p>Want to help document Firefox 15? See the <a class="external" href="http://beta.elchi3.de/doctracker/#list=fx&amp;version=15.0" title="http://beta.elchi3.de/doctracker/#list=fx&amp;version=15.0">list of bugs that need to be written about</a> and pitch in!</p>
<h2>Changes for Web developers</h2>
<h3>HTML</h3>
<ul> <li>The <code>size</code> attribute of the {{ HTMLElement("font") }} element is now handled according the HTML5 spec. It means that all integer greater than 10 or smaller than -10 are now considered equivalent to 10, respectively -10.</li> <li>Support for <code>font-weight</code> and <code>point-size</code> attributes on the <code>&lt;font&gt;</code> element has been removed; these were non-standard and Gecko was the only engine supporting them.</li> <li>The <a class="external" href="http://www.opus-codec.org/" title="http://www.opus-codec.org/">Opus codec</a> is now supported for audio in Ogg containers for the HTML {{ HTMLElement("audio") }} and {{ HTMLElement("video") }} elements.</li> <li>The {{ HTMLElement("source") }} element now supports the <code>media</code> attribute.</li> <li>The {{ HTMLElement("audio") }} and {{ HTMLElement("video") }} elements now support the played attribute, which provides a {{ domxref("TimeRanges") }} object listing the time ranges of the media that have been played back so far.</li>
</ul>
<h3>CSS</h3>
<ul> <li>The {{ cssxref("font-feature-settings") }} property has been updated to the latest syntax: <code>font-feature-settings: "lnum" 1;</code></li> <li>The CSS {{ cssxref("text-transform") }} property has been extended to correctly handle Unicode ligature characters (like <code>fi</code>).</li> <li>The CSS {{ cssxref("word-break") }} property has been implemented.</li>
</ul><h3>DOM</h3>
<ul> <li>The DOM Events Level 3 methods <a href="/en/DOM/KeyboardEvent#getModifierState%28%29" title="https://developer.mozilla.org/en/DOM/KeyboardEvent#getModifierState%28%29"><code>KeyboardEvent.getModifierState()</code></a> and <a href="/en/DOM/MouseEvent#getModifierState%28%29" title="https://developer.mozilla.org/en/DOM/MouseEvent#getModifierState%28%29"><code>MouseEvent.getModifierState()</code></a>, which let you query the state of modifier keys, like <code>Ctrl</code> or <code>Shift</code>, have been implemented (bugs <a class="link-https" href="https://bugzilla.mozilla.org/show_bug.cgi?id=630811" title="https://bugzilla.mozilla.org/show_bug.cgi?id=630811">630811</a> and <a class="link-https" href="https://bugzilla.mozilla.org/show_bug.cgi?id=731878" title="https://bugzilla.mozilla.org/show_bug.cgi?id=731878">731878</a>).</li> <li>On mouse events, support for querying the state of the mouse buttons using the <a href="/en/DOM/MouseEvent" title="en/DOM/MouseEvent"><code>MouseEvent.buttons</code></a> attribute, has been implemented.</li> <li>On keyboard events, support for querying the key location (standard, left or right of modifier key, in the Numpad) using the <a href="/en/DOM/KeyboardEvent#Attributes_location" title="https://developer.mozilla.org/en/DOM/KeyboardEvent#Attributes_location">KeyboardEvent.location</a> attribute, has been implemented ({{ bug("166240") }}).</li> <li>KeyboardEvent.keycode result has been computed from better rules which were almost same on Windows/Linux/Mac. And now they are available on some keyboard layouts which are not ASCII capable layouts on Linux and Mac, such as Arabic, Cyrillic, Thai and so on. See <a href="/en/DOM/KeyboardEvent#Virtual_key_codes" title="en/DOM/KeyboardEvent#Virtual_key_codes">the document for virtual key codes</a>.</li> <li>The <a href="/en/DOM/range.detach" title="https://developer.mozilla.org/en/DOM/range.detach"><code>range.detach()</code></a> method has been transformed in a no-op and will probably be removed in the future.</li> <li>The method <code>HTMLVideoElement.mozHasAudio()</code> has been implemented. It indicates if there is an audio track associated to a given video element. (<a class="link-https" href="https://bugzilla.mozilla.org/show_bug.cgi?id=480376" title="https://bugzilla.mozilla.org/show_bug.cgi?id=480376">bug </a><a class="link-https" href="https://bugzilla.mozilla.org/show_bug.cgi?id=480376" title="https://bugzilla.mozilla.org/show_bug.cgi?id=480376">480376</a>)</li> <li>The <code>Performance</code> API has a new method, <code>now()</code>, supporting high resolution timers of type<code> DOMHighResTimeStamp</code>. (<a class="link-https" href="https://bugzilla.mozilla.org/show_bug.cgi?id=539095" title="https://bugzilla.mozilla.org/show_bug.cgi?id=539095">bug 539095</a>).</li> <li>The <code>Window.java</code> and <code>Window.packages</code> attributes has been removed. These were never documented, and hopefully you're not using them!</li> <li>The <a href="/en/API/WebSMS" title="en/API/WebSMS">WebSMS API</a> has been updated and now supports a <code>read </code>attribute indicating whether an SMS text message is read or unread.</li>
</ul>
<h3>JavaScript</h3>
<ul> <li>Support for the <a href="/en/JavaScript_typed_arrays/DataView" title="/en/JavaScript_typed_arrays/DataView"><code>DataView</code></a> interface from the Typed Arrays specification has been added. This provides low-level access to the data contained in an <a href="/en/JavaScript_typed_arrays/ArrayBuffer" title="en/JavaScript_typed_arrays/ArrayBuffer"><code>ArrayBuffer</code></a>.</li>
</ul>
<h3>WebGL</h3>
<ul> <li>Support for the <a href="/en/WebGL/Using_Extensions#WEBGL_compressed_texture_s3tc" title="en/WebGL/Using_Extensions#WEBGL_compressed_texture_s3tc"><code>WEBGL_compressed_texture_s3tc</code></a> extension has been added. Compressed textures reduce the amount of memory needed to store a texture on the GPU, allowing for higher resolution textures or more of the same resolution textures.</li>
</ul>
<h3>MathML</h3>
<ul> <li>Mathematical operators can now use downloadable fonts specified with {{ cssxref("@font-face") }}. This makes the <a class="link-https" href="https://addons.mozilla.org/en-US/firefox/addon/mathml-fonts/" title="https://addons.mozilla.org/en-US/firefox/addon/mathml-fonts/">MathML-fonts add-on</a> work with stretchy operators too.</li> <li>The <code>selection</code> attribute of the {{ MathMLElement("maction") }} is now only taken into account with the <code>toggle</code> actiontype.</li> <li><a class="external" href="http://www.w3.org/TR/MathML3/chapter3.html#id.3.3.4.2.1" title="http://www.w3.org/TR/MathML3/chapter3.html#id.3.3.4.2.1"><span id="summary_alias_container"><span id="short_desc_nonedit_display">Deprecated namedspace binding</span></span></a> has been removed ({{ bug("673759") }}).</li> <li>Supported syntax for <a href="/en/MathML/Attributes/Values" title="Values">Length</a> and {{ MathMLElement("mpadded") }} values have been made closer to the one specified in MathML3 spec.</li>
</ul>
<h2>Changes for add-on and Mozilla developers</h2>
<h3>Interface changes</h3>
<dl> <dt>{{ interface("nsIDOMWindowUtils") }}</dt> <dd><code>aModifiers</code> of <code>sendMouseEvent()</code>, <code>sendTouchEvent()</code>, <code>sendMouseEventToWindow()</code>, <code>sendMouseScrollEvent()</code> and <code>sendKeyEvent()</code> supports all modifier keys which are supported by <a href="/en/DOM/KeyboardEvent#getModifierState%28%29" title="https://developer.mozilla.org/en/DOM/KeyboardEvent#getModifierState%28%29"><code>KeyboardEvent.getModifierState()</code></a>. Use <code>MODIFIER_*</code> values. And now the 5th parameter of <code>sendKeyEvent()</code> is changed from <code>boolean</code> to <code>unsigned long</code>. For backward compatibility, if caller passes <code>true</code> or <code>false</code> to it, the behavior isn't changed. This change allows callers to specify the key's location.</dd> <dt>{{ interface("nsIBrowserHistory") }}</dt> <dd>The <code>hidePage()</code> method was never implemented, and has been removed entirely in this release. The <code>addPageWithDetails()</code> method has also been removed as part of the ongoing work to make all <a href="/en/Places" title="en/Places">Places</a> APIs asynchronous; use {{ ifmethod("mozIAsyncHistory", "updatePlaces") }} instead. Also, the <code>count</code> attribute was removed; it had not returned an actual count in some time (instead, it was simply indicating whether or not any entries existed). You can use {{ ifattribute("nsINavHistoryService", "hasHistoryEntries") }} instead.</dd>
</dl>
<h4>New interfaces</h4>
<dl> <dt>{{ interface("nsISpeculativeConnect") }}</dt> <dd>Provides a way to hint to the networking layer that you are likely to ask to open a connection to a given URI sometime in the near future. This lets the network layer begin the sometimes high-latency process of opening a new network connection ahead of time.</dd>
</dl>
<h4>Removed interfaces</h4>
<p>The following interfaces have been removed.</p>
<ul> <li>{{ interface("nsIGlobalHistory") }}</li>
</ul>
<h2>See also</h2>
<ul> <li><a href="/en/Firefox_14_for_developers" title="en/Firefox_14_for_developers">Firefox 14 for developers</a></li> <li><a href="/en/Firefox_13_for_developers" title="en/Firefox_13_for_developers">Firefox 13 for developers</a></li> <li><a href="/en/Firefox_12_for_developers" title="en/Firefox_12_for_developers">Firefox 12 for developers</a></li> <li><a href="/en/Firefox_11_for_developers" title="en/Firefox 11 for developers">Firefox 11 for developers</a></li> <li><a href="/en/Firefox_10_for_developers" title="en/Firefox 10 for developers">Firefox 10 for developers</a></li> <li><a href="/en/Firefox_9_for_developers" title="en/Firefox 9 for developers">Firefox 9 for developers</a></li> <li><a href="/en/Firefox_8_for_developers" title="en/Firefox 8 for developers">Firefox 8 for developers</a></li> <li><a href="/en/Firefox_7_for_developers" title="en/Firefox 7 for developers">Firefox 7 for developers</a></li> <li><a href="/en/Firefox_6_for_developers" title="en/Firefox 6 for developers">Firefox 6 for developers</a></li> <li><a href="/en/Firefox_5_for_developers" title="en/Firefox 5 for developers">Firefox 5 for developers </a></li> <li><a href="/en/Firefox_4_for_developers" title="en/Firefox 4 for developers">Firefox 4 for developers </a></li> <li><a href="/en/Firefox_3.6_for_developers" title="en/Firefox 3.6 for developers">Firefox 3.6 for developers </a></li> <li><a href="/En/Firefox_3.5_for_developers" title="en/Firefox 3.5 for developers">Firefox 3.5 for developers</a></li> <li><a href="/en/Firefox_3_for_developers" title="en/Firefox 3 for developers">Firefox 3 for developers</a></li> <li><a href="/en/Firefox_2_for_developers" title="en/Firefox 2 for developers">Firefox 2 for developers</a></li> <li><a href="/en/Firefox_1.5_for_developers" title="en/Firefox 1.5 for developers">Firefox 1.5 for developers</a></li>
</ul>
<p>{{ languages( { "ja": "ja/Firefox_15_for_developers"} ) }}</p>
Revert to this revision