mozilla

Revision 27506 of Firefox 3.6 for developers

  • Revision slug: Firefox_3.6_for_developers
  • Revision title: Firefox 3.6 for developers
  • Revision id: 27506
  • Created:
  • Creator: crayzeepete
  • Is current revision? No
  • Comment 20 words added

Revision Content

Firefox 3.6 – code-named Namoroka – will be based upon Gecko 1.9.2. Please collect information about changes that will impact developers here, and our happy, helpful documentation gnomes will make sure that articles are written to explain your hard coding work.

Note: For more information on how to make sure changes get properly documented, please see this blog post.

Firefox 3.6 alpha 1 has been released. We're working on making sure everything interesting is covered here; however, in the meantime, you can see a list of bugs fixed in this version here.

For web site and application developers

CSS

  • The background-size property from the CSS 3 Backgrounds and Borders draft is supported under the name {{ cssxref("-moz-background-size") }}. {{ bug("189519") }}
  • Mozilla's proposed support for gradients, implemented by the new {{ cssxref("-moz-linear-gradient") }} and {{ cssxref("-moz-radial-gradient") }} properties, is supported for {{ Cssxref("background-image") }}. (Note changes in syntax between beta 1 and beta 2). {{ bug("513395") }}
  • Multiple background images are now supported by the {{ cssxref("background") }} property and the properties for which it's shorthand.
  • The {{ cssxref("pointer-events") }} property is now supported; this lets content specify whether or not an element may be the target of mouse pointer events.
  • The {{ cssxref("length#Relative_length_units","rem") }} length unit from CSS3 Values and Units is now supported. {{ bug("472195") }}
  • {{ Cssxref("image-rendering") }} is supported for images, background images, videos and canvases. {{ bug("423756") }}
  • {{ Cssxref("text-align") }}:end is now supported. {{ bug("299837") }}
  • DOM changes to elements using the table {{ Cssxref("display") }} types now work much better.
  • You can determine whether or not content is being rendered on a touch-enabled device using the new {{ Cssxref(":-moz-system-metric(touch-enabled)") }} selector. [ fixme: there are DOM events, too. ] {{ bug("503042") }}
  • Added {{ cssxref(":-moz-locale-dir(ltr)") }} and {{ cssxref(":-moz-locale-dir(rtl)") }} to make it easier to customize layouts based on whether the user interface is being displayed using a left-to-right or a right-to-left locale. {{ bug("478416") }}
  • Added support for the {{ cssxref(":indeterminate") }} pseudo-class, which matches checkbox input elements whose indeterminate attribute is true.
  • {{ cssxref("@font-face") }} now supports the new WOFF web font file format. {{ bug("507970") }}
  • Added new media features for Mozilla-specific system metrics. This lets content more safely check on the availability of features such as touch support.

HTML

HTML 5 video supports poster frames
The poster attribute is now supported for the video element, allowing content to specify a poster frame to be displayed until the video begins to play.
Checkboxes and radio buttons support the indeterminate property
HTML input elements of types checkbox and radio now support the indeterminate property, which allows a third, "indeterminate" state.
Canvas image smoothing can be controlled
The new mozImageSmoothingEnabled property can be used to turn on and off image smoothing when scaling in canvas elements.
Uploading multiple files
The multiple attribute is now supported on HTMLInputElement (<input type=file multiple>).

JavaScript

Gecko 1.9.2 introduces JavaScript 1.8.2, which adds a number of language features from the ECMAScript 5 standard:

  • Date.parse() can now parse ISO 8601 dates like YYYY-MM-DD.
  • The prototype property of function instances is no longer enumerable.

DOM

Web workers can now self-terminate
Workers now support the {{ ifmethod("nsIWorkerScope", "close") }} method, which allows them to terminate themselves.
Drag and drop now supports files
The DataTransfer object provided to drag listeners now includes a list of files that were dragged.
Detecting device orientation
Content can now detect the orientation of the device if it has a supported accelerometer, using the MozOrientation event; see window.onmozorientation for details. Firefox 3.6 supports the accelerometer in Mac laptops.
Detecting document width and height changes
The new MozScrollAreaChanged event is dispatched whenever the document's scrollWidth and/or scrollHeight properties change.
  • The reorder event is now sent to embedded frames and iframes when their document is loaded. See {{ bug("420845") }}.
  • The getBoxObjectFor() method has been removed, as it was non-standard and exposed even more non-standard stuff to the web. See {{ bug("340571") }}. Also affects mootools which uses this call for Gecko detection. See this mootools bug.
  • The new mozInnerScreenX and mozInnerScreenY properties on DOM windows have been added; these return the screen coordinates of the top-left forner of the window's viewport.
  • The new mozScreenPixelsPerCSSPixel property, accessible only to chrome, provides a conversion factor between CSS pixels and screen pixels; this value can vary based on the zoom level of the content.
  • When the page's URI's document fragment identifier (the part after the "#" (hash) character) changes, a new hashchange event is sent to the page. See window.onhashchange for more information. {{ bug("385434") }}
  • The attribute document.readyState is now supported. {{ bug("347174") }}
  • Support for HTML 5's element.classList to allow easier handling of the class attribute. {{ bug("501257") }}
  • localName and namespaceURI in HTML documents now behave like they do in XHTML documents: localName returns in lower case and namespaceURI for HTML elements is "http://www.w3.org/1999/xhtml".
  • Support has been added for addresses in geolocation via the {{ interface("nsIDOMGeoPositionAddress") }} interface and a new field added to {{ interface("nsIDOMGeoPosition") }}.

XPath

The choose() XPath method is now supported
The choose() method is now supported by our implementation of XPath.

For XUL and add-on developers

If you're an extension developer, you should start by reading Updating extensions for Firefox 3.6, which offers a helpful overview of what changes may affect your extension. Plug-in developers should read Updating plug-ins for Firefox 3.6.

New features

Detecting device orientation
Content can now detect the orientation of the device if it has a supported accelerometer, using the MozOrientation event; see window.onmozorientation for details. Firefox 3.6 supports the accelerometer in Mac laptops.
Monitoring HTTP activity
You can now monitor HTTP transactions to observe requests and responses in real time.
Working with the Windows taskbar
It's now possible to customize the appearance of windows in the taskbar in Windows 7 or later.

Places

  • Places queries can now specify whether or not to include redirected pages in results. See {{ bug("428690") }}.
  • Added the new {{ ifmethod("nsIFaviconService", "expireAllFavicons") }} method to the {{ interface("nsIFaviconService") }} interface.

Storage

Locale-aware collation of data is now supported by the Storage API
Gecko 1.9.2 added several new collation methods to provide optimized collation (sorting) of results using locale-aware techniques.
Properties on a statement can now be enumerated
You can now use a for..in enumeration to enumerate all the properties on a statement.
Asynchronously bind multiple sets of parameters and execute a statement.
See {{ bug("490085") }} for details. Documentation coming soon.

Preferences

  • The {{ interface("nsIContentPrefService") }} interface has two new methods: {{ ifmethod("nsIContentPrefService", "getPrefsByName") }} and {{ ifmethod("nsIContentPrefService", "removePrefsByName") }}.

Themes

See Updating themes for Firefox 3.6 for details.

Miscellaneous

  • contents.rdf is no longer supported for registering chrome in extensions. You must now use the chrome.manifest file instead. See {{ bug("492008") }}.
  • Added support for hiding the menu bar automatically. See {{ bug("477256") }}.
  • Added support for the container-live-role attribute to objects. See {{ bug("391829") }}.
  • The tabs-closebutton binding has been removed. See {{ bug("500971") }}.
  • Added support to {{ interface("nsISound") }} for playing sounds based on events that have occurred. See {{ bug("502799") }}.
  • The syntax for the {{ interface("nsITreeView") }} methods {{ ifmethod("nsITreeView", "canDrop") }} and {{ ifmethod("nsITreeView", "drop") }} has changed to support the new drag & drop API introduced in Gecko 1.9. See {{ bug("455590") }}.
  • Added support to snap the mouse cursor to the default button of dialog or wizard on Windows, see {{ bug("76053") }}. This is processed automatically by dialog and wizard element. But if some XUL applications creates a window of window element and it has a default button, they need to call {{ ifmethod("nsIDOMChromeWindow", "notifyDefaultButtonLoaded") }} at onload event of the window.
  • The {{ interface("nsILocalFileMac") }} interface has had two methods removed: setFileTypeAndCreatorFromMIMEType() and setFileTypeAndCreatorFromExtension().
  • The {{ ifandmethod("nsIWebBrowserStream", "appendToStream") }} no longer fails to return if the amount of data available exceeds 64 kilobytes. See {{ bug("495055") }}.
  • The new NetUtils.jsm code module provides an easy-to-use method for asynchronously copying data from an input stream to an output stream.
  • The new openLocationLastURL.jsm code module makes it easy to read and change the value of the "Open Location" dialog box's remembered URL while properly taking private browsing mode into account.
  • On Windows, the {{ interface("nsIScreen") }} interface now reports 24 bit per pixel color depths when the graphics driver claims 32 bits, since 24 more accurately represents the actual number of color pixels in use.
  • The event_reorder event is now sent when the children of frames and iframes change, as well as when the main document's children change. See {{ bug("420845") }}.
  • Menu bars can now be hidden on Windows, using the new {{ XULAttr("autohide") }} attribute on the {{ XULElem("toolbar") }} XUL element.
  • The {{ xulmeth("loadOneTab") }} and {{ xulmeth("addTab") }} methods now accept a new relatedToCurrent parameter and, in addition, allow the parameters to be specified by name, since nearly all of the parameters are optional.
  • The "hidden" property is no longer supported in install manifests; it's no longer possible to prevent the user from seeing add-ons in the add-on manager window.
  • The @mozilla.org/webshell;1 component no longer exists; you need to use @mozilla.org/docshell;1 instead.
  • You can now register with the update-timer category to schedule timer events without having to instantiate the object that the timer will eventually call into; it will instead be instantiated when it's needed. See {{ ifmethod("nsIUpdateTimerManager", "registerTimer") }} for details.

For Firefox/Gecko developers

Certain changes are only really interesting if you work on the internals of Firefox itself.

Interfaces merged

The following interfaces have been combined together:

  • nsIPluginTagInfo2 has been merged into nsIPluginTagInfo.
  • nsIPluginInstanceInternal, nsIPPluginInstancePeer, nsIPluginInstancePeer1, nsIPluginInstancePeer2, and nsIPluginInstancePeer3 have all been merged into nsIPluginInstance.
  • nsIWindowlessPlugInstPeer has been merged into nsIPluginInstance.
  • nsIPluginManager and nsIPluginManager2 have been merged into nsIPluginHost.

Interfaces removed

The following interfaces have been removed entirely because they were unused, unimplemented, or obsolete:

  • nsIFullScreen
  • nsIDOMSVGListener
  • nsIDOMSVGZoomListener
  • nsIInternetConfigService
  • nsIDKey
  • nsIEventHandler
  • nsIJRILiveConnectPIPeer
  • nsIJRILiveConnectPlugin
  • nsIScriptablePlugin
  • nsIClassicPluginFactory
  • nsIFileUtilities

Interfaces moved

The following interfaces have been relocated from their previous IDL files into new ones:

  • nsIDOMNSCSS2Properties is now located in its own IDL file (dom/interfaces/css/nsIDOMCSS2Properties.idl).
  • {{ interface("nsIUpdateTimerManager") }} is now located in its own IDL file.

A large number of interfaces have been moved. See Interfaces moved in Firefox 3.6 for a complete list.

Other interface changes

The following assorted changes have been made:

  • The nsIPlugin interface now inherits from {{ interface("nsISupports") }} instead of {{ interface("nsIFactory") }}.
  • The nsIPluginHost interface now inherits from {{ interface("nsISupports") }} instead of {{ interface("nsIFactory") }}.
  • The nsIFrame interface now inherits from nsQueryFrame instead of {{ interface("nsISupports") }}.
  • The {{ interface("nsIDeviceContext") }} method getPaletteInfo() has been removed, as it was never implemented.
  • The {{ interface("nsIScriptContext") }} method reportPendingException() has been removed, since it was no longer being used.

See also

{{ languages( { "ja": "ja/Firefox_3.6_for_developers"} ) }}

Revision Source

<p>Firefox 3.6 – code-named <a class="link-https" href="https://wiki.mozilla.org/Firefox/Namoroka" title="https://wiki.mozilla.org/Firefox/Namoroka">Namoroka</a> – will be based upon Gecko 1.9.2. Please collect information about changes that will impact developers here, and our happy, helpful documentation gnomes will make sure that articles are written to explain your hard coding work.</p>
<div class="note"><strong>Note</strong><strong>: </strong>For more information on how to make sure changes get properly documented, please <a class="external" href="http://www.bitstampede.com/2009/07/29/the-key-to-getting-developer-docs-updated/" title="http://www.bitstampede.com/2009/07/29/the-key-to-getting-developer-docs-updated/">see this blog post</a>.</div>
<p><a class="external" href="/devnews/index.php/2009/08/07/firefox-3-6-alpha-1-now-available-for-download" title="https://developer.mozilla.org/devnews/index.php/2009/08/07/firefox-3-6-alpha-1-now-available-for-download/">Firefox 3.6 alpha 1</a> has been released. We're working on making sure everything interesting is covered here; however, in the meantime, you can see a <a class="link-https" href="https://bugzilla.mozilla.org/buglist.cgi?query_format=advanced&amp;product=Core&amp;product=Firefox&amp;product=NSPR&amp;product=NSS&amp;product=Toolkit&amp;keywords_type=nowords&amp;keywords=fixed1.9.1,+verified1.9.1&amp;resolution=FIXED&amp;chfieldfrom=2008-12-01&amp;chfieldto=Now&amp;chfield=resolution&amp;chfieldvalue=FIXED" title="https://bugzilla.mozilla.org/buglist.cgi?query_format=advanced&amp;product=Core&amp;product=Firefox&amp;product=NSPR&amp;product=NSS&amp;product=Toolkit&amp;keywords_type=nowords&amp;keywords=fixed1.9.1,+verified1.9.1&amp;resolution=FIXED&amp;chfieldfrom=2008-12-01&amp;chfieldto=Now&amp;chfield=resolution&amp;chfieldvalue=FIXED">list of bugs fixed in this version here</a>.</p>
<h2>For web site and application developers</h2>
<h3>CSS</h3>
<ul> <li>The<code> background-size </code>property from the <a class="external" href="http://dev.w3.org/csswg/css3-background/" title="http://dev.w3.org/csswg/css3-background/#the-background-size-property">CSS 3 Backgrounds and Borders draft</a> is supported under the name {{ cssxref("-moz-background-size") }}. {{ bug("189519") }}</li> <li>Mozilla's proposed support for gradients, implemented by the new {{ cssxref("-moz-linear-gradient") }} and {{ cssxref("-moz-radial-gradient") }} properties, is supported for {{ Cssxref("background-image") }}. (Note changes in syntax between beta 1 and beta 2). {{ bug("513395") }}</li> <li>Multiple background images are now supported by the {{ cssxref("background") }} property and the properties for which it's shorthand.</li> <li>The {{ cssxref("pointer-events") }} property is now supported; this lets content specify whether or not an element may be the target of mouse pointer events.</li> <li>The {{ cssxref("length#Relative_length_units","rem") }} length unit from <a class="external" href="http://www.w3.org/TR/css3-values/#lengths" title="http://www.w3.org/TR/css3-values/#lengths">CSS3 Values and Units</a> is now supported. {{ bug("472195") }}</li> <li>{{ Cssxref("image-rendering") }} is supported for images, background images, videos and canvases. {{ bug("423756") }}</li> <li>{{ Cssxref("text-align") }}:end is now supported. {{ bug("299837") }}</li> <li>DOM changes to elements using the table {{ Cssxref("display") }} types now work much better.</li> <li>You can determine whether or not content is being rendered on a touch-enabled device using the new {{ Cssxref(":-moz-system-metric(touch-enabled)") }} selector. [ fixme: there are DOM events, too. ] {{ bug("503042") }}</li> <li>Added {{ cssxref(":-moz-locale-dir(ltr)") }} and {{ cssxref(":-moz-locale-dir(rtl)") }} to make it easier to customize layouts based on whether the user interface is being displayed using a left-to-right or a right-to-left locale. {{ bug("478416") }}</li> <li>Added support for the {{ cssxref(":indeterminate") }} pseudo-class, which matches <code>checkbox</code> <a class="internal" href="/En/HTML/Element/Input" title="en/HTML/Element/input"><code>input</code></a> elements whose <code>indeterminate</code> attribute is <code>true</code>.</li> <li>{{ cssxref("@font-face") }} now supports the new WOFF web font file format. {{ bug("507970") }}</li> <li>Added new media features for <a href="/En/CSS/Media_queries#Mozilla-specific_media_features" title="En/CSS/Media queries#Mozilla-specific media features">Mozilla-specific system metrics</a>. This lets content more safely check on the availability of features such as touch support.</li>
</ul><h3>HTML</h3>
<dl> <dt>HTML 5 video supports poster frames</dt> <dd>The <code>poster</code> attribute is now supported for the <a class="internal" href="/En/HTML/Element/Video" title="En/HTML/Element/Video"><code>video</code></a> element, allowing content to specify a poster frame to be displayed until the video begins to play.</dd> <dt>Checkboxes and radio buttons support the <code>indeterminate</code> property</dt> <dd>HTML <a class="internal" href="/En/HTML/Element/Input" title="en/HTML/Element/input"><code>input</code></a> elements of types <code>checkbox</code> and <code>radio</code> now support the indeterminate property, which allows a third, "indeterminate" state.</dd> <dt>Canvas image smoothing can be controlled</dt> <dd>The new <a class="internal" href="/en/Canvas_tutorial/Using_images#Controlling_image_scaling_behavior" title="en/Canvas tutorial/Using images#Controlling image scaling behavior"><code>mozImageSmoothingEnabled</code></a> property can be used to turn on and off image smoothing when scaling in <a class="internal" href="/en/HTML/Element/canvas" title="en/HTML/Element/canvas"><code>canvas</code></a> elements.</dd> <dt><a href="/en/Uploading_multiple_files" title="en/Uploading multiple files">Uploading multiple files</a></dt> <dd>The <em>multiple</em> attribute is now supported on <a href="/en/DOM/Input" title="en/DOM/Input"><code>HTMLInputElement</code></a> (<code>&lt;input type=file multiple&gt;</code>).</dd>
</dl><h3>JavaScript</h3>
<p>Gecko 1.9.2 introduces JavaScript 1.8.2, which adds a number of language features from the <a href="/En/JavaScript/ECMAScript_5_support_in_Mozilla" title="https://developer.mozilla.org/En/JavaScript/ECMAScript_5_support_in_Mozilla">ECMAScript 5 standard</a>:</p>
<ul> <li><a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/parse" title="en/Core JavaScript 1.5 Reference/Global Objects/Date/parse"><code>Date.parse()</code></a> can now parse ISO 8601 dates like YYYY-MM-DD.</li> <li> <p>The <a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/Function/prototype" title="en/Core JavaScript 1.5 Reference/Global Objects/Function/prototype"><code>prototype</code></a> property of function instances is no longer enumerable.</p> </li>
</ul>
<dl> <h3>DOM</h3>
<dl> <dt>Web workers can now self-terminate</dt> <dd>Workers now support the {{ ifmethod("nsIWorkerScope", "close") }} method, which allows them to terminate themselves.</dd> <dt>Drag and drop now supports files</dt> <dd>The <a href="/En/DragDrop/DataTransfer" title="en/DragDrop/DataTransfer"><code>DataTransfer</code></a> object provided to drag listeners now includes a list of files that were dragged.</dd> <dt><a href="/en/Detecting_device_orientation" title="en/Detecting device orientation">Detecting device orientation</a></dt> <dd>Content can now detect the orientation of the device if it has a supported accelerometer, using the <code>MozOrientation</code> event; see <a href="/en/DOM/window.onmozorientation" title="en/DOM/window.onmozorientation"><code>window.onmozorientation</code></a> for details. Firefox 3.6 supports the accelerometer in Mac laptops.</dd> <dt><a href="/en/DOM/Detecting_document_width_and_height_changes" title="en/DOM/Detecting document width and height changes">Detecting document width and height changes</a></dt> <dd>The new <code>MozScrollAreaChanged</code> event is dispatched whenever the document's <code>scrollWidth</code> and/or <code>scrollHeight</code> properties change.</dd>
</dl>
<ul> <li>The reorder event is now sent to embedded frames and iframes when their document is loaded. See {{ bug("420845") }}.</li> <li>The <code>getBoxObjectFor()</code> method has been <strong>removed</strong>, as it was non-standard and exposed even more non-standard stuff to the web. See {{ bug("340571") }}. Also affects mootools which uses this call for Gecko detection. See this <a class="link-https" href="https://mootools.lighthouseapp.com/projects/2706-mootools/tickets/155" title="https://mootools.lighthouseapp.com/projects/2706-mootools/tickets/155">mootools bug</a>.</li> <li>The new <a class="internal" href="/en/DOM/window.mozInnerScreenX" title="en/DOM/window.mozInnerScreenX"><code>mozInnerScreenX</code></a> and <a class="internal" href="/en/DOM/window.mozInnerScreenY" title="en/DOM/window.mozInnerScreenY"><code>mozInnerScreenY</code></a> properties on DOM windows have been added; these return the screen coordinates of the top-left forner of the window's viewport.</li> <li>The new <a class="internal" href="/en/DOM/window.mozScreenPixelsPerCSSPixel" title="en/DOM/window.mozScreenPixelsPerCSSPixel"><code>mozScreenPixelsPerCSSPixel</code></a> property, accessible only to chrome, provides a conversion factor between CSS pixels and screen pixels; this value can vary based on the zoom level of the content.</li> <li>When the page's URI's document fragment identifier (the part after the "#" (hash) character) changes, a new <code>hashchange</code> event is sent to the page. See <a class="internal" href="/en/DOM/window.onhashchange" title="window.onhashchange">window.onhashchange</a> for more information. {{ bug("385434") }}</li> <li>The attribute <a class="internal" href="/en/DOM/document.readyState" title="en/DOM/document.readyState"><code>document.readyState</code></a> is now supported. {{ bug("347174") }}</li> <li>Support for HTML 5's <code><a class="internal" href="/en/DOM/element.classList" title="element.classList">element.classList</a></code> to allow easier handling of the class attribute. {{ bug("501257") }}</li> <li><code>localName</code> and <code>namespaceURI</code> in HTML documents now behave like they do in XHTML documents: <code>localName</code> returns in lower case and <code>namespaceURI</code> for HTML elements is <code>"<a class=" external" href="http://www.w3.org/1999/xhtml" rel="freelink">http://www.w3.org/1999/xhtml</a>"</code>.</li> <li>Support has been added for addresses in geolocation via the {{ interface("nsIDOMGeoPositionAddress") }} interface and a new field added to {{ interface("nsIDOMGeoPosition") }}.</li>
</ul><h3>XPath</h3> <dl> <dt>The choose() XPath method is now supported</dt> <dd>The <a href="/en/XPath/Functions/choose" title="en/XPath/Functions/choose"><code>choose()</code></a> method is now supported by our implementation of <a href="/en/XPath" title="en/XPath">XPath</a>.</dd> </dl> <h2>For XUL and add-on developers</h2> <p>If you're an extension developer, you should start by reading <a class="internal" href="/en/Updating_extensions_for_Firefox_3.6" title="en/Updating extensions for Firefox 3.6">Updating extensions for Firefox 3.6</a>, which offers a helpful overview of what changes may affect your extension. Plug-in developers should read <a class="internal" href="/en/Updating_plug-ins_for_Firefox_3.6" title="en/Updating plug-ins for Firefox 3.6">Updating plug-ins for Firefox 3.6</a>.</p> <h3>New features</h3>
<dl> <dt><a href="/en/Detecting_device_orientation" title="en/Detecting device orientation">Detecting device orientation</a></dt> <dd>Content can now detect the orientation of the device if it has a supported accelerometer, using the <code>MozOrientation</code> event; see <a href="/en/DOM/window.onmozorientation" title="en/DOM/window.onmozorientation"><code>window.onmozorientation</code></a> for details. Firefox 3.6 supports the accelerometer in Mac laptops.</dd> <dt><a href="/en/Monitoring_HTTP_activity" title="en/Monitoring HTTP activity">Monitoring HTTP activity</a></dt> <dd>You can now monitor HTTP transactions to observe requests and responses in real time.</dd> <dt><a href="/en/Working_with_the_Windows_taskbar" title="en/Working with the Windows taskbar">Working with the Windows taskbar</a></dt> <dd>It's now possible to customize the appearance of windows in the taskbar in Windows 7 or later.</dd>
</dl><h3>Places</h3> <ul> <li>Places queries can now specify whether or not to include redirected pages in results. See {{ bug("428690") }}.</li> <li>Added the new {{ ifmethod("nsIFaviconService", "expireAllFavicons") }} method to the {{ interface("nsIFaviconService") }} interface.</li> </ul> <h3>Storage</h3> <dl> <dt><a href="/en/Storage#Collation_(sorting)" title="en/Storage#Collation (sorting)">Locale-aware collation of data is now supported by the Storage API</a></dt> <dd>Gecko 1.9.2 added several new collation methods to provide optimized collation (sorting) of results using locale-aware techniques.</dd> <dt><a href="/en/mozIStorageStatementParams#Enumeration_of_properties" title="en/mozIStorageStatementParams#Enumeration of properties">Properties on a statement can now be enumerated</a></dt> <dd>You can now use a <code><a class="internal" href="/en/Core_JavaScript_1.5_Reference/Statements/for...in" title="En/Core JavaScript 1.5 Reference/Statements/For...in">for..in</a></code> enumeration to enumerate all the properties on a statement.</dd> <dt>Asynchronously bind multiple sets of parameters and execute a statement.</dt> <dd>See {{ bug("490085") }} for details. Documentation coming soon.</dd> </dl> <h3>Preferences</h3> <ul> <li>The {{ interface("nsIContentPrefService") }} interface has two new methods: {{ ifmethod("nsIContentPrefService", "getPrefsByName") }} and {{ ifmethod("nsIContentPrefService", "removePrefsByName") }}.</li> </ul> <h3>Themes</h3> <p>See <a class="internal" href="/en/Updating_themes_for_Firefox_3.6" title="en/Updating themes for Firefox 3.6">Updating themes for Firefox 3.6</a> for details.</p> <h3>Miscellaneous</h3> <ul> <li><code>contents.rdf</code> is no longer supported for registering chrome in extensions. You must now use the <a class="internal" href="/en/Install_Manifests" title="en/Install manifests"><code>chrome.manifest</code></a> file instead. See {{ bug("492008") }}.</li> <li>Added support for hiding the menu bar automatically. See {{ bug("477256") }}.</li> <li>Added support for the <code>container-live-role</code> attribute to objects. See {{ bug("391829") }}.</li> <li>The <code>tabs-closebutton</code> binding has been removed. See {{ bug("500971") }}.</li> <li>Added support to {{ interface("nsISound") }} for playing sounds based on events that have occurred. See {{ bug("502799") }}.</li> <li>The syntax for the {{ interface("nsITreeView") }} methods {{ ifmethod("nsITreeView", "canDrop") }} and {{ ifmethod("nsITreeView", "drop") }} has changed to support the new drag &amp; drop API introduced in Gecko 1.9. See {{ bug("455590") }}.</li> <li>Added support to snap the mouse cursor to the default button of dialog or wizard on Windows, see {{ bug("76053") }}. This is processed automatically by dialog and wizard element. But if some XUL applications creates a window of window element and it has a default button, they need to call {{ ifmethod("nsIDOMChromeWindow", "notifyDefaultButtonLoaded") }} at onload event of the window.</li> <li>The {{ interface("nsILocalFileMac") }} interface has had two methods removed: <code>setFileTypeAndCreatorFromMIMEType()</code> and <code>setFileTypeAndCreatorFromExtension()</code>.</li> <li>The {{ ifandmethod("nsIWebBrowserStream", "appendToStream") }} no longer fails to return if the amount of data available exceeds 64 kilobytes. See {{ bug("495055") }}.</li> <li>The new <a class="internal" href="/en/JavaScript_code_modules/NetUtil.jsm" title="en/JavaScript code modules/NetUtil.jsm"><code>NetUtils.jsm</code></a> code module provides an easy-to-use method for asynchronously copying data from an input stream to an output stream.</li> <li>The new <a class="internal" href="/en/JavaScript_code_modules/openLocationLastURL.jsm" title="en/JavaScript code modules/openLocationLastURL.jsm"><code>openLocationLastURL.jsm</code></a> code module makes it easy to read and change the value of the "Open Location" dialog box's remembered URL while properly taking private browsing mode into account.</li> <li>On Windows, the {{ interface("nsIScreen") }} interface now reports 24 bit per pixel color depths when the graphics driver claims 32 bits, since 24 more accurately represents the actual number of color pixels in use.</li> <li>The <code>event_reorder</code> event is now sent when the children of frames and iframes change, as well as when the main document's children change. See {{ bug("420845") }}.</li> <li>Menu bars can now be hidden on Windows, using the new {{ XULAttr("autohide") }} attribute on the {{ XULElem("toolbar") }} XUL element.</li> <li>The {{ xulmeth("loadOneTab") }} and {{ xulmeth("addTab") }} methods now accept a new <code>relatedToCurrent</code> parameter and, in addition, allow the parameters to be specified by name, since nearly all of the parameters are optional.</li> <li>The "<a href="/en/Install_Manifests#hidden" title="en/Install Manifests#hidden">hidden</a>" property is no longer supported in install manifests; it's no longer possible to prevent the user from seeing add-ons in the add-on manager window.</li> <li>The <code>@mozilla.org/webshell;1</code> component no longer exists; you need to use <code>@mozilla.org/docshell;1</code> instead.</li> <li>You can now register with the update-timer category to schedule timer events without having to instantiate the object that the timer will eventually call into; it will instead be instantiated when it's needed. See {{ ifmethod("nsIUpdateTimerManager", "registerTimer") }} for details.</li> </ul> <h2>For Firefox/Gecko developers</h2> <p>Certain changes are only really interesting if you work on the internals of Firefox itself.</p> <h3>Interfaces merged</h3> <p>The following interfaces have been combined together:</p> <ul> <li><code>nsIPluginTagInfo2</code> has been merged into <code>nsIPluginTagInfo</code>.</li> <li><code>nsIPluginInstanceInternal</code>, <code>nsIPPluginInstancePeer</code>, <code>nsIPluginInstancePeer1</code>, <code>nsIPluginInstancePeer2</code>, and <code>nsIPluginInstancePeer3</code> have all been merged into <code>nsIPluginInstance</code>.</li> <li><code>nsIWindowlessPlugInstPeer</code> has been merged into <code>nsIPluginInstance</code>.</li> <li><code>nsIPluginManager</code> and <code>nsIPluginManager2</code> have been merged into <code>nsIPluginHost</code>.</li> </ul> <h3>Interfaces removed</h3> <p>The following interfaces have been removed entirely because they were unused, unimplemented, or obsolete:</p> <ul> <li><code>nsIFullScreen<br> </code></li> <li><code>nsIDOMSVGListener<br> </code></li> <li><code>nsIDOMSVGZoomListener<br> </code></li> <li><code>nsIInternetConfigService<br> </code></li> <li><code>nsIDKey<br> </code></li> <li><code>nsIEventHandler<br> </code></li> <li><code>nsIJRILiveConnectPIPeer<br> </code></li> <li><code>nsIJRILiveConnectPlugin<br> </code></li> <li><code>nsIScriptablePlugin<br> </code></li> <li><code>nsIClassicPluginFactory<br> </code></li> <li><code>nsIFileUtilities</code></li> </ul> <h3>Interfaces moved</h3> <p>The following interfaces have been relocated from their previous IDL files into new ones:</p> <ul> <li><code>nsIDOMNSCSS2Properties</code> is now located in its own IDL file (<code>dom/interfaces/css/nsIDOMCSS2Properties.idl</code>).</li> <li>{{ interface("nsIUpdateTimerManager") }} is now located in its own IDL file.</li> </ul> <p>A large number of interfaces have been moved. See <a href="/en/Interfaces_moved_in_Firefox_3.6" title="en/Interfaces moved in Firefox 3.6">Interfaces moved in Firefox 3.6</a> for a complete list.</p> <h3>Other interface changes</h3> <p>The following assorted changes have been made:</p> <ul> <li>The <code>nsIPlugin</code> interface now inherits from {{ interface("nsISupports") }} instead of {{ interface("nsIFactory") }}.</li> <li>The <code>nsIPluginHost</code> interface now inherits from {{ interface("nsISupports") }} instead of {{ interface("nsIFactory") }}.</li> <li>The <code>nsIFrame</code> interface now inherits from <code>nsQueryFrame</code> instead of {{ interface("nsISupports") }}.</li> <li>The {{ interface("nsIDeviceContext") }} method <code>getPaletteInfo()</code> has been removed, as it was never implemented.</li> <li>The {{ interface("nsIScriptContext") }} method <code>reportPendingException()</code> has been removed, since it was no longer being used.</li> </ul> <h2>See also</h2> <ul> <li><a class="internal" href="/En/Firefox_3.5_for_developers" title="En/Firefox 3.5 for developers">Firefox 3.5 for developers</a></li> <li><a class="internal" href="/en/Firefox_3_for_developers" title="en/Firefox 3 for developers">Firefox 3 for developers</a></li> <li><a class="internal" href="/en/Firefox_2_for_developers" title="en/Firefox 2 for developers">Firefox 2 for developers</a></li> <li><a class="internal" 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_3.6_for_developers"} ) }}</p></dl>
Revert to this revision