mozilla

Version 270891 von Firefox_3.5_für_Entwickler

  • Adressname der Version: Firefox_3.5_für_Entwickler
  • Titel der Version: Firefox 3.5 für Entwickler
  • ID der Version: 270891
  • Erstellt:
  • Autor: niels
  • Aktuelle Version? Nein
  • Kommentar 135 words added, 112 words removed
Schlagwörter: 

Inhalt der Version

Ein Firefox wurde eine nicht geringe Zahl ein neuen Bestandteilen eingeführt, ebenfalls zusätzliche und verbesserte Unterstützung für eine Vielzahl von Webstandards. Dieser Artikel stellt eine umfangreiche Liste mit Links zu anderen Artikeln über die Hauptverbesserungen. 

Neue Bestandteile in Firefox 3.5 für Entwickler

Für Webseiten und Webanwendungsentwickler.

HTML 5-Unterstützung

die audio und video-Elemente
Firefox 3.5 fügt Unterstützung für die HTML 5 audio und video-Elemente.
Offline-Resourcen
Firefox 3.5 unterstützt nun vollständig die HTML 5 Offline-Resources-Spezifikation.
Drag and Drop
Die HTML 5 Drag and Drop API bietet Unterstüztung für das Drag and Drop von Elementen innerhalb einer Webseite und zwischen verschiedenen Webseiten. Dies beinhaltet auch eine einfachere API für die Benutzung von Erweiterungen und Mozilla-basierten Anwendungen.

Neu unterstütze CSS-Bestandteile

Unterstützung für Ladbare Schriftarten
Die neue {{ cssxref("@font-face") }} @Regel ermöglicht es Webseiten, ladbare Schriftarten zu enthalten, sodass die Seiten genauso gerendert werden können, wie es der Autor der Seite sich es dachte.
CSS Medienanfragen
Firefox 3.5 unterstützt nun CSS Medienanfragen, die die Unterstützung für medienabhängige Seiten verbessern.
{{ cssxref(":before") }} and {{ cssxref(":after") }} updated to CSS 2.1
Die :before und :after Pseudo-Elemente wurden auf volle CSS-2.1-Unterstützung aktualisiert; hinzugefügte Unterstützung für position, float, list-style-*, und einige display-Eigenschaften.
opacity
Die -moz-opacity Mozilla Erweiterung zu CSS wurde zu Gunsten der Standard opacity-Eigenschaften entfernt.
text-shadow
Die text-shadow-Eigenschaft, die es Webinhalten erlaubt, Schatteneffekte zu spezifiert, anzuwenden auf Text und Text-Dekorationen, wird nun unterstützt.
word-wrap
Diese neu unterstützte Eigenschaft erlaubt es, zu spezifizieren, ob Linien innerhalb von Worten umgebrochen werden dürfen oder nicht ob Überläufe zu verhindern, wenn eine Zeichenkette zu lang ist.
-moz-box-shadow
-moz-border-image
-moz-column-rule
-moz-column-rule-width
-moz-column-rule-style
-moz-column-rule-color
Für all jene Eigenschaften unterstützt nun Firefox 3.5.
Der -moz-nativehyperlinktext Farbenwert
Dieser Farbenwert lässt die native Farbe von Hyperlinks verändern.
Die neuen -moz-window-shadow und -moz-system-metric(mac-graphite-theme)-Eigenschaften
Diese neuen CSS-Eigenschaften wurden hinzugefügt, um das Theming zu erleichtern.
Neue Werte für -moz-appearance
-moz-win-glass und -moz-mac-unified-toolbar wurden als Werte zu -moz-appearance hinzugefügt.
Benutzung von CSS-Transformationen
Firefox 3.5 unterstützt CSS-Transformationen.  Siehe -moz-transform und -moz-transform-origin für Details.
:nth-child
:nth-last-child
:nth-of-type
:nth-last-of-type
:first-of-type
:last-of-type
:only-of-type
Diese Selektoren sind in Firefox 3.5 neu unterstützt.

New DOM features

localStorage
Firefox 3.5 fügt Unterstützung für die Web Storage localStorage-Eigenschaft hinzu, welche einen Weg für Webanwendungen beinhaltet, Daten local auf dem Computer des Clienten zu speichern.
Benutzung von DOM-Workers
Firefox 3.5 unterstützt DOM-Workers um einfache Multi-Threading-Unterstützung in Webanwendungen zu ermöglichen.
Benutzung von Geolocation
Firefox 3.5 unterstützt  die Geolocation-API, die es Webanwendungen erlaubt, Informationen über die aktuelle Position des Benutzers zu erhalten, vorrausgesetzt, ein Provider für diese Informationen ist installiert und aktiviert.
Lokation von DOM-Elements über Selektoren
Die Selektoren-API erlaubt es, ein Dokument nach Elementen, die einer bestimmten Auswahlregel gerecht werden, abzufragen.
Mausgesten-Events
Firefox 3.5 unterstützt Mausgesten-Events wie z.B. Trackpad-Swipes.
Das NodeIterator-Objekt
Das NodeIterator-Objekt beinhaltet unterstützung für das iterieren über eine Liste der Knoten in einem DOM-Unterbaum.
Das NodeIteratorMozAfterPaint-Event
This new DOM event is sent after painting updates in windows.
The MozMousePixelScroll event
This new DOM event allows detection of pixel-based mouse scroll wheel events instead of line-based scroll events.

New JavaScript features

New in JavaScript 1.8.1
An overview of all the changes in JavaScript 1.8.1.
Object.getPrototypeOf()
This new method returns the prototype of a specified object.
Using native JSON
Firefox 3.5 has native support for JSON.
New trim methods on the String object
The String object now has trim(), trimLeft(), and trimRight() methods.

Networking

Cross-site access controls for HTTP
In Firefox 3.5, it's now possible for HTTP requests, including those made by XMLHttpRequest, to work across domains if the server supports it.
Progress events for XMLHttpRequest
Progress events are now offered to enable extensions to monitor the progress of requests.
Improved Synchronous XMLHttpRequest support
DOM Timeout and Input Events are now suppressed during a synchronous XMLHttpRequest.
Controlling DNS prefetching
Firefox 3.5 provides DNS prefetching, whereby it performs domain name resolution ahead of time for links included in the current page, in order to save time when links are actually clicked.  This article describes how you can tune your web site to disable prefetching, or to adjust how prefetching operates.

New Canvas features

HTML 5 text API for canvas elements
Canvas elements now support the HTML 5 text API.
Shadow effects in a canvas
Canvas shadow effects are now supported.
createImageData()
The canvas method createImageData() is now supported, allowing code to specifically create an ImageData object instead of requiring it to be done automatically. This can improve performance of other ImageData methods by preventing them from having to create the object.
moz-opaque attribute
Added the moz-opaque DOM attribute, which lets the canvas know whether or not translucency will be a factor.  If the canvas knows there's no translucency, painting performance can be optimized.

New SVG features

Applying SVG effects to HTML content
You can now apply SVG effects to HTML and XHTML content; this article describes how.

Miscellaneous new features

ICC color correction in Firefox
Firefox 3.5 now supports ICC color correction for tagged images.
The defer attribute is now supported on script elements
This attribute indicates to the browser that it may choose to continue to parse and render the page without waiting for the script to finish executing.

Other improvements

  • The ch unit can now be used anywhere that accepts a unit of length; "1ch" is the width of the "0" (zero) character.
  • The white-space property now accepts the pre-line value.
  • The Text node's wholeText property and replaceWholeText() method have been implemented.
  • The property element.children has been added. It returns a collection of child elements of the given element.
  • The Element Traversal API is now supported by the DOM Element object.
  • HTML nodes may now be cloned using cloneNode().
  • The non-standard getBoxObjectFor() DOM method has been removed. You should be using getBoundingClientRect() instead.
  • Dispatched DOM events can now be re-dispatched.  This makes Firefox 3.5 pass Acid 3 test 30.
  • Improvements have been made to DOM 2 Range handling.
  • In non-chrome scope, caught objects in exceptions are now the actual thrown object instead of an XPConnect wrapper containing the thrown object.
  • SVG ID references are now live.
  • SVG filters now work for foreignObject.
  • The GetSVGDocument() method has been added to object and iframe elements for compatibility.
  • Implicit setting of properties in object and array initializers no longer execute setters in JavaScript. See the blog post Object and array initializers should not invoke setters when evaluated for details.
  • The gDownloadLastDir.path variable has been renamed to gDownloadLastDir.file since it refers to an {{ interface("nsIFile") }}, not a path.
  • The gDownloadLastDirPath variable has been renamed to gDownloadLastDirFile since it refers to an {{ interface("nsIFile") }}, not a path.
  • Starting in Firefox 3.5, you can no longer use data: bindings in chrome packages that get XPCNativeWrapper automation.

For XUL and add-on developers

If you're an extension developer, you should start by reading Updating extensions for Firefox 3.5, which offers a helpful overview of what changes may affect your extension.

New components and functionality

Supporting private browsing mode
Firefox 3.5 offers Private Browsing mode, which doesn't record the user's activities.  Extensions may support private browsing following the guidelines offered by this article.
Security changes in Firefox 3.5
This article covers security-related changes in Firefox 3.5.
Theme changes in Firefox 3.5
This article covers theme-related changes in Firefox 3.5.
Monitoring WiFi access points
Code with UniversalXPConnect privileges can now monitor the list of available access points, getting information on their SSIDs, MAC addresses, and signal strength.  This can be used in tandem with Geolocation to offer WiFi-based location service.

Notable changes and improvements

  • The XUL textbox widget now offers a search type, for use as search fields.
  • In order to support dragging and dropping tabs between windows, the browser widget now has a swapDocShells() method.
  • Added the level attribute to the panel element; this specifies whether panels appear on top of other applications, or just on top of the window the panel is contained within.
  • XUL elements now support the clientXXX and scrollXXX properties.
  • keysets now include a disabled attribute.
  • In addition, keysets can now be removed using the node's removeChild() method.
  • mozIStorageStatement had the initialize() method removed; consumers should use the createStatement() method instead to get a new statement object.
  • The Storage API now offers support for asynchronous requests.
  • The nsICookie2 interface now exposes the time at which cookies were created in its new creationTime attribute.
  • Added a flag to nsIProtocolHandler (URI_IS_LOCAL_RESOURCE) that is checked during chrome registration to make sure a protocol is allowed to be registered.
  • Firefox now looks for plugins in /usr/lib/mozilla/plugins on Linux, as well as the previously supported locations.
  • The plugin API has been updated to include support for private browsing mode; you may now use NPN_GetValue() to query the state of private browsing mode using the variable NPNVprivateModeBool.

New features for end users

User experience

Location aware browsing
If you choose, you may allow Firefox 3.5 to share information about your current location with web sites.  Firefox 3.5 can use information about the network you're connected to to share your location. Of course, it asks for your permission before doing so, to ensure your privacy.
Open audio and video support
Firefox 3.5 supports embedded video and audio using the open Ogg format, as well as WAV for audio. No plugins, no confusing error messages about needing to install something or other that turns out not to be available on your platform anyway.
Local data storage
Web applications can now use Web Storage's local storage capabilities to store data on your computer.  This is great for anything from site preferences to more complex data.

Security and privacy

Private Browsing
Need to use someone else's computer? Switch on Private Browsing mode and nothing will be recorded about your session, including cookies, history, and any other potentially private information.
Better privacy controls
The Privacy preference pane has been completely redesigned to offer users more control over their private information. Users can choose to retain or discard anything including history information, cookies, downloads, and form field information.  In addition, users can specify whether or not to include history and/or bookmarks in the location bar's automated suggestions, so you can keep private web addresses from popping up unexpectedly while typing in the location bar.

Performance

Faster JavaScript performance
JavaScript, the "J" in "AJAX," is sped up dramatically in Firefox 3.5 with the new TraceMonkey JavaScript engine.  Web applications are much faster than in Firefox 3.
Faster page rendering
Web content draws faster in Firefox 3.5, thanks to technologies such as "speculative parsing." Your users don't need to know what it means, other than "it makes things draw faster."

See also

{{ languages( {"ja":"Ja/Firefox_3.5_for_developers",  "fr": "fr/Firefox_3.5_pour_les_développeurs", "pt": "pt/Firefox_3.5_para_desenvolvedores", "zh-tw": "Zh_tw/Firefox_3.1_技術文件"} ) }}

 

Quelltext der Version

<p>Ein Firefox wurde eine nicht geringe Zahl ein neuen Bestandteilen eingeführt, ebenfalls zusätzliche und verbesserte Unterstützung für eine Vielzahl von Webstandards. Dieser Artikel stellt eine umfangreiche Liste mit Links zu anderen Artikeln über die Hauptverbesserungen. </p>
<h2>Neue Bestandteile in Firefox 3.5 für Entwickler</h2>
<h3>Für Webseiten und Webanwendungsentwickler.</h3>
<h4>HTML 5-Unterstützung</h4>
<dl> <dt><a class="internal" href="/En/Using_audio_and_video_in_Firefox" title="En/Using audio and video in Firefox">die audio und video-Elemente</a><br> </dt> <dd>Firefox 3.5 fügt Unterstützung für die HTML 5 <a class="internal" href="/En/HTML/Element/Audio" title="En/HTML/Element/Audio"><code>audio</code></a> und <a class="internal" href="/En/HTML/Element/Video" title="En/HTML/Element/Video"><code>video</code></a>-Elemente.<br> </dd> <dt><a class="internal" href="/en/Offline_resources_in_Firefox" title="En/Offline resources in Firefox">Offline-Resourcen</a><br> </dt> <dd>Firefox 3.5 unterstützt nun vollständig die HTML 5 Offline-Resources-Spezifikation. <br> </dd> <dt><a class="internal" href="/En/DragDrop/Drag_and_Drop" title="En/DragDrop/Drag and Drop">Drag and Drop</a><br> </dt> <dd>Die HTML 5 Drag and Drop API bietet Unterstüztung für das Drag and Drop von Elementen innerhalb einer Webseite und zwischen verschiedenen Webseiten. Dies beinhaltet auch eine einfachere API für die Benutzung von Erweiterungen und Mozilla-basierten Anwendungen.</dd>
</dl>
<h4>Neu unterstütze CSS-Bestandteile</h4>
<dl> <dt><a class="internal" href="/en/CSS/@font-face" title="En/CSS/@font-face">Unterstützung für Ladbare Schriftarten</a> </dt> <dd>Die neue {{ cssxref("@font-face") }} @Regel ermöglicht es Webseiten, ladbare Schriftarten zu enthalten, sodass die Seiten genauso gerendert werden können, wie es der Autor der Seite sich es dachte. <br> </dd> <dt><a class="internal" href="/En/CSS/Media_queries" title="En/CSS/Media queries">CSS Medienanfragen</a><br> </dt> <dd>Firefox 3.5 unterstützt nun CSS Medienanfragen, die die Unterstützung für medienabhängige Seiten verbessern. <br> </dd> <dt>{{ cssxref(":before") }} and {{ cssxref(":after") }} updated to CSS 2.1<br> </dt> <dd>Die <code>:before</code> und <code>:after</code> Pseudo-Elemente wurden auf volle CSS-2.1-Unterstützung aktualisiert; hinzugefügte Unterstützung für <code>position</code>, <code>float</code>, <code>list-style-*</code>, und einige <code>display</code>-Eigenschaften.</dd> <dt><a class="internal" href="/en/CSS/opacity" title="En/CSS/Opacity"><code>opacity</code></a></dt> <dd>Die <code>-moz-opacity</code> Mozilla Erweiterung zu CSS wurde zu Gunsten der Standard <code>opacity</code>-Eigenschaften entfernt.</dd> <dt><a class="internal" href="/en/CSS/text-shadow" title="En/CSS/Text-shadow"><code>text-shadow</code></a></dt> <dd>Die <code>text-shadow</code>-Eigenschaft, die es Webinhalten erlaubt, Schatteneffekte zu spezifiert, anzuwenden auf Text und Text-Dekorationen, wird nun unterstützt. <br> </dd> <dt><a class="internal" href="/En/CSS/Word-wrap" title="En/CSS/Word-wrap"><code>word-wrap</code></a></dt> <dd>Diese neu unterstützte Eigenschaft erlaubt es, zu spezifizieren, ob Linien innerhalb von Worten umgebrochen werden dürfen oder nicht ob Überläufe zu verhindern, wenn eine Zeichenkette zu lang ist. <br> </dd> <dt><a class="internal" href="/en/CSS/-moz-box-shadow" title="En/CSS/-moz-box-shadow"><code>-moz-box-shadow</code></a></dt> <dt><a class="internal" href="/En/CSS/-moz-border-image" title="En/CSS/-moz-border-image"><code>-moz-border-image</code></a><br> </dt> <dt><a class="internal" href="/En/CSS/-moz-column-rule" title="En/CSS/-moz-column-rule"><code>-moz-column-rule</code></a><br> </dt> <dt><a class="internal" href="/En/CSS/-moz-column-rule-width" title="En/CSS/-moz-column-rule-width"><code>-moz-column-rule-width</code></a><br> </dt> <dt><a class="internal" href="/En/CSS/-moz-column-rule-style" title="En/CSS/-moz-column-rule-style"><code>-moz-column-rule-style</code></a><br> </dt> <dt><a class="internal" href="/En/CSS/-moz-column-rule-color" title="En/CSS/-moz-column-rule-color"><code>-moz-column-rule-color</code></a><br> </dt> <dd>Für all jene Eigenschaften unterstützt nun Firefox 3.5. <br> </dd> <dt><a class="internal" href="/en/CSS/color#Mozilla_Specific_Colors" title="En/CSS/color#Mozilla Specific Colors"> Der <code>-moz-nativehyperlinktext</code> Farbenwert</a><br> </dt> <dd>Dieser Farbenwert lässt die native Farbe von Hyperlinks verändern. <br> </dd> <dt>Die neuen <a class="internal" href="/En/CSS/-moz-window-shadow" title="En/CSS/-moz-window-shadow"><code>-moz-window-shadow</code></a> und <a class="internal" href="/En/CSS/:-moz-system-metric(mac-graphite-theme)" title="En/CSS/:-moz-system-metric(mac-graphite-theme)"><code>-moz-system-metric(mac-graphite-theme)</code></a>-Eigenschaften<br> </dt> <dd>Diese neuen CSS-Eigenschaften wurden hinzugefügt, um das Theming zu erleichtern. <br> </dd> <dt>Neue Werte für <a class="internal" href="/en/CSS/-moz-appearance" title="En/CSS/-moz-appearance"><code>-moz-appearance</code></a><br> </dt> <dd><code>-moz-win-glass</code> und <code>-moz-mac-unified-toolbar</code> wurden als Werte zu <code>-moz-appearance</code> hinzugefügt.<br> </dd> <dt><a class="internal" href="/En/CSS/Using_CSS_transforms" title="En/CSS/Using CSS transforms">Benutzung von CSS-Transformationen</a><br> </dt> <dd>Firefox 3.5 unterstützt CSS-Transformationen.  Siehe <a class="internal" href="/En/CSS/-moz-transform" title="En/CSS/-moz-transform"><code>-moz-transform</code></a> und <a class="internal" href="/En/CSS/-moz-transform-origin" title="En/CSS/-moz-transform-origin"><code>-moz-transform-origin</code></a> für Details. <br> </dd> <dt><a class="internal" href="/en/CSS/:nth-child" title="En/CSS/:nth-child"><code>:nth-child</code></a><br> </dt> <dt><code><a class="internal" href="/en/CSS/:nth-last-child" title="En/CSS/:nth-last-child">:nth-last-child</a><br> </code></dt> <dt><code><a class="internal" href="/en/CSS/:nth-of-type" title="En/CSS/:nth-of-type">:nth-of-type</a><br> </code></dt> <dt><code><a class="internal" href="/en/CSS/:nth-last-of-type" title="En/CSS/:nth-last-of-type">:nth-last-of-type</a><br> </code></dt> <dt><code><a class="internal" href="/en/CSS/:first-of-type" title="En/CSS/:first-of-type">:first-of-type</a><br> </code></dt> <dt><code><a class="internal" href="/en/CSS/:nth-last-of-type" title="En/CSS/:nth-last-of-type">:last-of-type</a><br> </code></dt> <dt><a class="internal" href="/en/CSS/:only-of-type" title="En/CSS/:only-of-type"><code>:only-of-type</code></a><br> </dt> <dd>Diese Selektoren sind in Firefox 3.5 neu unterstützt. <br> </dd>
</dl><h4>New DOM features</h4>
<dl> <dt><a class="internal" href="/en/DOM/Storage#localStorage" title="en/DOM/Storage#localStorage">localStorage</a><br> </dt> <dd>Firefox 3.5 fügt Unterstützung für die Web Storage <code>localStorage</code>-Eigenschaft hinzu, welche einen Weg für Webanwendungen beinhaltet, Daten local auf dem Computer des Clienten zu speichern. <br> </dd> <dt><a class="internal" href="/En/Using_web_workers" title="En/Using DOM workers">Benutzung von DOM-Workers</a><br> </dt> <dd>Firefox 3.5 unterstützt DOM-Workers um einfache Multi-Threading-Unterstützung in Webanwendungen zu ermöglichen. <br> </dd> <dt><a class="internal" href="/En/Using_geolocation" title="En/Using geolocation">Benutzung von Geolocation</a><br> </dt> <dd>Firefox 3.5 unterstützt  die Geolocation-API, die es Webanwendungen erlaubt, Informationen über die aktuelle Position des Benutzers zu erhalten, vorrausgesetzt, ein Provider für diese Informationen ist installiert und aktiviert. <br> </dd> <dt><a class="internal" href="/En/DOM/Locating_DOM_elements_using_selectors" title="en/DOM/Locating DOM elements using selectors">Lokation von DOM-Elements über Selektoren</a><br> </dt> <dd>Die Selektoren-API erlaubt es, ein Dokument nach Elementen, die einer bestimmten Auswahlregel gerecht werden, abzufragen. <br> </dd> <dt><a class="internal" href="/En/DOM/Mouse_gesture_events" title="En/DOM/Mouse gesture events">Mausgesten-Events</a><br> </dt> <dd>Firefox 3.5 unterstützt Mausgesten-Events wie z.B. Trackpad-Swipes.</dd> <dt><a class="internal" href="/En/DOM/NodeIterator" title="En/DOM/NodeIterator">Das <code>NodeIterator</code>-Objekt</a><br> </dt> <dd>Das <code>NodeIterator</code>-Objekt beinhaltet unterstützung für das iterieren über eine Liste der Knoten in einem DOM-Unterbaum. <br> </dd> <dt><a class="internal" href="/en/Gecko-Specific_DOM_Events#MozAfterPaint" title="en/Gecko-Specific DOM Events#MozAfterPaint">Das </a><a class="internal" href="/En/DOM/NodeIterator" title="En/DOM/NodeIterator">NodeIterator</a><a class="internal" href="/en/Gecko-Specific_DOM_Events#MozAfterPaint" title="en/Gecko-Specific DOM Events#MozAfterPaint">MozAfterPaint-Event</a><br> </dt> <dd>This new DOM event is sent after painting updates in windows.</dd> <dt><a class="internal" href="/en/Gecko-Specific_DOM_Events#MozMousePixelScroll" title="en/Gecko-Specific DOM Events#MozMousePixelScroll">The MozMousePixelScroll event</a><br> </dt> <dd>This new DOM event allows detection of pixel-based mouse scroll wheel events instead of line-based scroll events.</dd>
</dl><h4>New JavaScript features</h4>
<dl> <dt><a class="internal" href="/En/New_in_JavaScript_1.8.1" title="En/New in JavaScript 1.8.1">New in JavaScript 1.8.1</a><br> </dt> <dd>An overview of all the changes in JavaScript 1.8.1.</dd> <dt><a class="internal" href="/En/Core_JavaScript_1.5_Reference/Global_Objects/Object/GetPrototypeOf" title="En/Core JavaScript 1.5 Reference/Global Objects/Object/GetPrototypeOf"><code>Object.getPrototypeOf()</code></a><br> </dt> <dd>This new method returns the prototype of a specified object.</dd> <dt><a class="internal" href="/En/Using_native_JSON" title="En/Using JSON in Firefox">Using native JSON</a><br> </dt> <dd>Firefox 3.5 has native support for <a class="internal" href="/en/JSON" title="En/JSON">JSON</a>.</dd> <dt>New trim methods on the String object<br> </dt> <dd>The <a class="internal" href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String" title="en/Core JavaScript 1.5 Reference/Global Objects/String"><code>String</code></a> object now has <a class="internal" href="../../../../En/Core_JavaScript_1.5_Reference/Global_Objects/String/Trim" rel="internal"><code>trim()</code></a>, <a class="internal" href="../../../../En/Core_JavaScript_1.5_Reference/Global_Objects/String/TrimLeft" rel="internal"><code>trimLeft()</code></a>, and <a class="internal" href="../../../../En/Core_JavaScript_1.5_Reference/Global_Objects/String/TrimRight" rel="internal"><code>trimRight()</code></a> methods.</dd>
</dl>
<h4>Networking</h4>
<dl> <dt><a class="internal" href="/En/HTTP_access_control" title="En/HTTP access control">Cross-site access controls for HTTP</a><br> </dt> <dd>In Firefox 3.5, it's now possible for HTTP requests, including those made by <a class="internal" href="/en/XMLHttpRequest" title="En/XMLHttpRequest"><code>XMLHttpRequest</code></a>, to work across domains if the server supports it.</dd> <dt><a class="internal" href="/En/Using_XMLHttpRequest#Monitoring_progress" title="En/Using XMLHttpRequest#Monitoring progress">Progress events for </a><code><a class="internal" href="/En/Using_XMLHttpRequest#Monitoring_progress" title="En/Using XMLHttpRequest#Monitoring progress">XMLHttpRequest</a></code><br> </dt> <dd>Progress events are now offered to enable extensions to monitor the progress of requests.</dd> <dt>Improved Synchronous <code>XMLHttpRequest</code> support</dt> <dd><a class="link-https" href="https://bugzilla.mozilla.org/show_bug.cgi?id=340345" title="https://bugzilla.mozilla.org/show_bug.cgi?id=340345">DOM Timeout</a> and <a class="link-https" href="https://bugzilla.mozilla.org/show_bug.cgi?id=333198" title="https://bugzilla.mozilla.org/show_bug.cgi?id=333198">Input Events</a> are now suppressed during a synchronous <code>XMLHttpRequest</code>.<br> </dd> <dt><a class="internal" href="/En/Controlling_DNS_prefetching" title="en/Controlling DNS prefetching">Controlling DNS prefetching</a><br> </dt> <dd>Firefox 3.5 provides DNS prefetching, whereby it performs domain name resolution ahead of time for links included in the current page, in order to save time when links are actually clicked.  This article describes how you can tune your web site to disable prefetching, or to adjust how prefetching operates.</dd>
</dl>
<h4>New Canvas features</h4>
<dl> <dt><a class="internal" href="/en/Drawing_text_using_a_canvas" title="en/Drawing text using a canvas">HTML 5 text API for <code>canvas</code> elements</a><br> </dt> <dd>Canvas elements now support the HTML 5 text API.</dd> <dt><a class="internal" href="/en/Canvas_tutorial/Applying_styles_and_colors#Shadows" title="en/Canvas tutorial/Applying styles and colors#Shadows">Shadow effects in a <code>canvas</code></a><br> </dt> <dd>Canvas shadow effects are now supported.</dd> <dt><a class="internal" href="/En/HTML/Canvas/Pixel_manipulation_with_canvas#Creating_an_ImageData_object" title="En/HTML/Canvas/Pixel manipulation with canvas#Creating an ImageData object"><code>createImageData()</code></a><br> </dt> <dd>The canvas method <code>createImageData()</code> is now supported, allowing code to specifically create an <code>ImageData</code> object instead of requiring it to be done automatically. This can improve performance of other <code>ImageData</code> methods by preventing them from having to create the object.<br> </dd> <dt><code>moz-opaque</code> attribute</dt> <dd>Added the <code>moz-opaque</code> DOM attribute, which lets the canvas know whether or not translucency will be a factor.  If the canvas knows there's no translucency, painting performance can be optimized.</dd>
</dl>
<h4>New SVG features</h4>
<dl> <dt><a class="internal" href="/En/Applying_SVG_effects_to_HTML_content" title="en/Applying SVG effects to HTML content">Applying SVG effects to HTML content</a><br> </dt> <dd>You can now apply SVG effects to HTML and XHTML content; this article describes how.</dd>
</dl>
<h4>Miscellaneous new features</h4>
<dl> <dt><a class="internal" href="/En/ICC_color_correction_in_Firefox" title="en/ICC color correction in Firefox">ICC color correction in Firefox</a></dt> <dd>Firefox 3.5 now supports ICC color correction for tagged images.</dd> <dt>The <code>defer</code> attribute is now supported on <a class="internal" href="/En/HTML/Element/Script" title="En/HTML/Element/script"><code>script</code></a> elements</dt> <dd>This attribute indicates to the browser that it <em>may</em> choose to continue to parse and render the page without waiting for the script to finish executing.</dd>
</dl>
<h3>Other improvements</h3>
<ul> <li>The<code> ch </code>unit can now be used anywhere that accepts a <a class="internal" href="/en/CSS/length" title="en/CSS/length">unit of length</a>; "<code>1ch</code>" is the width of the "0" (zero) character.</li> <li>The <a class="internal" href="/en/CSS/white-space" title="en/CSS/white-space"><code>white-space</code></a> property now accepts the<code> pre-line </code>value.</li> <li>The Text node's <code><a class="internal" href="../../../../En/DOM/Text.wholeText" rel="internal">wholeText</a></code> property and <code><a class="internal" href="../../../../En/DOM/Text.replaceWholeText" rel="internal">replaceWholeText()</a></code> method have been implemented.</li> <li>The property <code><a class="internal" href="../../../../En/DOM/Element.children" rel="internal">element.children</a></code> has been added. It returns a <em>collection</em> of child elements of the given element.</li> <li>The Element Traversal API is now supported by the DOM <a class="internal" href="../../../../en/DOM/element" rel="internal">Element</a> object.</li> <li>HTML nodes may now be cloned using <a class="internal" href="/En/DOM/Node/CloneNode" title="En/DOM/Node/CloneNode"><code>cloneNode()</code></a>.</li> <li>The non-standard <code>getBoxObjectFor()</code> DOM method has been removed. You should be using <a class="internal" href="/en/DOM/element.getBoundingClientRect" title="En/DOM/Element.getBoundingClientRect"><code>getBoundingClientRect()</code></a> instead.</li> <li>Dispatched DOM events can now be re-dispatched.  This makes Firefox 3.5 pass Acid 3 test 30.</li> <li>Improvements have been made to DOM 2 Range handling.</li> <li>In non-chrome scope, caught objects in exceptions are now the actual thrown object instead of an <a class="internal" href="/en/XPConnect" title="En/XPConnect">XPConnect</a> wrapper containing the thrown object.</li> <li>SVG ID references are now live.</li> <li>SVG filters now work for <code>foreignObject</code>.</li> <li>The <code>GetSVGDocument()</code> method has been added to <a class="internal" href="/en/HTML/Element/object" title="En/HTML/Element/Object"><code>object</code></a> and <a class="internal" href="/en/HTML/Element/iframe" title="en/HTML/Element/Iframe"><code>iframe</code></a> elements for compatibility.</li> <li>Implicit setting of properties in object and array initializers no longer execute setters in JavaScript. See the blog post <a class="external" href="/web-tech/2009/04/29/object-and-array-initializers-should-not-invoke-setters-when-evaluated" title="https://developer.mozilla.org/editor/fckeditor/core/editor/web-tech/2009/04/29/object-and-array-initializers-should-not-invoke-setters-when-evaluated/">Object and array initializers should not invoke setters when evaluated</a> for details.</li> <li>The <code>gDownloadLastDir.path</code> variable has been renamed to <code>gDownloadLastDir.file</code> since it refers to an {{ interface("nsIFile") }}, not a path.</li> <li>The <code>gDownloadLastDirPath</code> variable has been renamed to <code>gDownloadLastDirFile</code> since it refers to an {{ interface("nsIFile") }}, not a path.</li> <li>Starting in Firefox 3.5, you can no longer use <code>data:</code> bindings in chrome packages that get <code>XPCNativeWrapper</code> automation.</li>
</ul>
<h3>For XUL and add-on developers</h3>
<p>If you're an extension developer, you should start by reading <a class="internal" href="/En/Updating_extensions_for_Firefox_3.5" title="En/Updating extensions for Firefox 3.5">Updating extensions for Firefox 3.5</a>, which offers a helpful overview of what changes may affect your extension.</p>
<h4>New components and functionality</h4>
<dl> <dt><a class="internal" href="/En/Supporting_private_browsing_mode" title="En/Supporting private browsing mode">Supporting private browsing mode</a><br> </dt> <dd>Firefox 3.5 offers Private Browsing mode, which doesn't record the user's activities.  Extensions may support private browsing following the guidelines offered by this article.</dd> <dt><a class="internal" href="/En/Security_changes_in_Firefox_3.5" title="En/Security changes in Firefox 3.5">Security changes in Firefox 3.5</a><br> </dt> <dd>This article covers security-related changes in Firefox 3.5.</dd> <dt><a class="internal" href="/En/Theme_changes_in_Firefox_3.5" title="En/Theme changes in Firefox 3.5">Theme changes in Firefox 3.5</a><br> </dt> <dd>This article covers theme-related changes in Firefox 3.5.</dd> <dt><a class="internal" href="/En/Monitoring_WiFi_access_points" title="En/Monitoring WiFi access points">Monitoring WiFi access points</a><br> </dt> <dd>Code with UniversalXPConnect privileges can now monitor the list of available access points, getting information on their SSIDs, MAC addresses, and signal strength.  This can be used in tandem with Geolocation to offer WiFi-based location service.<br> </dd>
</dl>
<h4>Notable changes and improvements</h4>
<ul> <li>The XUL <code><a class="internal" href="../../../../en/XUL/textbox" rel="internal">textbox</a></code> widget now offers a <code><a class="internal" href="../../../../en/XUL/Attribute/textbox.type" rel="internal">search</a></code> type, for use as search fields.</li> <li>In order to support dragging and dropping tabs between windows, the <a class="internal" href="/en/XUL/browser" title="En/XUL/Browser"><code>browser</code></a> widget now has a <a class="internal" href="/En/XUL/Method/SwapDocShells" title="En/XUL/Method/SwapDocShells"><code>swapDocShells()</code></a> method.</li> <li>Added the <a class="internal" href="/En/XUL/Attribute/Panel.level" title="en/XUL/Attribute/panel.level"><code>level</code></a> attribute to the <a class="internal" href="/en/XUL/panel" title="En/XUL/Panel"><code>panel</code></a> element; this specifies whether panels appear on top of other applications, or just on top of the window the panel is contained within.</li> <li>XUL elements now support the <code>clientXXX</code> and <code>scrollXXX</code> properties.</li> <li><a class="internal" href="/en/XUL/keyset" title="En/XUL/Keyset"><code>keyset</code></a>s now include a <code>disabled</code> attribute.</li> <li>In addition, <code>keyset</code>s can now be removed using the node's <a class="internal" href="/En/DOM/Node.removeChild" title="En/DOM/Node.removeChild"><code>removeChild()</code></a> method.</li> <li><span class="lang lang-en"><code><a href="../../../../en/mozIStorageStatement" rel="internal">mozIStorageStatement</a></code> </span> had the <code>initialize()</code> method removed; consumers should use the <span class="lang lang-en"><code><a href="../../../../en/mozIStorageConnection#createStatement%28%29" rel="internal">createStatement()</a></code> </span> method instead to get a new statement object.</li> <li>The <a class="internal" href="/en/Storage" title="En/Storage">Storage</a> API now offers support for asynchronous requests.</li> <li>The <a class="internal" href="/en/nsICookie2" title="En/NsICookie2"><code>nsICookie2</code></a> interface now exposes the time at which cookies were created in its new <code>creationTime</code> attribute.</li> <li>Added a flag to <code><a class="internal" href="../../../../en/nsIProtocolHandler" rel="internal">nsIProtocolHandler</a></code> (<code>URI_IS_LOCAL_RESOURCE</code>) that is checked during chrome registration to make sure a protocol is allowed to be registered.</li> <li>Firefox now looks for plugins in <code>/usr/lib/mozilla/plugins</code> on Linux, as well as the previously supported locations.</li> <li>The plugin API has been updated to include support for private browsing mode; you may now use <a class="internal" href="/en/NPN_GetValue" title="En/NPN GetValue"><code>NPN_GetValue()</code></a> to query the state of private browsing mode using the variable <code>NPNVprivateModeBool</code>.</li>
</ul>
<h2>New features for end users</h2>
<h3>User experience</h3>
<dl> <dt>Location aware browsing</dt> <dd>If you choose, you may allow Firefox 3.5 to share information about your current location with web sites.  Firefox 3.5 can use information about the network you're connected to to share your location. Of course, it asks for your permission before doing so, to ensure your privacy.<br> </dd> <dt>Open audio and video support<br> </dt> <dd>Firefox 3.5 supports embedded video and audio using the open Ogg format, as well as WAV for audio. No plugins, no confusing error messages about needing to install something or other that turns out not to be available on your platform anyway.<br> </dd> <dt>Local data storage<br> </dt> <dd>Web applications can now use Web Storage's local storage capabilities to store data on your computer.  This is great for anything from site preferences to more complex data.</dd>
</dl>
<h3>Security and privacy</h3>
<dl> <dt>Private Browsing</dt> <dd>Need to use someone else's computer? Switch on Private Browsing mode and nothing will be recorded about your session, including cookies, history, and any other potentially private information.</dd> <dt>Better privacy controls<br> </dt> <dd>The Privacy preference pane has been completely redesigned to offer users more control over their private information. Users can choose to retain or discard anything including history information, cookies, downloads, and form field information.  In addition, users can specify whether or not to include history and/or bookmarks in the location bar's automated suggestions, so you can keep private web addresses from popping up unexpectedly while typing in the location bar.<br> </dd>
</dl>
<h3>Performance</h3>
<dl> <dt>Faster JavaScript performance<br> </dt> <dd>JavaScript, the "J" in "AJAX," is sped up dramatically in Firefox 3.5 with the new TraceMonkey JavaScript engine.  Web applications are much faster than in Firefox 3.</dd> <dt>Faster page rendering<br> </dt> <dd>Web content draws faster in Firefox 3.5, thanks to technologies such as "speculative parsing." Your users don't need to know what it means, other than "it makes things draw faster."<br> </dd>
</dl>
<h2>See also</h2>
<ul> <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.5_for_developers",  "fr": "fr/Firefox_3.5_pour_les_développeurs", "pt": "pt/Firefox_3.5_para_desenvolvedores", "zh-tw": "Zh_tw/Firefox_3.1_技術文件"} ) }}</p>
<p> </p>
Zu dieser Version zurücksetzen