Firefox 3 para desenvolvedores

  • Revision slug: Firefox_3_para_desenvolvedores
  • Revision title: Firefox 3 para desenvolvedores
  • Revision id: 115553
  • Created:
  • Creator: Verruckt
  • Is current revision? Não
  • コメント /* DOM */

Revision Content

{{wiki.template('Esboço')}} Vou incluir documentos abaixo na lista: -- Quer estar adiante da curva e certificar-se que suas extensões, web sites ou aplicações estão prontas para a próxima geração do Firefox? Verifique em nosso conteúdo especialmente organizado para suas necessidades: * {{mediawiki.internal('Atualizando extensões para o Firefox 3', "pt")}} * {{mediawiki.internal('Atualizando aplicações web para o Firefox 3', "pt")}}

Novas características desenvolvidas no Firefox 3

O Firefox 3 está longe de ser liberado, mas já existe um número interessante de mudanças implementadas. Abaixo está uma incompleta lista de algumas das características. Sinta-se livre para adicionar mais coisas e editar a lista.

Nota: Se você estiver ciente de uma característica particular que seja lançada e pronta para ser documentada, seria de grande ajuda se você a colocasse nesta página, então o trabalho desta documentação pode começar. Obrigado!

Para desenvolvedores de web sites e aplicações

Veja também Gecko 1.9 Changes affecting websites.

Aplicações Web 1.0

Mark Finkle (mfinkle em #devmo) dirige o trabalho de documentação nas Aplicações Web 1.0.

  • Suporte experimental <a ping> ({{template.Bug(319368)}}, current spec)
  • WHATWG Eventos online e offilne agora são suportados, permitindo a aplicações e extensões detectar se há uma conexão de internet disponível ou não.
  • APIs para folhas de estilo alternativas ({{template.Bug(200930)}}, current spec)
  • O método DOM getElementsByClassName() agora é suportado.
  • Suporte aos métodos dos elementos transform() e setTransform() do <canvas> ({{template.Bug(357450)}}, current spec)
Aplicações Web 1.0 (HTML5, XHTML5) é ainda um esboço sendo trabalhado, não final.

Recursos offline

A implementação está em progresso - veja {{template.Bug(367447)}} e dependências. Spec em progresso está em .

CSS

Eric Shepherd (sheppy em #devmo) dirige a documentação CSS para o Firefox 3.

  • Os valores das propriedades inline-block e inline-table do {{template.Cssxref("display")}} estão agora implementadas.
  • A propriedade {{template.Cssxref("font-size-adjust")}} agora trabalha em todas as plataformas; anteriormente era somente suportada no Windows.
  • Suporte a valores de cores rgba() e hsla() ({{template.Bug(147017)}})
  • Suporte a pseudo-classe :default ({{template.Bug(302186)}})
  • Os valores -moz-intrinsic, -moz-min-intrinsic, -moz-shrink-wrap e -moz-fill foram adicionados a {{template.Cssxref("width")}}, {{template.Cssxref("min-width")}} e {{template.Cssxref("max-width")}} ({{template.Bug(311415)}})

DOM

  • As extensões DOM clientTop e clientLeft do Internet Explorer são agora suportadas.
  • The window.fullScreen property is now always accurate no matter where it is read, even in content. Previously it would return false inaccurately ({{template.Bug(127013)}}).

JavaScript

  • Support for JavaScript 1.8 is in progress ({{template.Bug(380236)}}). John Resig will be leading documentation work on this topic.
    • Everything that has been implemented is already documented on the JavaScript 1.8 page.
    • See this blog post for some additional information.

XSLT/XPath

  • node-set support ({{template.Bug(193678)}}, spec)
  • Regular Expressions support ({{template.Bug(354886)}}, spec)

SVG

  • foreignObject element support ({{template.Bug(326966)}}, spec, see also). mfinkle
  • pattern element support (spec)
  • mask element support (spec)
  • SVG filters support (spec)
    • filter
    • feBlend
    • feComponentTransfer, feFuncR, feFuncG, feFuncB, feFuncA
    • feComposite
    • feFlood
    • feGaussianBlur
    • feMerge, feMergeNode
    • feMorphology
    • feOffset
    • feTurbulence
  • a element became the nsSVGAElement instead of XBL binding.
  • various DOM functions for texts were implemented

For XUL and extension developers

New XUL Elements

Mark Finkle (mfinkle in #devmo) is leading documentation of new XUL elements.

XUL in Firefox 3 supports a number of new elements:

  • The new <scale> element lets you create sliding scales that let the user select any value in a specified range. This widget would typically be used, for example, to create a volume control.
  • A new value, number, for the type attribute of textboxes creates a textbox in which only numbers may be entered. In addition, arrow buttons appear to one side which may be used to step through values. {{mediawiki.interwiki('wikimo', 'XUL:Specs:NumberBox', 'More information about numeric textboxes')}} ({{template.Bug(345510)}})
  • a <dropmarker> element is added which is useful when creating menu-like widgets using XBL bindings. ({{template.Bug(348614)}})
  • a <spinbuttons> element is added which can be used when creating widgets using XBL bindings. ({{template.Bug(155053)}})
  • two widgets, <datepicker> and <timepicker>, can be used to allow the entry of dates and times. The datepicker is available in a number of styles by setting the type attribute, to allow entry with textboxes or a calendar grid. {{mediawiki.interwiki('wikimo', 'XUL:Specs:DateTimePickers', 'More information about date pickers')}} Datepicker Reference Timepicker Reference

Tree Improvements

  • trees now support scrolling horizontally. A horizontal scrollbar will appear if the columns don't fit into the available width. This will occur if the columns have specified widths which add up to more than the space available. ({{template.Bug(212789)}})
  • a new selection style allows cells to be selected individually, instead of entire rows. This may be used by setting the seltype attribute on a tree to 'cell'. ({{template.Bug(296040)}})
  • trees now support editing of individual cells. Double-clicking on an editable cell will display a text field in which the user can edit the contents of the cell. {{mediawiki.interwiki('wikimo', 'XUL:Tree', 'More details')}} ({{template.Bug(201499)}})
  • <treecol> elements now support an overflow attribute which may be set to true to allow the text of cells within that column to expand to neighbouring blank cells if the text is too large to fit into that single cell.

Menu Improvements

Several improvements in the <menu> and <menulist> elements have been made ({{template.Bug(333023)}}):

  • the image attribute is used consistently for setting images
  • menulists fire the select event when selecting an item
  • inputField and editable properties have been added to menulist
  • the <menu>, <menuitem> and <menuseparator> elements now have a readonly selected property which retrieves whether the item is selected in a <menulist>
  • the <menu>, <menuitem> and <menuseparator> elements now have a readonly control property which returns the enclosing <menulist>
  • the <menu>, <menuitem> and <menuseparator> elements now support the accessKey, disabled, crop, image and label properties which set the corresponding attribute
  • the <menu> element now has methods to append, insert and remove menuitems. ({{template.Bug(372552)}})
  • supports an editor property to get the internal nsIEditor for the text field of an editable menulist.({{template.Bug(312867)}})
  • menus may now be made translucent on platforms that support it. ({{template.Bug(70798)}})

Textbox Improvements

  • setting the spellcheck attribute to 'true' on a textbox will enable inline spellchecking for that textbox. ({{template.Bug(346787)}})
  • the <textbox> now has a reset() method to reset the value of the textbox to the default value. The defaultValue property may be used to retrieve and modify the default value of the textbox. ({{template.Bug(312867)}})
  • supports an editor property to get the internal nsIEditor for the text field. ({{template.Bug(312867)}})
  • textbox now supports a newlines attribute which specifies how line breaks in pasted text are handled. ({{template.Bug(253481)}}) Possible values are:
    • pasteintact - paste everything as is
    • pastetofirst - (default value) paste only up to the first line break
    • replacewithspaces - replace line breaks with spaces
    • replacewithcommas - replace line breaks with commas
    • strip - strip out all line breaks
    • stripsurroundingwhitespace - strip out all line breaks and surrounding whitespace

Improvements to Other Elements

  • the type attribute on a <button> may be set to 'repeat' to create buttons which fire their command event repeatedly while the mouse button is held down. ({{template.Bug(331055)}})
  • the buttondisabledaccept attribute can now be used on the <dialog> element to have the accept (OK) button initially disabled. ({{template.Bug(247849)}})
  • the <titlebar> element now supports the allowevents attribute to allow events to be passed to the children of the titlebar. ({{template.Bug(361425)}})
  • the <splitter> now supports an additional value for the collapse attribute of 'both' which indicates that the splitter can collapse elements on both sides of it when dragged. The substate attribute will set to either before or after when one is collapsed. ({{template.Bug(337955)}})
  • The <richlistbox> element now supports multiple selection. Set the seltype attribute to 'multiple' to enable this.

Template Changes

Template documentation is being led by Mark Finkle (mfinkle in #devmo).

Templates have been significantly improved in Firefox 3. The key improvement allows the use of custom query processors to handle other types of datasources besides RDF. A new query syntax makes this possible. A full description of the new features available for templates {{mediawiki.interwiki('wikimo', 'XUL:Template_Features_in_1.9', 'is available')}}. ({{template.Bug(285631)}})

Other template improvements:

  • relational conditions have been added to allow for more precise control over what results match a rule. This allows, for example, matching of results that start or end with certain strings, or that are before or after other values.
  • a flag 'dont-recurse' has been added to prevent recursion for happening such that only one level of results are generated
  • APIs have been added to the template builder to retrieve a result object representing an output item.
  • the XUL sort service is more robust and sorts both content and non-content trees better. It also allows sorting of non-template built content. ({{template.Bug(335122)}})

Idle Service

A new service has been added to determine how long the user has been idle (that is, since the last time they pressed a key or moved their mouse). This service implements the nsIIdleService interface.

Notable Bugs Fixed

  • if an error occurs parsing an overlay, the overlay is not applied. Parse errors are logged to the error console. ({{template.Bug(355755)}})
  • bug fixed where <menupopup> elements can be placed inside a binding when attached to a menu or menu-like element. ({{template.Bug(345896)}})
  • the button's dlgType property now works properly. ({{template.Bug(308591)}})
  • the canBubble argument to event.initEvent now works properly so that events can be fired which don't bubble. ({{template.Bug(330190)}})
  • the DOMAttrModified event now handles namespaced attributes properly. ({{template.Bug(247095)}})
  • XML processing instructions, such as <?xml-stylesheet ?>, are now added to a XUL document's DOM. This means document.firstChild isn't guaranteed to be the root element, use document.documentElement instead. Also, <?xml-stylesheet ?> and <?xul-overlay ?> processing instructions now have no effect outside the document prolog. ({{template.Bug(319654)}})
  • getElementsByAttributeNS functions have been added to XUL elements and documents. ({{template.Bug(239976)}})
  • event listeners are maintained when moving or removing an element from a XUL document. ({{template.Bug(286619)}})
  • mutation events are now fired for non-displayed documents. ({{template.Bug(201238)}})
  • various issues with elements drawing in the wrong order are fixed. ({{template.Bug(317375)}})

Places

  • History and Bookmarks API comparison to Fx2
  • Annotations
  • Querying History, Bookmarks and Annotations
  • History and Bookmarks Events
  • Sync
  • Places Widgets

Download Manager

  • Back-end converted from RDF to mozStorage (resulted in an API change for nsIDownloadManager and nsIDownload). ({{template.Bug(380250)}})
  • Download manager can now support more than one progress listener. ({{template.Bug(289540)}})
  • See this page for additional information.

Password Manager

XPCOM Cycle Collector

  • Veja {{mediawiki.interwiki('wikimo', 'Interfacing_with_the_XPCOM_cycle_collector', 'Interfacing with the XPCOM cycle collector')}}
  • Veja {{mediawiki.interwiki('wikimo', 'Global_nsICycleCollector_service', 'Global nsICycleCollector service')}}
  • {{template.Bug(333078)}}

Veja também

* {{mediawiki.internal('Updating extensions for Firefox 3', "pt")}}

Categorias


Interwiki Language Links

{{ wiki.languages( { "en": "en/Firefox_3_for_developers", "fr": "fr/Firefox_3_pour_les_d\u00e9veloppeurs", "ja": "ja/Firefox_3_for_developers", "pl": "pl/Firefox_3_dla_programist\u00f3w", "ko": "ko/Firefox_3_for_developers" } ) }}

Revision Source

<p>{{wiki.template('Esboço')}}
<span class="comment">Vou incluir documentos abaixo na lista: -- Quer estar adiante da curva e certificar-se que suas extensões, web sites ou aplicações estão prontas para a próxima geração do Firefox? Verifique em nosso conteúdo especialmente organizado para suas necessidades:  * {{mediawiki.internal('Atualizando extensões para o Firefox 3', "pt")}} * {{mediawiki.internal('Atualizando aplicações web para o Firefox 3', "pt")}}</span>
</p>
<h2 name="Novas_caracter.C3.ADsticas_desenvolvidas_no_Firefox_3"> Novas características desenvolvidas no Firefox 3 </h2>
<p>O Firefox 3 está longe de ser liberado, mas já existe um número interessante de mudanças implementadas. Abaixo está uma incompleta lista de algumas das características. Sinta-se livre para adicionar mais coisas e editar a lista.
</p>
<div class="note"><b>Nota:</b> Se você estiver ciente de uma característica particular que seja lançada e pronta para ser documentada, seria de grande ajuda se você a colocasse nesta página, então o trabalho desta documentação pode começar. Obrigado!</div>
<h3 name="Para_desenvolvedores_de_web_sites_e_aplica.C3.A7.C3.B5es"> Para desenvolvedores de web sites e aplicações </h3>
<p>Veja também <a href="pt/Gecko_1.9_Changes_affecting_websites">Gecko 1.9 Changes affecting websites</a>.
</p>
<h4 name="Aplica.C3.A7.C3.B5es_Web_1.0"> Aplicações Web 1.0 </h4>
<p><i>Mark Finkle (mfinkle em #devmo) dirige o trabalho de documentação nas Aplicações Web 1.0.</i>
</p>
<ul><li> Suporte experimental <code>&lt;a ping&gt;</code> ({{template.Bug(319368)}}, <a class="external" href="http://www.whatwg.org/specs/web-apps/current-work/#ping">current spec</a>)
</li><li> WHATWG <a href="pt/Eventos_online_e_offilne">Eventos online e offilne</a> agora são suportados, permitindo a aplicações e extensões detectar se há uma conexão de internet disponível ou não. 
</li><li> APIs para folhas de estilo alternativas ({{template.Bug(200930)}}, <a class="external" href="http://www.whatwg.org/specs/web-apps/current-work/#alternate-style-sheets">current spec</a>)
</li><li> O método DOM <code><a href="pt/DOM/document.getElementsByClassName">getElementsByClassName()</a></code> agora é suportado.
</li><li> Suporte aos métodos dos elementos <code>transform()</code> e <code>setTransform()</code> do <code>&lt;canvas&gt;</code> ({{template.Bug(357450)}}, <a class="external" href="http://whatwg.org/specs/web-apps/current-work/#transform">current spec</a>)
</li></ul>
<div class="note"><a class="external" href="http://www.whatwg.org/specs/web-apps/current-work/">Aplicações Web 1.0</a> (HTML5, XHTML5) é ainda um esboço sendo trabalhado, não final.</div>
<h4 name="Recursos_offline"> Recursos offline </h4>
<p>A implementação está em progresso - veja {{template.Bug(367447)}} e dependências. <i>Spec</i> em progresso está em <a class="external" href="http://www.campd.org/stuff/Offline%20Cache.html">.
</a></p><a class="external" href="http://www.campd.org/stuff/Offline%20Cache.html">
</a><h4 name="CSS"><a class="external" href="http://www.campd.org/stuff/Offline%20Cache.html"> </a><a href="pt/CSS">CSS</a> </h4>
<p><i>Eric Shepherd (sheppy em #devmo) dirige a documentação CSS para o Firefox 3.</i>
</p>
<ul><li> Os valores das propriedades <code>inline-block</code> e <code>inline-table</code> do {{template.Cssxref("display")}} estão agora implementadas.
</li><li> A propriedade {{template.Cssxref("font-size-adjust")}} agora trabalha em todas as plataformas; anteriormente era somente suportada no Windows.
</li><li> Suporte a valores de cores <code>rgba()</code> e <code>hsla()</code> ({{template.Bug(147017)}})
</li><li> Suporte a pseudo-classe <code>:default</code> ({{template.Bug(302186)}})
</li><li> Os valores <code>-moz-intrinsic</code>, <code>-moz-min-intrinsic</code>, <code>-moz-shrink-wrap</code> e <code>-moz-fill</code> foram adicionados a {{template.Cssxref("width")}}, {{template.Cssxref("min-width")}} e {{template.Cssxref("max-width")}} ({{template.Bug(311415)}})
</li></ul>
<h4 name="DOM"> DOM </h4>
<ul><li> As extensões DOM <code><a href="pt/DOM/element.clientTop">clientTop</a></code> e <code><a href="pt/DOM/element.clientLeft">clientLeft</a></code> do Internet Explorer são agora suportadas.
</li><li> The <code><a href="pt/DOM/window.fullScreen">window.fullScreen</a></code> property is now always accurate no matter where it is read, even in content. Previously it would return <code>false</code> inaccurately ({{template.Bug(127013)}}).
</li></ul>
<h4 name="JavaScript"> JavaScript </h4>
<ul><li> Support for <a href="pt/New_in_JavaScript_1.8">JavaScript 1.8</a> is in progress ({{template.Bug(380236)}}). <i><a href="User:Jresig">John Resig</a> will be leading documentation work on this topic.</i>
<ul><li> Everything that has been implemented is already documented on the <a href="pt/New_in_JavaScript_1.8">JavaScript 1.8</a> page.
</li><li> See this <a class="external" href="http://ejohn.org/blog/javascript-18-progress/">blog post</a> for some additional information.
</li></ul>
</li></ul>
<h4 name="XSLT.2FXPath"> XSLT/XPath </h4>
<ul><li><code>node-set</code> support ({{template.Bug(193678)}}, <a class="external" href="http://www.exslt.org/exsl/exsl.html">spec</a>)
</li><li>Regular Expressions support ({{template.Bug(354886)}}, <a class="external" href="http://www.exslt.org/regexp/index.html">spec</a>)
</li></ul>
<h4 name="SVG"> <a href="pt/SVG">SVG</a> </h4>
<ul><li><code>foreignObject</code> element support ({{template.Bug(326966)}}, <a class="external" href="http://www.w3.org/TR/SVG11/extend.html#ForeignObjectElement">spec</a>, <a class="external" href="http://weblogs.mozillazine.org/roc/archives/2006/06/the_future_is_now.html">see also</a>). <i>mfinkle</i>
</li><li><code>pattern</code> element support (<a class="external" href="http://www.w3.org/TR/SVG11/pservers.html#PatternElement">spec</a>)
</li><li><code>mask</code> element support (<a class="external" href="http://www.w3.org/TR/SVG11/masking.html#MaskElement">spec</a>)
</li><li>SVG filters support (<a class="external" href="http://www.w3.org/TR/SVG11/filters.html">spec</a>)
<ul><li><code>filter</code>
</li><li><code>feBlend</code>
</li><li><code>feComponentTransfer</code>, <code>feFuncR</code>, <code>feFuncG</code>, <code>feFuncB</code>, <code>feFuncA</code>
</li><li><code>feComposite</code>
</li><li><code>feFlood</code>
</li><li><code>feGaussianBlur</code>
</li><li><code>feMerge</code>, <code>feMergeNode</code>
</li><li><code>feMorphology</code>
</li><li><code>feOffset</code>
</li><li><code>feTurbulence</code>
</li></ul>
</li><li><code>a</code> element became the <code>nsSVGAElement</code> instead of XBL binding.
</li><li>various DOM functions for texts were implemented
</li></ul>
<h3 name="For_XUL_and_extension_developers">For XUL and extension developers</h3>
<h4 name="New_XUL_Elements"> New XUL Elements </h4>
<p><i>Mark Finkle (mfinkle in #devmo) is leading documentation of new XUL elements.</i>
</p><p>XUL in Firefox 3 supports a number of new elements:
</p>
<ul><li>The new <code><a href="pt/XUL/scale">&lt;scale&gt;</a></code> element lets you create sliding scales that let the user select any value in a specified range. This widget would typically be used, for example, to create a volume control.
</li><li>A new value, <code>number</code>, for the <code>type</code> attribute of textboxes creates a textbox in which only numbers may be entered. In addition, arrow buttons appear to one side which may be used to step through values. {{mediawiki.interwiki('wikimo', 'XUL:Specs:NumberBox', 'More information about numeric textboxes')}} ({{template.Bug(345510)}})
</li><li>a <code>&lt;dropmarker&gt;</code> element is added which is useful when creating menu-like widgets using XBL bindings. ({{template.Bug(348614)}})
</li><li>a <code>&lt;spinbuttons&gt;</code> element is added which can be used when creating widgets using XBL bindings. ({{template.Bug(155053)}})
</li><li>two widgets, <code>&lt;datepicker&gt;</code> and <code>&lt;timepicker&gt;</code>, can be used to allow the entry of dates and times. The datepicker is available in a number of styles by setting the <code>type</code> attribute, to allow entry with textboxes or a calendar grid. {{mediawiki.interwiki('wikimo', 'XUL:Specs:DateTimePickers', 'More information about date pickers')}} <a href="pt/XUL/datepicker">Datepicker Reference</a> <a href="pt/XUL/timepicker">Timepicker Reference</a>
</li></ul>
<h4 name="Tree_Improvements"> Tree Improvements </h4>
<ul><li>trees now support scrolling horizontally. A horizontal scrollbar will appear if the columns don't fit into the available width. This will occur if the columns have specified widths which add up to more than the space available. ({{template.Bug(212789)}})
</li><li>a new selection style allows cells to be selected individually, instead of entire rows. This may be used by setting the <code>seltype</code> attribute on a tree to <code>'cell'</code>. ({{template.Bug(296040)}})
</li><li>trees now support editing of individual cells. Double-clicking on an editable cell will display a text field in which the user can edit the contents of the cell. {{mediawiki.interwiki('wikimo', 'XUL:Tree', 'More details')}} ({{template.Bug(201499)}})
</li><li>&lt;treecol&gt; elements now support an <code>overflow</code> attribute which may be set to true to allow the text of cells within that column to expand to neighbouring blank cells if the text is too large to fit into that single cell.
</li></ul>
<h4 name="Menu_Improvements"> Menu Improvements </h4>
<p>Several improvements in the <code>&lt;menu&gt;</code> and <code>&lt;menulist&gt;</code> elements have been made ({{template.Bug(333023)}}):
</p>
<ul><li>the <code>image</code> attribute is used consistently for setting images
</li><li>menulists fire the select event when selecting an item
</li><li><code>inputField</code> and <code>editable</code> properties have been added to menulist
</li><li>the <code>&lt;menu&gt;</code>, <code>&lt;menuitem&gt;</code> and <code>&lt;menuseparator&gt;</code> elements now have a readonly <code>selected</code> property which retrieves whether the item is selected in a &lt;menulist&gt;
</li><li>the <code>&lt;menu&gt;</code>, <code>&lt;menuitem&gt;</code> and <code>&lt;menuseparator&gt;</code> elements now have a readonly <code>control</code> property which returns the enclosing &lt;menulist&gt;
</li><li>the <code>&lt;menu&gt;</code>, <code>&lt;menuitem&gt;</code> and <code>&lt;menuseparator&gt;</code> elements now support the <code>accessKey</code>, <code>disabled</code>, <code>crop</code>, <code>image</code> and <code>label</code> properties which set the corresponding attribute
</li><li>the &lt;menu&gt; element now has methods to append, insert and remove menuitems. ({{template.Bug(372552)}})
</li><li>supports an <code>editor</code> property to get the internal <a href="pt/NsIEditor">nsIEditor</a> for the text field of an editable menulist.({{template.Bug(312867)}})
</li><li>menus may now be made translucent on platforms that support it. ({{template.Bug(70798)}})
</li></ul>
<h4 name="Textbox_Improvements"> Textbox Improvements </h4>
<ul><li>setting the <code>spellcheck</code> attribute to <code>'true'</code> on a textbox will enable inline spellchecking for that textbox. ({{template.Bug(346787)}})
</li><li>the <code>&lt;textbox&gt;</code> now has a <code>reset()</code> method to reset the value of the textbox to the default value. The <code>defaultValue</code> property may be used to retrieve and modify the default value of the textbox. ({{template.Bug(312867)}})
</li><li>supports an <code>editor</code> property to get the internal <a href="pt/NsIEditor">nsIEditor</a> for the text field. ({{template.Bug(312867)}})
</li><li>textbox now supports a <code>newlines</code> attribute which specifies how line breaks in pasted text are handled. ({{template.Bug(253481)}}) Possible values are:
<ul><li><code>pasteintact</code> - paste everything as is
</li><li><code>pastetofirst</code> - (default value) paste only up to the first line break
</li><li><code>replacewithspaces</code> - replace line breaks with spaces
</li><li><code>replacewithcommas</code> - replace line breaks with commas
</li><li><code>strip</code> - strip out all line breaks
</li><li><code>stripsurroundingwhitespace</code> - strip out all line breaks and surrounding whitespace
</li></ul>
</li></ul>
<h4 name="Improvements_to_Other_Elements"> Improvements to Other Elements </h4>
<ul><li>the <code>type</code> attribute on a <code>&lt;button&gt;</code> may be set to <code>'repeat'</code> to create buttons which fire their command event repeatedly while the mouse button is held down. ({{template.Bug(331055)}})
</li><li>the <code>buttondisabledaccept</code> attribute can now be used on the <code>&lt;dialog&gt;</code> element to have the accept (OK) button initially disabled. ({{template.Bug(247849)}})
</li><li>the <code>&lt;titlebar&gt;</code> element now supports the <code>allowevents</code> attribute to allow events to be passed to the children of the titlebar. ({{template.Bug(361425)}})
</li><li>the <code>&lt;splitter&gt;</code> now supports an additional value for the <code>collapse</code> attribute of <code>'both'</code> which indicates that the splitter can collapse elements on both sides of it when dragged. The <code>substate</code> attribute will set to either before or after when one is collapsed. ({{template.Bug(337955)}})
</li><li>The <code>&lt;richlistbox&gt;</code> element now supports multiple selection. Set the <code>seltype</code> attribute to <code>'multiple'</code> to enable this.
</li></ul>
<h4 name="Template_Changes"> Template Changes </h4>
<p><i>Template documentation is being led by Mark Finkle (mfinkle in #devmo).</i>
</p><p>Templates have been significantly improved in Firefox 3. The key improvement allows the use of custom query processors to handle other types of datasources besides RDF. A new query syntax makes this possible. A full description of the new features available for templates {{mediawiki.interwiki('wikimo', 'XUL:Template_Features_in_1.9', 'is available')}}. ({{template.Bug(285631)}})
</p><p>Other template improvements:
</p>
<ul><li>relational conditions have been added to allow for more precise control over what results match a rule. This allows, for example, matching of results that start or end with certain strings, or that are before or after other values.
</li><li>a flag 'dont-recurse' has been added to prevent recursion for happening such that only one level of results are generated
</li><li>APIs have been added to the template builder to retrieve a result object representing an output item.
</li><li>the XUL sort service is more robust and sorts both content and non-content trees better. It also allows sorting of non-template built content. ({{template.Bug(335122)}})
</li></ul>
<h4 name="Idle_Service"> Idle Service </h4>
<p>A new service has been added to determine how long the user has been idle (that is, since the last time they pressed a key or moved their mouse). This service implements the <code><a href="pt/NsIIdleService">nsIIdleService</a></code> interface.
</p>
<h4 name="Notable_Bugs_Fixed"> Notable Bugs Fixed </h4>
<ul><li>if an error occurs parsing an overlay, the overlay is not applied. Parse errors are logged to the error console. ({{template.Bug(355755)}})
</li><li>bug fixed where <code>&lt;menupopup&gt;</code> elements can be placed inside a binding when attached to a menu or menu-like element. ({{template.Bug(345896)}})
</li><li>the button's <code>dlgType</code> property now works properly. ({{template.Bug(308591)}})
</li><li>the <code>canBubble</code> argument to <a href="pt/DOM/event.initEvent">event.initEvent</a> now works properly so that events can be fired which don't bubble. ({{template.Bug(330190)}})
</li><li>the <code>DOMAttrModified</code> event now handles namespaced attributes properly. ({{template.Bug(247095)}})
</li><li>XML processing instructions, such as <code>&lt;?xml-stylesheet ?&gt;</code>, are now added to a XUL document's DOM. This means <code>document.firstChild</code> isn't guaranteed to be the root element, use <code>document.documentElement</code> instead. Also, <code>&lt;?xml-stylesheet ?&gt;</code> and <code>&lt;?xul-overlay ?&gt;</code> processing instructions now have no effect outside the document prolog. ({{template.Bug(319654)}})
</li><li><code>getElementsByAttributeNS</code> functions have been added to XUL elements and documents. ({{template.Bug(239976)}})
</li><li>event listeners are maintained when moving or removing an element from a XUL document. ({{template.Bug(286619)}})
</li><li>mutation events are now fired for non-displayed documents. ({{template.Bug(201238)}})
</li><li>various issues with elements drawing in the wrong order are fixed. ({{template.Bug(317375)}})
</li></ul>
<h4 name="Places"> <a href="pt/Places">Places</a> </h4>
<ul><li> History and Bookmarks API comparison to Fx2
</li><li> Annotations
</li><li> Querying History, Bookmarks and Annotations
</li><li> History and Bookmarks Events
</li><li> Sync
</li><li> Places Widgets
</li></ul>
<h4 name="Download_Manager"> Download Manager </h4>
<ul><li> Back-end converted from RDF to mozStorage (resulted in an API change for nsIDownloadManager and nsIDownload). ({{template.Bug(380250)}})
</li><li> Download manager can now support more than one progress listener. ({{template.Bug(289540)}})
</li><li> See <a class="external" href="http://shawnwilsher.com/archives/100">this page</a> for additional information.
</li></ul>
<h4 name="Password_Manager"> Password Manager </h4>
<ul><li> Rewritten, API changes (see <a href="pt/Using_nsILoginManager">Using_nsILoginManager</a> for examples on using the new API).
</li></ul>
<h4 name="XPCOM_Cycle_Collector"> XPCOM Cycle Collector </h4>
<ul><li> Veja {{mediawiki.interwiki('wikimo', 'Interfacing_with_the_XPCOM_cycle_collector', 'Interfacing with the XPCOM cycle collector')}}
</li><li> Veja {{mediawiki.interwiki('wikimo', 'Global_nsICycleCollector_service', 'Global nsICycleCollector service')}}
</li><li> {{template.Bug(333078)}}
</li></ul>
<h3 name="Veja_tamb.C3.A9m"> Veja também </h3>
<ul><li> <a class="external" href="http://www.squarefree.com/burningedge/releases/trunk-for-firefox-3.html">Uma lista mais detalhada de mudanças no Firefox 3 em squarefree.com</a>
</li><li> {{mediawiki.interwiki('wikimo', 'Firefox3/Schedule', 'Firefox 3 schedule')}}
</li></ul>
<p><span class="comment">* {{mediawiki.internal('Updating extensions for Firefox 3', "pt")}}</span>
</p>
<ul><li> <a href="pt/Firefox_2_para_desenvolvedores">Firefox 2 para desenvolvedores</a>
</li><li> <a href="pt/Firefox_1.5_para_desenvolvedores">Firefox 1.5 para desenvolvedores</a>
</li></ul>
<p><span class="comment">Categorias</span>
</p><p><br>
<span class="comment">Interwiki Language Links</span>
</p>{{ wiki.languages( { "en": "en/Firefox_3_for_developers", "fr": "fr/Firefox_3_pour_les_d\u00e9veloppeurs", "ja": "ja/Firefox_3_for_developers", "pl": "pl/Firefox_3_dla_programist\u00f3w", "ko": "ko/Firefox_3_for_developers" } ) }}
Revert to this revision