--- title: Firefox 10 技術文件 slug: Mozilla/Firefox/Releases/10 translation_of: Mozilla/Firefox/Releases/10 ---
Firefox 10 shipped on January 31, 2012. This article provides information about the new features and key bugs fixed in this release, as well as links to more detailed documentation for both web developers and add-on developers.
This documentation is not yet complete. Want to help document Firefox 10? See the list of bugs that need to be written about and pitch in!
<a href="#top">Return to top of page</a>
.WeakMap.set()
now returns undefined
, instead of itself."use strict;"
).event.stopImmediatePropagation
has been implemented.mouseenter
and mouseleave
have been implemented.node1.isSameNode(node2)
, you can simply use the ===
operator, like this: node1 ===
node2
.document.mozHidden
, document.mozVisibilityState
are available and the event mozvisibilitychanged
is sent when the state is modified.dom.battery.enabled
to true
and will be enabled by default starting with Firefox 11).createPattern()
method now throws an exception if a zero-sized source canvas is specified.putImageData()
, the call is now silently ignored instead of throwing an exception, in keeping with the specification.OES_standard_derivatives
extension.XMLHttpRequest.responseType
and XMLHttpRequest.response
are now available from inside Workers.Worker()
constructor now accepts data URIs.Great progress has been made to update IndexedDB to the latest draft specification. This effort will continue in Firefox 11.
IDBIndex.count()
and IDBObjectStore.count()
methods have been added.IDBCursor.advance()
method has been added.IDBObjectStore.createIndex()
or IDBDatabase.createObjectStore()
, Gecko will not fire an exception anymore, but simply ignore it.IDBTransaction.abort()
is called, all pending IDBRequest
have their errorCode
set to ABORT_ERROR
.IDBObjectStore.delete()
and IDBCursor.delete()
now set the result
attribute of the returned IDBRequest
to undefined
.IDBDatabase.setVersion()
has been removed as it was removed from the latest spec. The version of the database is given through the IDBFactory.open()
method which has been updated and the onupgradeneeded
callback allows the schema of the database to be upgraded. The version itself has been changed from a DOMString
to an unsigned long long
. The IDBVersionChangeRequest
interface has been removed and replaced by the new IDBOpenDBRequest
interface.IDBFactory.deleteDatabase()
method has been added.image/svg+xml
, the DOMParser
now creates a SVGDocument
when given a string with SVG.responseType
"moz-json
" introduced in Firefox 9 has been updated to the latest draft of the specification and has been unprefixed. See {{ bug("707142#c13") }}-moz-isolation
and -moz-plaintext
. The -moz-isolation
value isolates, from a directionality point of view, the element from its environment, letting it have a different directionality. An element with unicode-bidi:-moz-isolation
behaves like a {{ HTMLElement("bdi") }} element. The -moz-plaintext
indicates the browser to use the Unicode browser heuristic to determine directionality and not the CSS {{ cssxref("direction") }} property.to
syntax and the magic corner algorithm. This allows to give a precise color on the corner of a gradient-filled box.text-overflow
property is set to overflow on only one has been corrected.Accept-Charset
header is no longer sent in HTTP requests. In its absence, servers should respond by sending UTF-8.For an overview of likely issues that may arise when updating your add-ons to support Firefox 10, see Updating add-ons for Firefox 10.
PRBool
data type has been retired! Anywhere in the documentation that refers to it now uses the standard C++ bool
type instead. Documentation will be updated in the future, but for now, just keep this in mind.<em:strictCompatibility>
has been added to the install manifest. It allows add-ons authors to opt in to checking the maximum version of their extension. If set to true
the add-on will be disabled if the application version is greater than <em:maxVersion>
. Firefox 10 defaults to add-ons being compatible, regardless of their specified maximum version. This flag overrides that preference. You should set this if your add-on does things that are likely to be broken by Firefox updates, but not if your add-on has a binary component, since such add-ons always get strictly checked (remember that binary components must always be recompiled for each major Firefox release).strictCompatibility
flag in their manifests, you can set the extensions.strictCompatibility
preference to true
.Components.utils
, granting access to assorted debugging-related information.nsIDocumentViewer
interface has been merged into {{ interface("nsIContentViewer") }}.FIXUP_FLAG_USE_UTF8
, which lets you tell it to use UTF-8 instead of the platform character set, when doing conversions.NPNVdocumentOrigin
has been added; this returns the document origin, and is more secure than {{ domxref("window.location") }}.--disable-rdf
build option, which actually made it impossible to successfully build, has been removed. Work is ongoing on being able to actually remove RDF support entirely, but at present XUL still requires it to function. See {{ bug(559505) }} for progress on removing the last vestiges of RDF being required.--disable-smil
build option has been removed.{{ languages( { "ja": "ja/Firefox_10_for_developers" } ) }}