Firefox 3.6 para desenvolvedores

  • Revision slug: Firefox_3.6_para_desenvolvedores
  • Revision title: Firefox 3.6 para desenvolvedores
  • Revision id: 111054
  • Created:
  • Creator: Verruckt
  • Is current revision? Não
  • コメント no wording changes

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") }}
  • A proposal for CSS {{ cssxref("Gradients","gradients") }} is supported for {{ Cssxref("background-image") }}. {{ bug("479220") }}
  • Multiple background images are now supported. {{ bug("322475") }}
  • 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("484150") }}
  • {{ 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. {{ 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") }}

DOM

  • 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.
  • A new attribute has been created, mozScreenPixelsPerCSSPixel, for obtaining the amount of screen pixels per CSS pixel on {{ Interface("nsIDOMWindowUtils") }}. This can be used in conjunction with the new global properties, mozInnerScreenX and mozInnerScreenY, to compute screen coordinates. See {{ bug("486200") }} and {{ bug("507755") }}.
  • 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") }}
  • Geolocation "address" support is now available enabling user-readable position information. See {{ bug("503942") }}.
  • 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") }}

For XUL and add-on developers

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

  • Added support for locale-aware collation of data in Storage. See {{ bug("499990") }}.
  • Support for asynchronously binding multiple sets of parameters and executing a statement has been added. See {{ bug("490085") }}.
  • You can now enumerate properties on a statement. See the Enumeration of properties section of the article on {{ interface("MozIStorageStatementParams") }} 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.

Veja também

{{ languages( { "en": "en/Firefox_3.6_for_developers", "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>A proposal for CSS {{ cssxref("Gradients","gradients") }} is supported for {{ Cssxref("background-image") }}. {{ bug("479220") }}</li> <li>Multiple background images are now supported. {{ bug("322475") }}</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("484150") }}</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. {{ 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>
</ul>
<h3>DOM</h3>
<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>A new attribute has been created, <code>mozScreenPixelsPerCSSPixel</code>, for obtaining the amount of screen pixels per CSS pixel on {{ Interface("nsIDOMWindowUtils") }}. This can be used in conjunction with the new global properties, <code>mozInnerScreenX</code> and <code>mozInnerScreenY</code>, to compute screen coordinates. See {{ bug("486200") }} and {{ bug("507755") }}.</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>Geolocation "address" support is now available enabling user-readable position information. See {{ bug("503942") }}.</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>
</ul>
<h2>For XUL and add-on developers</h2>
<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>
<ul> <li>Added support for locale-aware collation of data in Storage. See {{ bug("499990") }}.</li> <li>Support for asynchronously binding multiple sets of parameters and executing a statement has been added. See {{ bug("490085") }}.</li> <li>You can now enumerate properties on a statement. See the <a class="internal" href="/en/mozIStorageStatementParams#Enumeration_of_properties" title="En/MozIStorageStatementParams#Enumeration of properties">Enumeration of properties</a> section of the article on {{ interface("MozIStorageStatementParams") }} for details.</li>
</ul>
<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>
</ul>
<h2>Veja também</h2>
<ul> <li><a class="internal" href="/pt/Firefox_3.5_para_desenvolvedores" title="pt/Firefox 3.5 para desenvolvedores">Firefox 3.5 para desenvolvedores<br> </a></li> <li><a class="internal" href="/pt/Firefox_3_para_desenvolvedores" title="pt/Firefox 3 para desenvolvedores">Firefox 3 para desenvolvedores</a></li> <li><a class="internal" href="/pt/Firefox_2_para_desenvolvedores" title="pt/Firefox 2 para desenvolvedores">Firefox 2 para desenvolvedores</a></li> <li><a class="internal" href="/pt/Firefox_1.5_para_Desenvolvedores" title="pt/Firefox 1.5 para desenvolvedores">Firefox 1.5 para desenvolvedores</a></li>
</ul>
<p>{{ languages( { "en": "en/Firefox_3.6_for_developers", "ja": "ja/Firefox_3.6_for_developers"} ) }}</p>
Revert to this revision