XUL Changes for Firefox 1.5

  • Revision slug: XUL_Changes_for_Firefox_1.5
  • Revision title: XUL Changes for Firefox 1.5
  • Revision id: 182964
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment Reverted edits by [[Special:Contributions/Mrolappe|Mrolappe]] ([[User_talk:Mrolappe|Talk]]); changed back to last version by [[User:Bedi|Bedi]]

Revision Content

This lists the most notable changes to XUL in Firefox 1.5 (Gecko 1.8). For other changes you should be aware of, see Adapting XUL Applications for Firefox 1.5.

<scrollcorner>

A <scrollcorner> element is added which is used to create the small box in the intersection of the horizontal and vertical scrollbars.

<richlistbox> and <richlistitem>

The <richlistbox> and <richlistitem> elements are used for creating lists containing arbitrary content. This element works similarly to the <listbox> which is designed primarily for lists of textual items. The <richlistbox> supports much of the same API as the <listbox> and single items, created with the <richlistitem> element may be selected. See XUL:Richlistbox for more information.

Preferences System

Several elements have been added which may be used for creating preference windows. These windows are special types of dialogs which support several panels, each of which may be contained in the same file or a separate file. A set of icons will appear across the top of the dialog allowing the user to switch panels. Along with the new preference elements and some additional attributes for existing elements, they make it easy to set preferences without having to use code. For more information, see Preferences System.

bfcache

Mozilla now caches the page's DOM, so that navigating back and forward does not reload the page, making navigation much more efficient. The pageshow and pagehide events are used when switching from a page in the cache, while the load and unload events are used only when the page is loaded or unloaded.

For more information see Using Firefox 1.5 caching.

tabIndex

The tabIndex property is now applied to most elements.

<radiogroup>

Setting the value property on the <radiogroup> element selects the <radio> element in the group with the corresponding value.

Dialog: defaultButton property

The <dialog> binding now supports the defaultButton property. Setting this property changes the default button of the dialog. It can be set either to one of the buttons of the <dialog> binding (using their names); or to none - in which case no button is set to be the default.

Button: icon property

The icon property on a button may be used to set stock icons on a button, used on some platforms. For instance <button icon="help"> will create a button with a help icon. This is used typically on GNOME systems where possible values are: accept, cancel, help, open, save, find, clear, yes, no, apply, close, print, add, remove, refresh, go-forward, go-back, properties, select-font, select-color, network.

<menulist>

Items in a <menulist> support the description attribute to allow for extra descriptive text to appear beside an item's label. The menulist modification methods appendItem and insertItemAt take an extra description argument when creating items this way.

<listbox>

The removeItemAt method was sometime non zero-based due to a bug ({{template.Bug(236068)}}). This has been fixed in Firefox 1.5 and all code depending on this non zero-based behaviour should be changed.

<stringbundle>

The <stringbundle> element has a strings property which may be used to retrieve an enumeration of all of the strings in the bundle.

Draggable tabs

The tabbrowser now allows the user to rearrange tabs by dragging them.

<tabbox>

The <tabbox> element now supports a selectedIndex attribute to specify the tab to be selected by default.

Loading overlays dynamically

XUL now supports loading overlays dynamically with the document.loadOverlay function.

Original Document Information

  • Author(s): Neil Deakin
{{ wiki.languages( { "fr": "fr/Modifications_XUL_pour_Firefox_1.5", "ja": "ja/XUL_Changes_for_Firefox_1.5", "pl": "pl/Zmiany_w_XUL-u_w_Firefoksie_1.5" } ) }}

Revision Source

<p>
</p><p>This lists the most notable changes to <a href="en/XUL">XUL</a> in <a href="en/Firefox_1.5">Firefox 1.5</a> (<a href="en/Gecko">Gecko</a> 1.8). For other changes you should be aware of, see <a href="en/Adapting_XUL_Applications_for_Firefox_1.5">Adapting XUL Applications for Firefox 1.5</a>.
</p>
<h3 name=".3Cscrollcorner.3E"> <code>&lt;scrollcorner&gt;</code> </h3>
<p>A &lt;scrollcorner&gt; element is added which is used to create the small box in the intersection of the horizontal and vertical scrollbars.
</p>
<h3 name=".3Crichlistbox.3E_and_.3Crichlistitem.3E"> <code>&lt;richlistbox&gt;</code> and <code>&lt;richlistitem&gt;</code> </h3>
<p>The &lt;richlistbox&gt; and &lt;richlistitem&gt; elements are used for creating lists containing arbitrary content. This element works similarly to the &lt;listbox&gt; which is designed primarily for lists of textual items. The &lt;richlistbox&gt; supports much of the same API as the &lt;listbox&gt; and single items, created with the &lt;richlistitem&gt; element may be selected. See <a href="en/XUL/Richlistbox">XUL:Richlistbox</a> for more information.
</p>
<h3 name="Preferences_System"> Preferences System </h3>
<p>Several elements have been added which may be used for creating preference windows. These windows are special types of dialogs which support several panels, each of which may be contained in the same file or a separate file. A set of icons will appear across the top of the dialog allowing the user to switch panels. Along with the new preference elements and some additional attributes for existing elements, they make it easy to set preferences without having to use code. For more information, see <a href="en/Preferences_System">Preferences System</a>.
</p>
<h3 name="bfcache"> <code>bfcache</code> </h3>
<p>Mozilla now caches the page's DOM, so that navigating back and forward does not reload the page, making navigation much more efficient. The <code>pageshow</code> and <code>pagehide</code> events are used when switching from a page in the cache, while the <code>load</code> and <code>unload</code> events are used only when the page is loaded or unloaded.
</p><p>For more information see <a href="en/Using_Firefox_1.5_caching">Using Firefox 1.5 caching</a>.
</p>
<h3 name="tabIndex"> <code>tabIndex</code> </h3>
<p>The <code>tabIndex</code> property is now applied to most elements.
</p>
<h3 name=".3Cradiogroup.3E"> <code>&lt;radiogroup&gt;</code> </h3>
<p>Setting the value property on the &lt;radiogroup&gt; element selects the &lt;radio&gt; element in the group with the corresponding value.
</p>
<h3 name="Dialog:_defaultButton_property"> Dialog: <code>defaultButton</code> property </h3>
<p>The <code>&lt;dialog&gt;</code> binding now supports the <code>defaultButton</code> property. Setting this property changes the default button of the dialog. It can be set either to one of the buttons of the <code>&lt;dialog&gt;</code> binding (using their names); or to <code>none</code> - in which case no button is set to be the default.
</p>
<h3 name="Button:_icon_property"> Button: <code>icon</code> property </h3>
<p>The icon property on a button may be used to set stock icons on a button, used on some platforms. For instance &lt;button icon="help"&gt; will create a button with a help icon. This is used typically on GNOME systems where possible values are:
<code>accept</code>, <code>cancel</code>, <code>help</code>, <code>open</code>, <code>save</code>, <code>find</code>, <code>clear</code>, <code>yes</code>, <code>no</code>, <code>apply</code>, <code>close</code>, <code>print</code>, <code>add</code>, <code>remove</code>, <code>refresh</code>, <code>go-forward</code>, <code>go-back</code>, <code>properties</code>, <code>select-font</code>, <code>select-color</code>, <code>network</code>.
</p>
<h3 name=".3Cmenulist.3E"> <code>&lt;menulist&gt;</code> </h3>
<p>Items in a &lt;menulist&gt; support the description attribute to allow for extra descriptive text to appear beside an item's label. The menulist modification methods appendItem and insertItemAt take an extra description argument when creating items this way.
</p>
<h3 name=".3Clistbox.3E"> <code>&lt;listbox&gt;</code> </h3>
<p>The <code>removeItemAt</code> method was sometime non zero-based due to a bug ({{template.Bug(236068)}}). This has been fixed in Firefox 1.5 and all code depending on this non zero-based behaviour should be changed.
</p>
<h3 name=".3Cstringbundle.3E"> <code>&lt;stringbundle&gt;</code> </h3>
<p>The &lt;stringbundle&gt; element has a strings property which may be used to retrieve an enumeration of all of the strings in the bundle.
</p>
<h3 name="Draggable_tabs"> Draggable tabs </h3>
<p>The tabbrowser now allows the user to rearrange tabs by dragging them.
</p>
<h3 name=".3Ctabbox.3E"> <code>&lt;tabbox&gt;</code> </h3>
<p>The &lt;tabbox&gt; element now supports a <code>selectedIndex</code> attribute to specify the tab to be selected by default.
</p>
<h3 name="Loading_overlays_dynamically"> Loading overlays dynamically </h3>
<p>XUL now supports loading <a href="en/XUL_Overlays">overlays</a> dynamically with the <code><a href="en/DOM/document.loadOverlay">document.loadOverlay</a></code> function.
</p>
<div class="originaldocinfo">
<h3 name="Original_Document_Information"> Original Document Information </h3>
<ul><li> Author(s): Neil Deakin
</li></ul>
</div>
{{ wiki.languages( { "fr": "fr/Modifications_XUL_pour_Firefox_1.5", "ja": "ja/XUL_Changes_for_Firefox_1.5", "pl": "pl/Zmiany_w_XUL-u_w_Firefoksie_1.5" } ) }}
Revert to this revision