mozilla

Revision 328417 of Firefox 18 for developers

  • Revision slug: Firefox_18_for_developers
  • Revision title: Firefox 18 for developers
  • Revision id: 328417
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment

Revision Content

{{ draft() }}

{{ ReleaseChannelInfo("18", "18", "January 2013", "Aurora") }}

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

Changes for Web developers

HTML

  • The reversed attribute of the {{HTMLElement("ol")}} element is now supported. ({{bug("601912")}})

CSS

  • The {{cssxref("min-width")}} and {{cssxref("min-height")}} now uses the auto keyword as initial value (This has an effect only on flex items as it resolves to 0, the previous initial value, for other items). ({{bug("763689")}})
  • The cascade has been updated: now author !important rules override CSS animations. ({{bug("783714")}})
  • The {{cssxref("background")}} shorthand property now recognizes CSS3 {{cssxref("background-size")}} property specified inside. ({{bug("570326")}})
  • Initial support for the CSS Flexbox Module has been landed. It is disabled by default but can be enabled by setting layout.css.flexbox.enabled to true. ({{bug('666041')}})

 DOM

  • navigator.mozPay has been landed. ({{bug("767818")}})
  • window.devicePixelRatio has been landed. ({{bug("564815")}})
  • The MacOS X backend for window.navigator.battery has been implemented. ({{bug("696045")}})
  • {{domxref("BlobBuilder", "MozBlobBuilder")}} is removed. Developers need to use {{domxref("Blob")}} constuctor for creating a Blob object. ({{bug("744907")}})

JavaScript

  • Harmony's (ECMAScript 6) Direct Proxies have been landed ({{bug("703537")}})

WebGL

SVG

MathML

XUL

Network

  • Quality factors ("q-values") are now clamped to 2 digits in HTTP Accept-Language header ({{bug("672448")}})

Developer tools

  • The Error Console has been hidden by default; it has been superceded by the Web Console. If for some reason you need the Error Console back, you can get it by setting the preference devtools.errorconsole.enabled to true.

Changes for add-on and Mozilla developers

Interface changes

{{ interface("nsIStreamListener") }}
The 4th parameter (aOffset) of onDataAvailable() method changes to unsigned long long. ({{bug("784912")}})
{{ interface("nsIUploadChannel") }}
setUploadStream() supports over 2GB content-length ({{bug("790617")}})
{{ interface("nsIEditor") }}
addEditorObserver() has been removed, use setEditorObserver() instead, removeEditorObserver() no longer takes a {{ interface("nsIEditorObserver") }} parameter ({{bug("785091")}})

New interfaces

Removed interfaces

The following interfaces have been removed.

  • {{ interface("nsIEditorObserver") }}

See also

{{Firefox_for_developers('17')}}

Revision Source

<p>{{ draft() }}</p>
<p>{{ ReleaseChannelInfo("18", "18", "January 2013", "Aurora") }}</p>
<p>Want to help document Firefox 18? See the <a class="external" href="http://beta.elchi3.de/doctracker/#list=fx&amp;version=18.0">list of bugs that need to be written about</a> and pitch in!</p>
<h2 id="Changes_for_Web_developers">Changes for Web developers</h2>
<h3 id="HTML">HTML</h3>
<ul>
  <li>The <code>reversed</code> attribute of the {{HTMLElement("ol")}} element is now supported. ({{bug("601912")}})</li>
</ul>
<h3 id="CSS">CSS</h3>
<ul>
  <li>The {{cssxref("min-width")}} and {{cssxref("min-height")}} now uses the <code>auto</code> keyword as <em>initial value </em>(This has an effect only on flex items as it resolves to <code>0</code>, the previous initial value, for other items). ({{bug("763689")}})</li>
  <li>The cascade has been updated: now author <code>!important</code> rules override <a href="/en-US/docs/CSS/Using_CSS_animations" title="/en-US/docs/CSS/Using_CSS_animations">CSS animations</a>. ({{bug("783714")}})</li>
  <li>The {{cssxref("background")}} shorthand property now recognizes CSS3 {{cssxref("background-size")}} property specified inside. ({{bug("570326")}})</li>
  <li>Initial support for the CSS Flexbox Module has been landed. It is disabled by default but can be enabled by setting <code>layout.css.flexbox.enabled</code> to true. ({{bug('666041')}})</li>
</ul>
<h3 id=".C2.A0DOM">&nbsp;DOM</h3>
<ul>
  <li><code>navigator.mozPay</code> has been landed. ({{bug("767818")}})</li>
  <li><code>window.devicePixelRatio</code> has been landed. ({{bug("564815")}})</li>
  <li>The MacOS X backend for <code>window.navigator.battery</code> has been implemented. ({{bug("696045")}})</li>
  <li>{{domxref("BlobBuilder", "MozBlobBuilder")}} is removed. Developers need to use {{domxref("Blob")}} constuctor for creating a <code>Blob</code> object. ({{bug("744907")}})</li>
</ul>
<h3 id="JavaScript">JavaScript</h3>
<ul>
  <li>Harmony's (ECMAScript 6) Direct Proxies have been landed ({{bug("703537")}})</li>
</ul>
<h3 id="WebGL">WebGL</h3>
<h3 id="SVG">SVG</h3>
<h3 id="MathML">MathML</h3>
<h3 id="XUL">XUL</h3>
<h3 id="Network">Network</h3>
<ul>
  <li>Quality factors ("q-values") are now clamped to 2 digits in HTTP Accept-Language header ({{bug("672448")}})</li>
</ul>
<h3 id="Developer_tools">Developer tools</h3>
<ul>
  <li>The <a href="/en-US/docs/Error_Console" title="/en-US/docs/Error_Console">Error Console</a> has been hidden by default; it has been superceded by the <a href="/en-US/docs/Tools/Web_Console" title="/en-US/docs/Tools/Web_Console">Web Console</a>. If for some reason you need the Error Console back, you can get it by setting the preference <code>devtools.errorconsole.enabled</code> to <code>true</code>.</li>
</ul>
<h2 id="Changes_for_add-on_and_Mozilla_developers">Changes for add-on and Mozilla developers</h2>
<h3 id="Interface_changes">Interface changes</h3>
<dl>
  <dt>
    {{ interface("nsIStreamListener") }}</dt>
  <dd>
    The 4th parameter (aOffset) of <code>onDataAvailable()</code> method changes to unsigned long long. ({{bug("784912")}})</dd>
  <dt>
    {{ interface("nsIUploadChannel") }}</dt>
  <dd>
    <code>setUploadStream()</code> supports over 2GB content-length ({{bug("790617")}})</dd>
  <dt>
    {{ interface("nsIEditor") }}</dt>
  <dd>
    <code>addEditorObserver()</code> has been removed, use <code>setEditorObserver()</code> instead, <code>removeEditorObserver()</code> no longer takes a {{ interface("nsIEditorObserver") }} parameter ({{bug("785091")}})</dd>
</dl>
<h4 id="New_interfaces">New interfaces</h4>
<h4 id="Removed_interfaces">Removed interfaces</h4>
<p>The following interfaces have been removed.</p>
<ul>
  <li>{{ interface("nsIEditorObserver") }}</li>
</ul>
<h2 id="See_also">See also</h2>
<p>{{Firefox_for_developers('17')}}</p>
Revert to this revision