From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../zh-cn/mozilla/firefox/releases/1.5/index.html | 123 ++++++++ .../1.5/using_firefox_1.5_caching/index.html | 184 +++++++++++ files/zh-cn/mozilla/firefox/releases/12/index.html | 165 ++++++++++ files/zh-cn/mozilla/firefox/releases/14/index.html | 98 ++++++ files/zh-cn/mozilla/firefox/releases/15/index.html | 122 ++++++++ files/zh-cn/mozilla/firefox/releases/16/index.html | 114 +++++++ files/zh-cn/mozilla/firefox/releases/17/index.html | 146 +++++++++ files/zh-cn/mozilla/firefox/releases/18/index.html | 82 +++++ files/zh-cn/mozilla/firefox/releases/19/index.html | 76 +++++ files/zh-cn/mozilla/firefox/releases/20/index.html | 47 +++ files/zh-cn/mozilla/firefox/releases/21/index.html | 107 +++++++ files/zh-cn/mozilla/firefox/releases/22/index.html | 89 ++++++ files/zh-cn/mozilla/firefox/releases/23/index.html | 94 ++++++ files/zh-cn/mozilla/firefox/releases/24/index.html | 22 ++ files/zh-cn/mozilla/firefox/releases/25/index.html | 50 +++ .../releases/25/site_compatibility/index.html | 40 +++ files/zh-cn/mozilla/firefox/releases/26/index.html | 41 +++ .../releases/26/site_compatibility/index.html | 104 ++++++ files/zh-cn/mozilla/firefox/releases/27/index.html | 45 +++ files/zh-cn/mozilla/firefox/releases/28/index.html | 117 +++++++ .../releases/28/site_compatibility/index.html | 56 ++++ .../zh-cn/mozilla/firefox/releases/3.6/index.html | 305 ++++++++++++++++++ files/zh-cn/mozilla/firefox/releases/3/index.html | 310 ++++++++++++++++++ .../releases/3/site_compatibility/index.html | 26 ++ files/zh-cn/mozilla/firefox/releases/31/index.html | 46 +++ files/zh-cn/mozilla/firefox/releases/32/index.html | 154 +++++++++ files/zh-cn/mozilla/firefox/releases/33/index.html | 38 +++ files/zh-cn/mozilla/firefox/releases/35/index.html | 213 +++++++++++++ files/zh-cn/mozilla/firefox/releases/41/index.html | 209 +++++++++++++ files/zh-cn/mozilla/firefox/releases/43/index.html | 173 ++++++++++ files/zh-cn/mozilla/firefox/releases/44/index.html | 222 +++++++++++++ files/zh-cn/mozilla/firefox/releases/45/index.html | 187 +++++++++++ files/zh-cn/mozilla/firefox/releases/49/index.html | 348 +++++++++++++++++++++ files/zh-cn/mozilla/firefox/releases/56/index.html | 129 ++++++++ files/zh-cn/mozilla/firefox/releases/59/index.html | 130 ++++++++ files/zh-cn/mozilla/firefox/releases/62/index.html | 187 +++++++++++ files/zh-cn/mozilla/firefox/releases/65/index.html | 128 ++++++++ files/zh-cn/mozilla/firefox/releases/68/index.html | 240 ++++++++++++++ files/zh-cn/mozilla/firefox/releases/69/index.html | 185 +++++++++++ files/zh-cn/mozilla/firefox/releases/78/index.html | 116 +++++++ files/zh-cn/mozilla/firefox/releases/index.html | 12 + 41 files changed, 5280 insertions(+) create mode 100644 files/zh-cn/mozilla/firefox/releases/1.5/index.html create mode 100644 files/zh-cn/mozilla/firefox/releases/1.5/using_firefox_1.5_caching/index.html create mode 100644 files/zh-cn/mozilla/firefox/releases/12/index.html create mode 100644 files/zh-cn/mozilla/firefox/releases/14/index.html create mode 100644 files/zh-cn/mozilla/firefox/releases/15/index.html create mode 100644 files/zh-cn/mozilla/firefox/releases/16/index.html create mode 100644 files/zh-cn/mozilla/firefox/releases/17/index.html create mode 100644 files/zh-cn/mozilla/firefox/releases/18/index.html create mode 100644 files/zh-cn/mozilla/firefox/releases/19/index.html create mode 100644 files/zh-cn/mozilla/firefox/releases/20/index.html create mode 100644 files/zh-cn/mozilla/firefox/releases/21/index.html create mode 100644 files/zh-cn/mozilla/firefox/releases/22/index.html create mode 100644 files/zh-cn/mozilla/firefox/releases/23/index.html create mode 100644 files/zh-cn/mozilla/firefox/releases/24/index.html create mode 100644 files/zh-cn/mozilla/firefox/releases/25/index.html create mode 100644 files/zh-cn/mozilla/firefox/releases/25/site_compatibility/index.html create mode 100644 files/zh-cn/mozilla/firefox/releases/26/index.html create mode 100644 files/zh-cn/mozilla/firefox/releases/26/site_compatibility/index.html create mode 100644 files/zh-cn/mozilla/firefox/releases/27/index.html create mode 100644 files/zh-cn/mozilla/firefox/releases/28/index.html create mode 100644 files/zh-cn/mozilla/firefox/releases/28/site_compatibility/index.html create mode 100644 files/zh-cn/mozilla/firefox/releases/3.6/index.html create mode 100644 files/zh-cn/mozilla/firefox/releases/3/index.html create mode 100644 files/zh-cn/mozilla/firefox/releases/3/site_compatibility/index.html create mode 100644 files/zh-cn/mozilla/firefox/releases/31/index.html create mode 100644 files/zh-cn/mozilla/firefox/releases/32/index.html create mode 100644 files/zh-cn/mozilla/firefox/releases/33/index.html create mode 100644 files/zh-cn/mozilla/firefox/releases/35/index.html create mode 100644 files/zh-cn/mozilla/firefox/releases/41/index.html create mode 100644 files/zh-cn/mozilla/firefox/releases/43/index.html create mode 100644 files/zh-cn/mozilla/firefox/releases/44/index.html create mode 100644 files/zh-cn/mozilla/firefox/releases/45/index.html create mode 100644 files/zh-cn/mozilla/firefox/releases/49/index.html create mode 100644 files/zh-cn/mozilla/firefox/releases/56/index.html create mode 100644 files/zh-cn/mozilla/firefox/releases/59/index.html create mode 100644 files/zh-cn/mozilla/firefox/releases/62/index.html create mode 100644 files/zh-cn/mozilla/firefox/releases/65/index.html create mode 100644 files/zh-cn/mozilla/firefox/releases/68/index.html create mode 100644 files/zh-cn/mozilla/firefox/releases/69/index.html create mode 100644 files/zh-cn/mozilla/firefox/releases/78/index.html create mode 100644 files/zh-cn/mozilla/firefox/releases/index.html (limited to 'files/zh-cn/mozilla/firefox/releases') diff --git a/files/zh-cn/mozilla/firefox/releases/1.5/index.html b/files/zh-cn/mozilla/firefox/releases/1.5/index.html new file mode 100644 index 0000000000..a028828a01 --- /dev/null +++ b/files/zh-cn/mozilla/firefox/releases/1.5/index.html @@ -0,0 +1,123 @@ +--- +title: Firefox 1.5 for developers +slug: Mozilla/Firefox/Releases/1.5 +tags: + - Add-ons + - CSS + - DOM + - Extensions + - HTML + - JavaScript + - NeedsTranslation + - RDF + - SVG + - TopicStub + - Web Development + - Web Standards + - XML + - XML Web Services + - XSLT + - XUL +translation_of: Mozilla/Firefox/Releases/1.5 +--- +
{{FirefoxSidebar}}

Based on the Gecko 1.8 engine, Firefox 1.5 improved its already best in class standards support, and provided new capabilities to enable the next generation of web applications. Firefox 1.5 features improved support for CSS2 and CSS3, APIs for scriptable and programmable 2D graphics through SVG 1.1 and <canvas>, XForms and XML events, as well as many DHTML, JavaScript, and DOM enhancements.

+ +

Developer Tools

+ +

Several tools and browser extensions are available to help developers support Firefox 1.5.

+ + + +

Note: Some extensions do not currently support Firefox 1.5, and will be automatically disabled.

+ +

Overview

+ +

Some of the new features in Firefox 1.5:

+ +

Web site and application developers

+ +
+
SVG In XHTML Introduction
+
Learn how to use SVG in XHTML pages and how to use JavaScript and CSS to manipulate the picture in the same way you would script regular XHTML. See also SVG in Firefox to learn about the status and known problems of SVG implementation in Firefox.
+
Drawing Graphics with Canvas
+
Learn about the new <canvas> tag and how to draw graphs and other objects in Firefox.
+
CSS3 Columns
+
Learn about the new support for automatic multi-column text layout as proposed for CSS3.
+
Using Firefox 1.5 caching
+
Learn about bfcache and how it speeds up back and forward navigation.
+
+ +

XUL and Extension Developers

+ +
+
Building an Extension
+
This tutorial will take you through the steps required to build a very basic extension for Firefox. Also see another tutorial on MozillaZine knowledge base, which demonstrates the new features of the Extension Manager in 1.5 that make creating a new extension even easier.
+
XPCNativeWrapper
+
XPCNativeWrapper is a way to wrap up an object so that it's safe to access from privileged code. It can be used in all Firefox versions, though the behavior changed somewhat starting with Firefox 1.5 (Gecko 1.8).
+
Preferences System
+
Learn about the new widgets that allow you to create Options windows easier using less JavaScript code.
+
International characters in XUL JavaScript
+
XUL JavaScript files can now contain non-ASCII characters.
+
Tree API changes
+
The interfaces for accessing XUL <tree> elements have changed.
+
XUL Changes for Firefox 1.5
+
Summary of XUL changes. See also Adapting XUL Applications for Firefox 1.5.
+
+ + + + + +

New End user Features

+ +

User Experience

+ + + +

Security and Privacy

+ + + +

Support for open Web standards

+ +

Firefox support for Web standards continues to lead the industry with consistent cross-platform implementations for:

+ + + +

Firefox 1.5 supports the following data transport protocols (HTTP, FTP, SSL, TLS, and others), multilingual character data (Unicode), graphics (GIF, JPEG, PNG, SVG, and others) and the latest version of the world's most popular scripting language, JavaScript 1.6.

+ +

Changes since Firefox 1.0

+ +

Many changes have been introduced into Firefox since it was first released on November 9, 2004. Firefox has progressed with many new features and bug fixes. A detailed list of changes is available from squarefree.com.

diff --git a/files/zh-cn/mozilla/firefox/releases/1.5/using_firefox_1.5_caching/index.html b/files/zh-cn/mozilla/firefox/releases/1.5/using_firefox_1.5_caching/index.html new file mode 100644 index 0000000000..b062c43ddd --- /dev/null +++ b/files/zh-cn/mozilla/firefox/releases/1.5/using_firefox_1.5_caching/index.html @@ -0,0 +1,184 @@ +--- +title: Using Firefox 1.5 caching +slug: Mozilla/Firefox/Releases/1.5/Using_Firefox_1.5_caching +translation_of: Mozilla/Firefox/Releases/1.5/Using_Firefox_1.5_caching +--- +
{{FirefoxSidebar}}

介绍

+ +

Firefox 1.5 对整个web页面的一个浏览器会话进行了内存缓存,包括他们对JavaScript状态。在访问过的页面间后退和前进不需要页面加载同时保存JavaScript状态。这个特性,被称为bfcache(“后退前进缓存”),使得页面导航(切换)非常快。这个状态缓存被保存直到用户关闭浏览器。 

+ +

有时候,Firefox不缓存页面。下面是一些页面不被缓存的常见的编程的原因:

+ + + +

这个新的缓存特性改变了页面的加载行为,web作者也许希望: 

+ + + +

两个新的浏览器事件使得用户可以做到这2个要求。

+ +

新的浏览器事件

+ +

如果你使用新的事件,你的页面在其他浏览器依然会正确显示  (我们已经测试了早期版本的Firefox, Internet Explorer, Opera, 和 Safari),而且在 Firefox 1.5加载时将会使用新的缓存功能。

+ +

注意: 直至10-2009 开发版本的Safari 添加了这些新的事件的支持 (见 the webkit bug).

+ +

标准的页面行为是:

+ +
    +
  1. 用户导航至一个页面
  2. +
  3. 当页面加载,行内scripts执行。
  4. +
  5. 一旦页面加载完毕, onload 事件执行。
  6. +
+ +

有些页面包含第四步。如果一个页面使用 unload 或者 beforeunload 处理程序,当从页面导航离开时事件被执行。如果提供了一个unload 处理程序,页面将不会被缓存。

+ +

当一个用户导航至一个被缓存的页面,行内scripts和onload 处理程序将不会执行 (步骤 2 和 3), 因为在大多数情况下,这些scripts的影响(执行效果)已经被保存。

+ +

如果你想在每次用户导航到页面时都执行页面包含的scripts或者其他在页面加载期间执行的行为,或者你想知道什么时候用户导航至一个被缓存的页面,使用新的pageshow 事件.

+ +

如果你拥有当用户导航离页面是执行的行为,但是你想利用这个新的缓存功能,因此不想使用unload处理程序,使用新的 pagehide 事件

+ +

pageshow 事件

+ +

这个事件和 load 事件一样的工作(效果), 除了它每次页面加载是都执行 that it fires every time the page is loaded (然而  load 事件在 Firefox 1.5中当页面从缓存中加载时不执行). 页面第一次加载时, pageshow 事件在 load 事件执行后执行。 pageshow 事件使用一个命名为persisted 的boolean属性,在初始加载时默认设置为 false。如果它不是初始加载,被设置为true(换句话说,但页面被缓存时它被设置为true).

+ +

pageshow 事件执行时,设置每次页面加载时你想要运行的任何的JavaScript。

+ +

如果你将JavaScript函数作为pageshow事件的一部分调用,你可以通过调用pageshow 事件作为load事件的一部分确保在不同于Firefox 1.5的浏览器在页面加载时调用这些函数,如在本文后面所示的示例。

+ +

pagehide 事件

+ +

如果你想定义当用户导航离页面时的行为,但是你不想使用 unload  (这将导致页面不被缓存),你可以使用新的  pagehide 事件。像 pageshow , pagehide 事件使用一个命名为persisted 的属性。 这个属性在页面未被浏览器缓存时设置为 false  ,如果页面被浏览器缓存则设置为 true 。如果这个属性被设置为 false, 如果有设置unload 处理程序的话,unload 事件在pagehide 事件执行后马上执行。

+ +

当页面初次加载,Firefox 1.5 试图按事件会发生相同的顺序模拟load事件。Frames 被作为顶级文档一样对待。如果页面包含frames, 则当缓存当页面被加载:

+ + + +

示例代码

+ +

以下的示例演示了一个页面同时使用 load 和 pageshow 事件。这个示例页面行为如下:

+ + + +

在这个例子中:

+ + + +
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+   "http://www.w3.org/TR/html4/loose.dtd">
+<HTML>
+<head>
+<title>Order query Firefox 1.5 Example</title>
+<style type="text/css">
+body, p {
+	font-family: Verdana, sans-serif;
+	font-size: 12px;
+   	}
+</style>
+<script type="text/javascript">
+function onLoad() {
+	loadOnlyFirst();
+	onPageShow();
+}
+
+function onPageShow() {
+//calculate current time
+	var currentTime= new Date();
+	var year=currentTime.getFullYear();
+	var month=currentTime.getMonth()+1;
+	var day=currentTime.getDate();
+	var hour=currentTime.getHours();
+	var min=currentTime.getMinutes();
+	var sec=currentTime.getSeconds();
+	var mil=currentTime.getMilliseconds();
+	var displayTime = (month + "/" + day + "/" + year + " " +
+		hour + ":" + min + ":" + sec + ":" + mil);
+	document.getElementById("timefield").value=displayTime;
+}
+
+function loadOnlyFirst() {
+	document.zipForm.name.focus();
+}
+</script>
+</head>
+<body onload="onLoad();" onpageshow="if (event.persisted) onPageShow();">
+<h2>Order query</h2>
+
+<form name="zipForm" action="http://www.example.com/formresult.html" method="get">
+<label for="timefield">Date and time:</label>
+<input type="text" id="timefield"><br>
+<label for="name">Name:</label>
+<input type="text" id="name"><br>
+<label for="address">Email address:</label>
+<input type="text" id="address"><br>
+<label for="order">Order number:</label>
+<input type="text" id="order"><br>
+<input type="submit" name="submit" value="Submit Query">
+</form>
+</body>
+</html>
+
+ +

与此相反, 如果以上页面不监听 pageshow 事件,所有的计算作为 load 事件的一部分(取而代之的是如下面的示例代码片段所示的编码),Firefox 1.5 中,当用户导航离页面时,光标位置及date/time会被缓存。当用户返回回该页面,缓存的date/time将会显示。

+ +
<script>
+function onLoad() {
+	loadOnlyFirst();
+
+//calculate current time
+	var currentTime= new Date();
+	var year = currentTime.getFullYear();
+	var month = currentTime.getMonth()+1;
+	var day = currentTime.getDate();
+	var hour=currentTime.getHours();
+	var min=currentTime.getMinutes();
+	var sec=currentTime.getSeconds();
+	var mil=currentTime.getMilliseconds();
+	var displayTime = (month + "/" + day + "/" + year + " " +
+		hour + ":" + min + ":" + sec + ":" + mil);
+	document.getElementById("timefield").value=displayTime;
+}
+
+function loadOnlyFirst() {
+	document.zipForm.name.focus();
+}
+</script>
+</head>
+
+<body onload="onLoad();">
+
+ +

开发Firefox扩展

+ +

Firefox 1.5 extensions 需要允许缓存功能。如果你在开发一个兼容1.5 及以前版本的Firefox扩展,确保它监听事件触发 load 可被缓存,监听的 pageshow 事件触发不应该被缓存。

+ +

例如,Firefox的Google工具栏为了兼容1.5和更早的版本,应该为autolink监听 load 事件函数,为PageRank监听 pageshow 事件函数。

diff --git a/files/zh-cn/mozilla/firefox/releases/12/index.html b/files/zh-cn/mozilla/firefox/releases/12/index.html new file mode 100644 index 0000000000..ee154efbfe --- /dev/null +++ b/files/zh-cn/mozilla/firefox/releases/12/index.html @@ -0,0 +1,165 @@ +--- +title: Firefox 12 for developers +slug: Mozilla/Firefox/Releases/12 +tags: + - Firefox + - Firefox 12 + - Gecko 12 + - Web Developement +translation_of: Mozilla/Firefox/Releases/12 +--- +
{{FirefoxSidebar}}
+ +

Firefox 12 was shipped on April 24, 2012. This page summarizes the changes in Firefox 12 that affect developers. 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.

+ +

Changes for Web developers

+ +

HTML

+ + + +

CSS

+ + + +

JavaScript

+ + + +

DOM

+ + + +

New WebAPIs

+ + + +

SVG

+ + + +

MathML

+ + + +

Networking

+ + + +

Developer tools

+ + + +

Mozilla has been working on integrating its own Web developer tools that complement the popular Firebug add-on. You can get more information about these tools as well as see a list of resources external to Firefox that will help you with your Web development. The entire list is located at Web developer tools.

+ +

Miscellaneous changes

+ + + +

Changes for Mozilla and add-on developers

+ +

JavaScript code modules

+ +

source-editor.jsm

+ + + +

XUL

+ + + +

XPCOM

+ + + +

XPConnect

+ + + +

Interface changes

+ + + +

SpiderMonkey

+ + + +

Building

+ + + +

Other changes

+ + + +

See also

+ +
{{Firefox_for_developers('11')}}
diff --git a/files/zh-cn/mozilla/firefox/releases/14/index.html b/files/zh-cn/mozilla/firefox/releases/14/index.html new file mode 100644 index 0000000000..8ef207f56e --- /dev/null +++ b/files/zh-cn/mozilla/firefox/releases/14/index.html @@ -0,0 +1,98 @@ +--- +title: Firefox 14 for developers +slug: Mozilla/Firefox/Releases/14 +tags: + - Firefox + - Firefox 14 + - Gecko + - Gecko 14 +translation_of: Mozilla/Firefox/Releases/14 +--- +
{{FirefoxSidebar}}

Firefox 14 shipped on July 17, 2012. This article lists key changes that are useful for not only Web developers to know about, but also Firefox and Gecko developers as well as add-on developers.

+ +

Changes for Web developers

+ +

HTML

+ + + +

DOM

+ + + +

CSS

+ + + +

JavaScript

+ +

No change.

+ +

MathML

+ + + +

HTTP

+ + + +

Changes for Mozilla and add-on developers

+ +

JavaScript 代码模块

+ +

source-editor.jsm

+ + + +

XUL

+ + + +

接口

+ + + +

拼写检查

+ + + +

相关链接

+ +
{{Firefox_for_developers('13')}}
diff --git a/files/zh-cn/mozilla/firefox/releases/15/index.html b/files/zh-cn/mozilla/firefox/releases/15/index.html new file mode 100644 index 0000000000..1c941836d7 --- /dev/null +++ b/files/zh-cn/mozilla/firefox/releases/15/index.html @@ -0,0 +1,122 @@ +--- +title: Firefox 15 for developers +slug: Mozilla/Firefox/Releases/15 +tags: + - Firefox + - Firefox 15 + - Gecko 15 +translation_of: Mozilla/Firefox/Releases/15 +--- +
{{FirefoxSidebar}}

Firefox 15 shipped on August 28, 2012. This article lists key changes that are useful for not only Web developers to know about, but also Firefox and Gecko developers as well as add-on developers.

+ +

Changes for Web developers

+ +

HTML

+ + + +

CSS

+ + + +

DOM

+ + + +

JavaScript

+ + + +

WebGL

+ + + +

MathML

+ + + +

SVG

+ + + +

Network

+ + + +

附加组件开发变更

+ +

接口变更

+ +
+
{{ interface("nsIDOMWindowUtils") }}
+
aModifiers of sendMouseEvent(), sendTouchEvent(), sendMouseEventToWindow(), sendMouseScrollEvent() and sendKeyEvent() supports all modifier keys which are supported by KeyboardEvent.getModifierState(). Use MODIFIER_* values. And now the 5th parameter of sendKeyEvent() is changed from boolean to unsigned long. For backward compatibility, if caller passes true or false to it, the behavior isn't changed. This change allows callers to specify the key's location.
+
{{ interface("nsIBrowserHistory") }}
+
The hidePage() method was never implemented, and has been removed entirely in this release. The addPageWithDetails() method has also been removed as part of the ongoing work to make all Places APIs asynchronous; use {{ ifmethod("mozIAsyncHistory", "updatePlaces") }} instead. Also, the count attribute was removed; it had not returned an actual count in some time (instead, it was simply indicating whether or not any entries existed). You can use {{ ifattribute("nsINavHistoryService", "hasHistoryEntries") }} instead.
+
{{interface("inIDOMUtils")}}
+
The {{ifmethod("inlDOMUtils", "parseStyleSheet")}} method has been added and allows the (re-)parsing of Cascading Style Sheets.
+
{{interface("nsIINIParserWriter")}}
+
The {{ifmethod("nsIINIParserWriter", "writeFile")}} method now accepts a flagsproperty. This currently offers only one option: you can now tell it to write the file in UTF-16 format instead of UTF-8, for better compatibility with Windows and certain installers.
+
+ +

新增接口

+ +
+
{{ interface("nsISpeculativeConnect") }}
+
Provides a way to hint to the networking layer that you are likely to ask to open a connection to a given URI sometime in the near future. This lets the network layer begin the sometimes high-latency process of opening a new network connection ahead of time.
+
+ +

移除接口

+ +

The following interfaces have been removed.

+ + + +

相关链接

+ +

{{Firefox_for_developers('14')}}

diff --git a/files/zh-cn/mozilla/firefox/releases/16/index.html b/files/zh-cn/mozilla/firefox/releases/16/index.html new file mode 100644 index 0000000000..7d63499c62 --- /dev/null +++ b/files/zh-cn/mozilla/firefox/releases/16/index.html @@ -0,0 +1,114 @@ +--- +title: Firefox 16 for developers +slug: Mozilla/Firefox/Releases/16 +tags: + - Firefox + - Firefox 16 +translation_of: Mozilla/Firefox/Releases/16 +--- +
{{FirefoxSidebar}}

Firefox 16 shipped on October 9, 2012. This article lists key changes that are useful for not only Web developers to know about, but also Firefox and Gecko developers as well as add-on developers.

+ +

Web开发

+ +

HTML

+ + + +

CSS

+ + + +

API/DOM

+ + + +

JavaScript

+ + + +

WebGL

+ +

No change

+ +

SVG

+ +

No change

+ +

MathML

+ +

 

+ + + +

 

+ +

网络

+ +

 

+ +

Developer tools

+ +

 

+ + + +

 

+ +

 

+ +

Changes for Open Web App developers

+ + + +

附加组件开发变更

+ +

修改接口

+ +

{{interface("nsIPrivateDOMEvent")}} has been merged into {{interface("nsIDOMEvent")}}. ({{bug("761613")}})

+ +

新增接口

+ +

废弃接口

diff --git a/files/zh-cn/mozilla/firefox/releases/17/index.html b/files/zh-cn/mozilla/firefox/releases/17/index.html new file mode 100644 index 0000000000..176604bdc7 --- /dev/null +++ b/files/zh-cn/mozilla/firefox/releases/17/index.html @@ -0,0 +1,146 @@ +--- +title: Firefox 17 for developers +slug: Mozilla/Firefox/Releases/17 +tags: + - Firefox + - Firefox 17 +translation_of: Mozilla/Firefox/Releases/17 +--- +
{{FirefoxSidebar}}
+ +

Firefox 17 shipped on November 20, 2012. This article lists key changes that are useful for not only web developers, but also Firefox and Gecko developers as well as add-on developers.

+ +

WEB开发者需要注意的变化

+ +

HTML

+ + + +

CSS

+ + + +

DOM

+ + + +

 

+ +

JavaScript

+ + + +

WebGL

+ +

 

+ + + +

 

+ +

SVG

+ +

No change.

+ +

MathML

+ +

 

+ + + +

 

+ +

XUL

+ + + +

网络

+ +

 

+ + + +

 

+ +

开发者工具

+ +

 

+ + + +

User Agent

+ +

The Gecko part of the user agent string changed. The build date (which hadn't been updated since 2010) was removed, and the Gecko version number was put in its place instead. So Gecko/20100101 -> Gecko/17.0. This may affect you if you are doing user agent sniffing.

+ +

附加组件和Mozilla开发者需要注意的变化

+ +

接口变化

+ +
+
{{ interface("nsIInputStream") }}
+
available() 方法返回一个64位的长度而不是32位的. ({{bug("215450")}})
+
{{ interface("nsIDOMWindowUtils") }}
+
sendMouseScrollEvent()方法被sendWheelEvent()替换. ({{bug("719320")}})
+
{{interface("nsIFilePicker")}}
+
The open() method, to open the file dialog asynchronously, has been added and the show() method has been deprecated ({{bug("731307")}}).
+
{{interface("nsIScriptSecurityManager")}}
+
The checkLoadURIStr() and checkLoadURI() methods have been removed ({{bug("327244")}}).
+
{{interface("nsIRefreshURI")}}
+
The setupRefreshURIFromHeader() method has a added principal parameter ({{bug("327244")}}).
+
+ +

新增接口

+ +

None.

+ +

移除接口

+ +

None removed.

+ +

See also

+ + + +

Older versions

+ +

{{Firefox_for_developers('16')}}

diff --git a/files/zh-cn/mozilla/firefox/releases/18/index.html b/files/zh-cn/mozilla/firefox/releases/18/index.html new file mode 100644 index 0000000000..9854df7bf7 --- /dev/null +++ b/files/zh-cn/mozilla/firefox/releases/18/index.html @@ -0,0 +1,82 @@ +--- +title: Firefox 18 for developers +slug: Mozilla/Firefox/Releases/18 +translation_of: Mozilla/Firefox/Releases/18 +--- +
{{FirefoxSidebar}}

Firefox 18已于2013年1月8日发布.

+

WEB开发者需要注意的变化

+

HTML

+ +

CSS

+ +

DOM

+ +

JavaScript

+ +

WebGL

+

SVG

+

MathML

+

XUL

+

网络

+ +

开发者工具

+

附加组件和Mozilla开发者需要注意的变化

+

接口变更

+
+
+ {{ interface("nsIStreamListener") }}
+
+ onDataAvailable()方法的第四个参数(aOffset)类型改为无符号长整型. ({{bug("784912")}})
+
+ {{ interface("nsIUploadChannel") }}
+
+ setUploadStream()支持了超过2GB大小的content-length ({{bug("790617")}})
+
+ {{ interface("nsIEditor") }}
+
+ 删除了addEditorObserver(),使用setEditorObserver()来替代, removeEditorObserver()不再需要一个{{ interface("nsIEditorObserver") }}参数({{bug("785091")}})
+
+
+
+ {{ interface("nsIHttpProtocolHandler") }}
+
+ http-on-modify-request observers are no longer guaranteed to be called synchronously during
+ nsIChannel.asyncOpen(). For observers that need to be called during asyncOpen(), the new http-on-opening-request observer topic has been added. ({{bug("800799")}})
+
+

新增接口

+

移除接口

+

下面的接口已经被移除.

+ +

相关链接

+ +

更早版本

+

{{Firefox_for_developers('17')}}

diff --git a/files/zh-cn/mozilla/firefox/releases/19/index.html b/files/zh-cn/mozilla/firefox/releases/19/index.html new file mode 100644 index 0000000000..670c6f9f18 --- /dev/null +++ b/files/zh-cn/mozilla/firefox/releases/19/index.html @@ -0,0 +1,76 @@ +--- +title: Firefox 19 for developers +slug: Mozilla/Firefox/Releases/19 +translation_of: Mozilla/Firefox/Releases/19 +--- +
{{FirefoxSidebar}}

Firefox 19已于2013年2月19日正式发布.

+ +

Web开发者需要注意的变化

+ +

JavaScript

+ + + +

CSS

+ + + +

DOM

+ + + +

XForms

+ +

删除了对XForms的支持.

+ +

附加组件和Mozilla开发者需要注意的变化

+ +
+

注: A key change in Firefox 19 is that nsresult is now strongly typed. This will help make it easier to detect bugs that are caused by mishandling of return values, but may cause existing code to break if it's making incorrect assumptions in this regard.

+
+ + + +

接口变化

+ +
+
{{interface("nsIImgLoadingContent")}}
+
The parameter (aObserver) of addObserver() method changes from {{interface("imgIDecoderObserver")}} to {{interface("imgINotificationObserver")}}. The notify() method of {{interface("imgINotificationObserver")}} is not scriptable, so you need to use createScriptedObserver() from {{interface("imgITools")}}.
+
{{interface("nsIChannel")}}
+
 contentLength 属性的类型由 long 改成 int64_t.
+
+ +

相关链接

+ + + +

更早版本

+ +
{{Firefox_for_developers('18')}}
diff --git a/files/zh-cn/mozilla/firefox/releases/20/index.html b/files/zh-cn/mozilla/firefox/releases/20/index.html new file mode 100644 index 0000000000..117426208d --- /dev/null +++ b/files/zh-cn/mozilla/firefox/releases/20/index.html @@ -0,0 +1,47 @@ +--- +title: Firefox 20 for developers +slug: Mozilla/Firefox/Releases/20 +translation_of: Mozilla/Firefox/Releases/20 +--- +
{{FirefoxSidebar}}

Firefox 20正式版发布于

+

Web开发者需要注意的变化

+

HTML

+ +

JavaScript

+ +

CSS

+ +

DOM

+ +

附加组件和Mozilla开发者需要注意的变化

+ +

相关链接

+ +

更早版本

+

{{Firefox_for_developers('19')}}

diff --git a/files/zh-cn/mozilla/firefox/releases/21/index.html b/files/zh-cn/mozilla/firefox/releases/21/index.html new file mode 100644 index 0000000000..9d0788dfa6 --- /dev/null +++ b/files/zh-cn/mozilla/firefox/releases/21/index.html @@ -0,0 +1,107 @@ +--- +title: Firefox 21 for developers +slug: Mozilla/Firefox/Releases/21 +translation_of: Mozilla/Firefox/Releases/21 +--- +
{{FirefoxSidebar}}

Web开发者需要注意的变化

+

HTML

+ +

JavaScript

+ +

CSS

+ +

DOM

+ +

SVG

+ +

网络

+ +

附加组件和Mozilla开发者需要注意的变化

+ +

相关链接

+ +

更早版本

+

{{Firefox_for_developers('20')}}

diff --git a/files/zh-cn/mozilla/firefox/releases/22/index.html b/files/zh-cn/mozilla/firefox/releases/22/index.html new file mode 100644 index 0000000000..32177c38da --- /dev/null +++ b/files/zh-cn/mozilla/firefox/releases/22/index.html @@ -0,0 +1,89 @@ +--- +title: Firefox 22 for developers +slug: Mozilla/Firefox/Releases/22 +tags: + - Firefox + - Firefox 22 +translation_of: Mozilla/Firefox/Releases/22 +--- +
{{FirefoxSidebar}}

Web开发者需要注意的变化

+ +

HTML

+ + + +

JavaScript

+ + + +

DOM

+ + + +

CSS

+ + + +

附加组件和Mozilla开发者需要注意的变化

+ + + +

Firefox Developer Tools

+ + + +

相关链接

+ + + +

Older versions

+ +

{{Firefox_for_developers('21')}}

diff --git a/files/zh-cn/mozilla/firefox/releases/23/index.html b/files/zh-cn/mozilla/firefox/releases/23/index.html new file mode 100644 index 0000000000..adaf75356f --- /dev/null +++ b/files/zh-cn/mozilla/firefox/releases/23/index.html @@ -0,0 +1,94 @@ +--- +title: Firefox 23 for developers +slug: Mozilla/Firefox/Releases/23 +tags: + - Firefox + - Firefox 23 +translation_of: Mozilla/Firefox/Releases/23 +--- +
{{FirefoxSidebar}}

Web开发者需要注意的变化

+ +

HTML

+ + + +

JavaScript

+ +

 

+ + + +

HTML

+ + + +

 

+ +

DOM

+ + + +

CSS

+ + + +

WebRTC

+ + + +

MathML

+ + + +

Changes for addon and Mozilla developers

+ +

Firefox developer tools

+ +

Addons that overlay chrome://browser/content/debugger.xul must now overlay chrome://browser/content/devtools/debugger.xul. You may add references to both these files in chrome.manifest for compatibility.

+ +

 

+ +

See also

+ + + +

 

+ +

 

+ +

之前版本

+ +

{{Firefox_for_developers('22')}}

diff --git a/files/zh-cn/mozilla/firefox/releases/24/index.html b/files/zh-cn/mozilla/firefox/releases/24/index.html new file mode 100644 index 0000000000..cd3dd112e2 --- /dev/null +++ b/files/zh-cn/mozilla/firefox/releases/24/index.html @@ -0,0 +1,22 @@ +--- +title: Firefox 24 for developers +slug: Mozilla/Firefox/Releases/24 +translation_of: Mozilla/Firefox/Releases/24 +--- +
{{FirefoxSidebar}}

{{ draft() }}

+

Web开发者需要注意的变化

+

Developer Tools

+

HTML

+

JavaScript

+ +

DOM

+

MathML

+

相关链接

+ +

更早版本

+

{{Firefox_for_developers('23')}}

diff --git a/files/zh-cn/mozilla/firefox/releases/25/index.html b/files/zh-cn/mozilla/firefox/releases/25/index.html new file mode 100644 index 0000000000..a23b1fd7c7 --- /dev/null +++ b/files/zh-cn/mozilla/firefox/releases/25/index.html @@ -0,0 +1,50 @@ +--- +title: Firefox 25 for developers +slug: Mozilla/Firefox/Releases/25 +translation_of: Mozilla/Firefox/Releases/25 +--- +
{{FirefoxSidebar}}

{{ draft() }}

+

Web开发者需要注意的变化

+

CSS

+ +

HTML

+ +

JavaScript

+

下面都是 ECMAScript 6 (Harmony) 中的新特性!

+ +

DOM

+ +

MathML

+

SVG

+

相关链接

+ +

更早版本

+

{{Firefox_for_developers('24')}}

diff --git a/files/zh-cn/mozilla/firefox/releases/25/site_compatibility/index.html b/files/zh-cn/mozilla/firefox/releases/25/site_compatibility/index.html new file mode 100644 index 0000000000..d808bf4007 --- /dev/null +++ b/files/zh-cn/mozilla/firefox/releases/25/site_compatibility/index.html @@ -0,0 +1,40 @@ +--- +title: Firefox 25网站兼容性 +slug: Mozilla/Firefox/Releases/25/Site_Compatibility +translation_of: Mozilla/Firefox/Releases/25/Site_Compatibility +--- +
{{FirefoxSidebar}}

{{ draft() }}

+
+

DOM

+
+

ImageDocument 属性被删除

+ +

非标准的 {{ domxref("ImageDocument") }} 接口在普通页面中不能访问了.

+
+
+

worker 中的所有事件名都加上 Worker 前缀

+ +

为了能让 普通的 DOM 事件 能在 worker 中正常使用, 目前 worker 中的事件 {{domxref("Event") }}, {{ domxref("MessageEvent") }}, {{ domxref("ErrorEvent") }} and {{ domxref("ProgressEvent") }}  被重命名为了 {{ domxref("WorkerEvent") }}, {{ domxref("WorkerMessageEvent") }}, {{ domxref("WorkerErrorEvent") }} and {{ domxref("WorkerProgressEvent") }}.

+
+
+
+

JavaScript

+
+

Proxy 全局变量从对象类型修正到函数类型

+ +

以前, Proxy 是一个对象类型的值. 现在 typeof Proxy 会返回 function ,且不需要在前面加 new 运算符也可以正常调用了.

+
+
+

yield without a value has been deprecated

+ +

yield 运算符不再需要一个操作数, 该变化遵循了 ECMAScript 6 规范草案.

+
+
diff --git a/files/zh-cn/mozilla/firefox/releases/26/index.html b/files/zh-cn/mozilla/firefox/releases/26/index.html new file mode 100644 index 0000000000..621e9f87c9 --- /dev/null +++ b/files/zh-cn/mozilla/firefox/releases/26/index.html @@ -0,0 +1,41 @@ +--- +title: Firefox 26 for developers +slug: Mozilla/Firefox/Releases/26 +translation_of: Mozilla/Firefox/Releases/26 +--- +
{{FirefoxSidebar}}

Web开发者需要注意的变化

+

CSS

+ +

HTML

+

No change.

+

JavaScript

+ +

Interfaces/APIs/DOM

+ +

MathML

+ +

SVG

+

No change.

+

相关链接

+ +

更早版本

+

{{Firefox_for_developers('25')}}

diff --git a/files/zh-cn/mozilla/firefox/releases/26/site_compatibility/index.html b/files/zh-cn/mozilla/firefox/releases/26/site_compatibility/index.html new file mode 100644 index 0000000000..009959b5c0 --- /dev/null +++ b/files/zh-cn/mozilla/firefox/releases/26/site_compatibility/index.html @@ -0,0 +1,104 @@ +--- +title: Site Compatibility for Firefox 26 +slug: Mozilla/Firefox/Releases/26/Site_Compatibility +translation_of: Mozilla/Firefox/Releases/26/Site_Compatibility +--- +
{{FirefoxSidebar}}

{{ draft() }}

+

Firefox 26 Aurora (pre-Beta) will be released on . While it has been developed to maintain compatibility as much as possible, the new version includes some changes affecting backward compatibility aimed at improving interoperability with the other browsers or following the latest Web standards. Here's the list of such changes — hope this helps whenever you test your sites or applications.

+

This article only explains the changes that may affect backward compatibility for Websites. For the other new features and changes, please read the following documents:

+ +

This list may be updated until the release of the final version on , so please check back later. Follow @MozWebCompat on Twitter for further updates.

+
+

CSS

+
+ + +

The non-standard {{ cssxref("-moz-text-blink") }} property has been removed. Instead, the standard, still prefixed {{ cssxref("text-decoration-line") }} property now takes blink as a valid value. Actually it doesn't blink any content on Firefox though, from the perspective of accessibility. Note that the blink effect with text-decoration:blink has been dropped with Firefox 23.

+
+
+
+

DOM

+
+

type 属性不是 image 的 HTMLInputElement 元素的 width 和 height 属性会返回 0

+ +

Previously, the width and height properties of an {{ HTMLElement("input") }} returned the dimension of the element. To comply with the spec, those properties now return 0 if the type property is not image.

+
+
+

Setting document.domain in a sandboxed iframe is no longer allowed

+ +

Setting the {{ domxref("document.domain") }} property on a page embedded in an {{ HTMLElement("iframe") }} with the sandbox attribute will throw a security error from now on.

+
+
+

元素的 id 改变后,旧 id 不再是 window 对象的属性

+ +

An element with id is accessible through window.<id>. Previously, the DOM object remained on {{ domxref("window") }} even after the id of the element is programmatically changed. This odd behavior has been fixed with Firefox 26. The {{ domxref("document.getElementById") }} method, which is recommended to use in general, is not affected by this change.

+
+
+

MessageEvent has been updated

+ +

The {{ domxref("MessageEvent") }} interface has been updated to comply with the latest spec. The initMessageEvent method has been removed while the interface is now a constructor.

+
+
+

HTMLCanvasElement.mozGetAsFile has been deprecated

+ +

The non-standard mozGetAsFile method on the {{ domxref("HTMLCanvasElement") }} interface is now deprecated and will be removed soon. The standard toBlob method can be used instead.

+
+
+

UserDataHandler has been removed

+ +

The deprecated {{ domxref("UserDataHandler") }} interface has been removed. The {{ domxref("Node.setUserData") }} and {{ domxref("Node.getUserData") }} methods have already been removed with Firefox 22.

+
+
+ + +

The following methods on the XBL DOM Interface have been removed from the {{ domxref("Document") }} interface: getAnonymousNodes, getAnonymousElementByAttribute, getBindingParent and loadBindingDocument.

+
+
+

Various non-standard interfaces have been removed

+ +

As part of the ongoing effort to standardize global objects, the following non-standard interfaces have been removed: ChromeWindow, StorageIndexedDB, XULButtonElement, XULCheckboxElement, XULCommandDispatcher, XULCommandEvent, XULControlElement, XULDocument, XULElement, XULLabeledControlElement and XULPopupElement.

+
+
+
+

JavaScript

+
+

The reserved words are no longer allowed as function names

+ +

The reserved words cannot be used for function names. Starting with Firefox 26, such a usage will throw a SyntaxError. For example, function delete() { ... } is illegal.

+
+
+
+

Plug-ins

+
+

All plug-ins except Flash are now defaulted to Click-to-Play

+ +

Starting with Firefox 26, plug-ins require user interaction to be activated. With the exception of the popular Adobe Flash Player, all plug-in content embedded in a Web page is now disabled by default and enabled by user's click. This change has been made in order to improve security and performance of the browser. See the Mozilla Security Blog for details. Web developers are encouraged to leverage modern Web technologies, including HTML5, to provide richer user experience.

+
+
diff --git a/files/zh-cn/mozilla/firefox/releases/27/index.html b/files/zh-cn/mozilla/firefox/releases/27/index.html new file mode 100644 index 0000000000..7f9f6a9028 --- /dev/null +++ b/files/zh-cn/mozilla/firefox/releases/27/index.html @@ -0,0 +1,45 @@ +--- +title: Firefox 27 for developers +slug: Mozilla/Firefox/Releases/27 +translation_of: Mozilla/Firefox/Releases/27 +--- +
{{FirefoxSidebar}}

Web 开发者需要注意的变化

+

开发者工具

+ +

更多详情, 请看这篇文章.

+

CSS

+ +

HTML

+ +

JavaScript

+

EcmaScript 6 (Harmony) 实现了:

+ +

Interfaces/APIs/DOM

+

No change.

+

MathML

+

No change.

+

SVG

+

No change.

+

附加组件和 Mozilla 开发者需要注意的变化

+ +

相关链接

+ +

更早版本

+

{{Firefox_for_developers('26')}}

diff --git a/files/zh-cn/mozilla/firefox/releases/28/index.html b/files/zh-cn/mozilla/firefox/releases/28/index.html new file mode 100644 index 0000000000..1e41a0b20d --- /dev/null +++ b/files/zh-cn/mozilla/firefox/releases/28/index.html @@ -0,0 +1,117 @@ +--- +title: Firefox 28 for developers +slug: Mozilla/Firefox/Releases/28 +tags: + - Firefox + - Firefox 28 +translation_of: Mozilla/Firefox/Releases/28 +--- +
{{FirefoxSidebar}}

Firefox 28 was released on March 18, 2014. This article lists key changes that are useful not only for web developers, but also Firefox and Gecko developers as well as add-on developers.

+ +

Changes for Web developers

+ +

Developer Tools

+ + + +

More details in this post.

+ +

CSS

+ + + +

HTML

+ + + +

JavaScript

+ + + +

Interfaces/APIs/DOM

+ + + +

MathML

+ + + +

SVG

+ +

No change.

+ +

Audio/Video

+ + + +

Network

+ + + +

Changes for addon and Mozilla developers

+ + + +

Security

+ + + +

See also

+ + + +

Older versions

+ +

{{Firefox_for_developers('27')}}

diff --git a/files/zh-cn/mozilla/firefox/releases/28/site_compatibility/index.html b/files/zh-cn/mozilla/firefox/releases/28/site_compatibility/index.html new file mode 100644 index 0000000000..c2a74bad9f --- /dev/null +++ b/files/zh-cn/mozilla/firefox/releases/28/site_compatibility/index.html @@ -0,0 +1,56 @@ +--- +title: Site Compatibility for Firefox 28 +slug: Mozilla/Firefox/Releases/28/Site_Compatibility +translation_of: Mozilla/Firefox/Releases/28/Site_Compatibility +--- +
{{FirefoxSidebar}}

DOM

+
+
+ + +

{{ domxref("PluginArray") }} 接口, 通常就是指 {{ domxref("window.navigator.plugins") }} 属性, 现在不再是可以枚举的了. 这么做主要是为了防止网站通过某些技术手段窃取用户隐私. 不过开发人员仍然可以使用 {{ domxref("window.navigator.mimeTypes") }} 接口来判断浏览器支持哪些 MIME 类型. 这一变更可能会给一些已有的代码带来兼容性问题.

+
+
+

showModalDialog has been deprecated

+ +

The {{ domxref("window.showModalDialog") }} method, originally from Internet Explorer, is now considered deprecated. The {{ domxref("window.open") }} method should be used instead.

+
+
+

Make sure the deep argument is specified for cloneNode and importNode

+ +

The {{ domxref("Node.cloneNode") }} and {{ domxref("document.importNode") }} methods take the boolean deep argument. It's optional in the DOM4 specification, and if omitted, these methods acted as if the value of deep was true. But this behavior has been changed in the latest spec, and if omitted, the methods will act as if the value was false. Though It's still optional, Firefox now warns developers in console not to omit the argument for the forward compatibility.

+
+
+

History objects now throw if the document is inactive

+ +

The spec of the {{ domxref("History") }} interface has been updated, and the properties and methods now throw a SecurityError exception when those are called on an inactive {{ domxref("document") }}. It would be a problem if you are manipulating {{ domxref("window.history") }} in an {{ HTMLElement("iframe") }}.

+
+
+
+

Networking

+
+

SPDY/2 support has been dropped

+ +

The support of SPDY Protocol Draft 2 has been removed. Web sites should upgrade to SPDY/3 or 3.1.

+
+
+
+

Video/Audio

+
+

canPlayType('video/webm') now returns 'maybe'

+ +

The canPlayType method of the {{ domxref("HTMLMediaElement") }} interface has been updated to comply with the spec. canPlayType('video/webm') and canPlayType('audio/webm') now return 'maybe' instead of 'probably', because media can be encoded with a codec that Firefox doesn't support. If a codec is specified in the type argument, the method returns 'probably' or '' (empty string) depending on the codec. For example, canPlayType('video/webm; codecs=vp8') returns 'probably'.

+
+
diff --git a/files/zh-cn/mozilla/firefox/releases/3.6/index.html b/files/zh-cn/mozilla/firefox/releases/3.6/index.html new file mode 100644 index 0000000000..8bc9182b45 --- /dev/null +++ b/files/zh-cn/mozilla/firefox/releases/3.6/index.html @@ -0,0 +1,305 @@ +--- +title: Firefox 3.6 for developers +slug: Mozilla/Firefox/Releases/3.6 +translation_of: Mozilla/Firefox/Releases/3.6 +--- +

Firefox 3.6 offers support for new and developing web standards, increased performance, and an overall better experience for web users and developers. This page provides links to articles covering the new capabilities of Firefox 3.6.

+ +

For web site and application developers

+ +

CSS

+ +
+
Using gradients
+
Firefox 3.6 adds support for the proposed -moz-linear-gradient and -moz-radial-gradient properties  for background.
+
Multiple backgrounds
+
The background property (as well as background-color, background-image, background-position, background-repeat, and background-attachment) now supports multiple backgrounds. This lets you specify multiple backgrounds that are rendered atop one another in layers.
+
Mozilla-specific media features
+
Media features have been added for Mozilla-specific system metrics, so that media queries can be used to more safely check on the availability of features such as touch support.
+
Scaling background images
+
The background-size property from the CSS 3 Backgrounds and Borders draft is now supported under the name -moz-background-size.
+
WOFF font support
+
@font-face now supports the WOFF downloadable font file format.
+
Pointer events
+
The pointer-events property lets content specify whether or not an element may be the target of mouse pointer events.
+
+ +

Miscellaneous CSS changes

+ + + +

HTML

+ +
+
Using files from web applications
+
Support for the new HTML5 File API has been added to Gecko, making it possible for web applications to access local files selected by the user. This includes support for selecting multiple files using the input type="file" HTML element's new multiple attribute.
+
HTML5 video supports poster frames
+
The poster attribute is now supported for the video element, allowing content to specify a poster frame to be displayed until the video begins to play.
+
Checkboxes and radio buttons support the indeterminate property
+
HTML input elements of types checkbox and radio now support the indeterminate property, which allows a third, "indeterminate" state.
+
Canvas image smoothing can be controlled
+
The new mozImageSmoothingEnabled property can be used to turn on and off image smoothing when scaling in canvas elements.
+
Asynchronous script execution
+
By setting the async attribute on a script element, the script will not block loading or display of the rest of the page. Instead the script executes as soon as it is downloaded.
+
+ +

JavaScript

+ +

Gecko 1.9.2引入了JavaScript 1.8.2, 该版本的JavaScript添加了许多来自ECMAScript 5的新的语言特性:

+ + + +
+
+ +

DOM

+ +
+
Web workers可以自行终止
+
Workers 开始支持nsIWorkerScope.close()方法, 该方法允许它们终止自身的运行.
+
支持文件的拖放
+
DataTransfer对象提供的拖拽监听器现在可以包含一个被拖拽的文件列表.
+
Checking to see if an element matches a specified CSS selector
+
The new element.mozMatchesSelector method lets you determine whether or not an element matches a specified CSS selector. See bug 518003.
+
Detecting device orientation
+
Content can now detect the orientation of the device if it has a supported accelerometer, using the MozOrientation event. Firefox 3.6 supports the accelerometer in Mac laptops.
+
Detecting document width and height changes
+
The new MozScrollAreaChanged event is dispatched whenever the document's scrollWidth and/or scrollHeight properties change.
+
+ +

Miscellaneous DOM changes

+ + + +

XPath

+ +
+
支持choose()方法
+
XPath开始支持choose()方法.
+
+ +

For XUL and add-on developers

+ +

If you're an extension developer, you should start by reading Updating extensions for Firefox 3.6, which offers a helpful overview of what changes may affect your extension. Plug-in developers should read Updating plug-ins for Firefox 3.6.

+ +

New features

+ +
+
Detecting device orientation
+
Content can now detect the orientation of the device if it has a supported accelerometer, using the MozOrientation event. Firefox 3.6 supports the accelerometer in Mac laptops.
+
Monitoring HTTP activity
+
You can now monitor HTTP transactions to observe requests and responses in real time.
+
Working with the Windows taskbar
+
It's now possible to customize the appearance of windows in the taskbar in Windows 7 or later. This has been disabled by default in Firefox 3.6.
+
+ +

Places

+ + + +

Storage

+ +
+
Locale-aware collation of data is now supported by the Storage API
+
Gecko 1.9.2 added several new collation methods to provide optimized collation (sorting) of results using locale-aware techniques.
+
Properties on a statement can now be enumerated
+
You can now use a for..in enumeration to enumerate all the properties on a statement.
+
mozIStorageStatement's getParameterIndex changed behavior between 3.5 and 3.6.
+
See bug 528166 for details.
+
Asynchronously bind multiple sets of parameters and execute a statement.
+
See bug 490085 for details. Documentation coming soon.
+
+ +

Preferences

+ + + +

Themes

+ +

See Updating themes for Firefox 3.6 for a list of changes related to themes.

+ +
+
Lightweight themes
+
Firefox 3.6 supports lightweight themes; these are easy-to-create themes that simply apply a background to the top (URL bar and button bar) and bottom (status bar) of browser windows. This is an integration of the existing Personas theme architecture into Firefox.
+
+ +

Miscellaneous

+ + + +

Firefox/Gecko开发

+ +

Certain changes are only really interesting if you work on the internals of Firefox itself.

+ +

Interfaces merged

+ +

The following interfaces have been combined together:

+ + + +

Interfaces removed

+ +

The following interfaces have been removed entirely because they were unused, unimplemented, or obsolete:

+ + + +

Interfaces moved

+ +

The following interfaces have been relocated from their previous IDL files into new ones:

+ + + +

A large number of interfaces have been moved. See Interfaces moved in Firefox 3.6 for a complete list.

+ +

Other interface changes

+ +

The following assorted changes have been made:

+ + + +

Changes in accessibility code

+ + + +

相关链接

+ + diff --git a/files/zh-cn/mozilla/firefox/releases/3/index.html b/files/zh-cn/mozilla/firefox/releases/3/index.html new file mode 100644 index 0000000000..561c473cd3 --- /dev/null +++ b/files/zh-cn/mozilla/firefox/releases/3/index.html @@ -0,0 +1,310 @@ +--- +title: 致Firefox 3开发者 +slug: Mozilla/Firefox/Releases/3 +tags: + - Firefox 3 +translation_of: Mozilla/Firefox/Releases/3 +--- +
{{FirefoxSidebar}}

如果你是一个Web开发人员,并且希望了解Firefox 3中所有的新特性,这里是一个很好的起点。这篇文章提供了一个覆盖所有Firefox 3新特性的列表。虽然他并不是能够包括所有微小的改动,但他能够帮助你学习到最主要的更新。

+

 

+

Firefox 3 中新的开发人员特性

+

对网站和程序开发者

+
+
+ 更新WEB应用以适应Firefox 3
+
+ 提供了您用于更新WEB应用以受益于Firefox 3新特性所需的信息。
+
+
+
+ 上线与离线事件
+
+ Firefox 3支持WHATWG的上线与离线事件,基于这一特性,程序可以检测当前是否有可用的互联网联接以及何时上线或下线。
+
+
+
+ 跨域的XMLHttpRequest请求
+
+ Firefox 3支持W3C Access Control工作草案,使你有能够使用XMLHttpRequests检索和操作其他站点的数据;使你能够创造令人印象深刻的以浏览器为基础的交互式应用(mashups)。
+
+
+
+ 交错格式样表
+
+ Firefox 3 支持CSS 层叠式样式表 API.
+
+
+ 基于web的协议处理
+
+ 你现在可以使用navigator.registerProtocolHandler()方法注册web应用
+
+
+
+ 在画布(canvas)中“绘”出文字
+
+ 您可以使用Firefox 3支持的非标准API在canvas上绘制文字。
+
+
+
+ 支持画布变换
+
+ Firefox现在的canvas支持transform()setTransform()方法。
+
+
+
+ 使用微格式
+
+ Firefox现在有一组微格式的API。
+
+
+
+ 拖放事件
+
+ Firefox 3 支持新的拖放事件,当拖放开始和结束时,该事件将会被发送至源节点。
+
+ HTML的焦点管理
+
+
+
+ 新的HTML 5 支持activeElement和hasFocus属性
+
+
+
+ 离线浏览
+
+ 在Firefox中,WEB程序现在可以在离线时使用之前被缓存的资源。
+
+ 在Firefox 3中CSS的改进
+
+ Firefox 3 在支持CSS的功能上进行了一些完善。
+
+
+
+ 在Firefox 3中DOM的改进
+
+ Firefox 3 在Firefox3 DOM执行方面提供了一些新的功能,包括支持一些扩展的浏览器的DOM。
+
+
+
+ JavaScript 1.8 的支持
+
+ Firefox 3 提供了 JavaScript 1.8 标准的支持。
+
+
+
+ EXSLT支持
+
+ Firefox 3 提供了对 EXSLTXSLT的扩展)一个基本子集个支持。
+
+
+
+ Firefox 3中SVG的改进
+
+ Firefox 3 对SVG 的支持有了长足的改进:支持二十余个新透镜、一些新元素、一些新属性以及一些其他改进。
+
+
+
+ 对PNG动画的支持
+
+ Firefox 3 提供了对色彩艳丽的 PNG (APNG) 图像格式的支持.
+
+
+
+ <a ping>
+
+  现在可以使用 <a ping> 功能 ping 一个 URL ,并且此功能默认启用.
+
+

对XUL和扩展插件的开发者

+

 

+
+
+

   提供了你需要做的事情的向导,更新您的Firefox 3 扩展。

+
+
+ 更新扩展以兼容Firefox 3
+
+

FUEL 知识库

+
+
+ FUEL 使扩展开发者完成更有成效,更精悍的 XPCOM 规范代码并获得一些 "模式" JavaScript 思想。
+
+

   Firefox 3的提供了一些新的XUL元素,包括新的缩放法,日期和时间获取,以及旋转按钮。

+
+
+ Firefox  3在 XUL 上的改进   
+
+
+
+ Firefox 3的模板
+
+ Firefox 3的模板已显着改善 。关键的改进是,允许使用自定义查询处理器,除数据源之外还可以使用RDF。 
+
+

嵌入的XBL绑定

+
+
+ 现在,您可以使用 data: 网络协议直接嵌入XBL绑定,而不是在单独的XML文件中使用他们。 +

 

+
+
+ 本地化扩展描述
+
+ 这可让本地化的详细信息在附加组件被下载时或被禁用即时生效。 
+
+
+
+ 可靠更新
+
+

In order to provide a more secure add-on upgrade path for users, add-ons are now required to provide a secure method for obtaining updates before they can be installed. Add-ons hosted at

+

AMO

+

automatically provide this. Any add-ons installed that do not provide a secure update method when the user upgrades to Firefox 3 will be automatically disabled. Firefox will however continue to check for updates to the extension over the insecure path and attempt to install any update offered (installation will fail if the update also fails to provide a secure update method).

+
+
+ Idle service
+
+
+
+ Firefox 3 offers the new {{ Interface("nsIIdleService") }} interface, which lets extensions determine how long it's been since the user last pressed a key or moved their mouse.
+
+
+
+ 全屏缩放
+
+
+
+ Firefox 3 improves the user experience by offering full page zoom in addition to text-only zoom.
+
+
+
+ Interfacing with the XPCOM cycle collector
+
+
+
+ XPCOM code can now take advantage of the cycle collector, which helps ensure that unused memory gets released instead of leaking.
+
+
+
+ The Thread Manager
+
+
+
+ Firefox 3 provides the new {{ Interface("nsIThreadManager") }} interface, along with new interfaces for threads and thread events, which provides a convenient way to create and manage threads in your code.
+
+
+
+ JavaScript模块
+
+
+
+ Firefox 3 now offers a new shared code module mechanism that lets you easily create modules in JavaScript that can be loaded by extensions and applications for use, much like shared libraries.
+
+
+
+ Places
+
+
+
+ The history and bookmarks APIs have been completely replaced by the new Places API.
+
+
+
+ Making the transition to Places
+
+
+
+ An article about how to update an existing extension to use the Places API.
+
+
+
+ Firefox 3中下载管理器的改进
+
+
+
+ The Firefox 3 Download Manager features new and improved APIs, including support for multiple progress listeners.
+
+
+
+ Using nsILoginManager
+
+
+
+ 密码管理已经被新的登录管理所代替。
+
+
+
+ Using content preferences
+
+
+
+ Firefox 3 includes a new service for getting and setting arbitrary site-specific preferences that extensions as well as core code can use to keep track of their users' preferences for individual sites.
+
+
+
+ Notable bugs fixed in Firefox 3
+
+
+
+ 文章中所提供的相关Bug信息,已经在Firefox 3中进行了修改。
+
+
+
+ Firefox 3 的界面改动
+
+
+
+ Notes and information of use to people who want to create themes for Firefox 3.
+
+

最终用户将能体验到的新特性

+

用户体验

+ +

安全和隐私

+ + +

性能

+ +

参见

+ +

{{ languages( { "es": "es/Firefox_3_para_desarrolladores", "fr": "fr/Firefox_3_pour_les_d\u00e9veloppeurs", "ja": "ja/Firefox_3_for_developers", "zh-tw": "zh_tw/Firefox_3_for_developers", "zh-cn": "cn/Firefox_3_for_developers", "ko": "ko/Firefox_3_for_developers", "pl": "pl/Firefox_3_dla_programist\u00f3w", "pt": "pt/Firefox_3_para_desenvolvedores" } ) }}

diff --git a/files/zh-cn/mozilla/firefox/releases/3/site_compatibility/index.html b/files/zh-cn/mozilla/firefox/releases/3/site_compatibility/index.html new file mode 100644 index 0000000000..b8b2678b12 --- /dev/null +++ b/files/zh-cn/mozilla/firefox/releases/3/site_compatibility/index.html @@ -0,0 +1,26 @@ +--- +title: Gecko 1.9 Changes affecting websites +slug: Mozilla/Firefox/Releases/3/Site_compatibility +translation_of: Mozilla/Firefox/Releases/3/Site_compatibility +--- +
{{FirefoxSidebar}}

此页设法提供在 Gecko 1.8 和 Gecko 1.9 之间的变动概要,这些变动可能会影响某些网站的行为或网页渲染。

+

参见 Firefox 3 开发者参考

+

事件

+

捕获 load 事件监听

+

在 Gecko 1.8 中,不能在图片上设置 load 事件监听。 在 Gecko 1.9 中,已在 {{ Bug(234455) }} 中修复。 但是在某些网站中,由于捕获 load 事件的事件监听器不正确而导致问题。参见 {{ Bug(335251) }} 中的讨论。 要修复这个问题,出错的页面不再需要设置事件监听器。

+

例如,如下:

+
window.addEventListener('load', yourFunction, true);
+
+

应该更改为:

+
window.addEventListener('load', yourFunction, false);
+
+

事件捕获如何工作的解释,参见 DOM Level 2 事件捕获

+

preventBubble 已被移出

+

少许旧的事件 API 不再被支持

+

DOM

+

WRONG_DOCUMENT_ERR

+

范围

+

intersectsNode 已被移出

+

compareNode 已被移出

+

HTML

+

<object> 中的许多 bug 已经修复

diff --git a/files/zh-cn/mozilla/firefox/releases/31/index.html b/files/zh-cn/mozilla/firefox/releases/31/index.html new file mode 100644 index 0000000000..a22131fe8c --- /dev/null +++ b/files/zh-cn/mozilla/firefox/releases/31/index.html @@ -0,0 +1,46 @@ +--- +title: Firefox 31 for developers +slug: Mozilla/Firefox/Releases/31 +translation_of: Mozilla/Firefox/Releases/31 +--- +
{{FirefoxSidebar}}

Web 开发者需要关注的变化

+

Developer Tools

+

No change.

+

CSS

+ +

HTML

+

No change.

+

JavaScript

+

实现了如下 ECMAScript 6 新特性:

+ +

Interfaces/APIs/DOM

+ +

MathML

+

No change.

+

SVG

+

No change.

+

Audio/Video

+

No change.

+

Security

+

No change.

+

Changes for add-on and Mozilla developers

+

No change.

+

See also

+ +

Older versions

+

{{Firefox_for_developers('30')}}

diff --git a/files/zh-cn/mozilla/firefox/releases/32/index.html b/files/zh-cn/mozilla/firefox/releases/32/index.html new file mode 100644 index 0000000000..b2bfbc3fd9 --- /dev/null +++ b/files/zh-cn/mozilla/firefox/releases/32/index.html @@ -0,0 +1,154 @@ +--- +title: Firefox 32 for developers +slug: Mozilla/Firefox/Releases/32 +tags: + - Firefox + - Firefox 31 +translation_of: Mozilla/Firefox/Releases/32 +--- +
{{FirefoxSidebar}}

普通 Web 开发者应该注意的变化

+ +

开发者工具

+ +

Highlights:

+ + + +

All devtools bugs fixed between Firefox 31 and Firefox 32.

+ +

CSS

+ + + +

HTML

+ + + +

JavaScript

+ + + +

Interfaces/APIs/DOM

+ + + +

MathML

+ + + +

SVG

+ +

No change.

+ +

WebRTC

+ + + +

Audio/Video

+ +

No change.

+ +

Security

+ + + +

附加组件 和 Mozilla 开发者应该注意的变化

+ +

Xray vision is now applied to JavaScript objects that are not themselves DOM objects: Xrays for JavaScript objects.

+ +

getDataDirectory() method has been added to Addon instances. This method returns the preferred location, within the current profile, for add-ons to store data.

+ +

 

+ +

Add-on SDK

+ +

Highlights

+ + + +

Details

+ +

GitHub commits made between Firefox 31 and Firefox 32. This will not include any uplifts made after this release entered Aurora.

+ +

Bugs fixed between Firefox 31 and Firefox 32. This will not include any uplifts made after this release entered Aurora.

+ +

XPCOM

+ + + +

 

+ +

相关链接

+ + + +

Older versions

+ +

{{Firefox_for_developers('31')}}

diff --git a/files/zh-cn/mozilla/firefox/releases/33/index.html b/files/zh-cn/mozilla/firefox/releases/33/index.html new file mode 100644 index 0000000000..accca764bf --- /dev/null +++ b/files/zh-cn/mozilla/firefox/releases/33/index.html @@ -0,0 +1,38 @@ +--- +title: Firefox 33 for developers +slug: Mozilla/Firefox/Releases/33 +translation_of: Mozilla/Firefox/Releases/33 +--- +
{{FirefoxSidebar}}

普通 Web 开发者应该注意的变化

+

Developer Tools

+

No change.

+

CSS

+ +

HTML

+

No change.

+

JavaScript

+ +

Interfaces/APIs/DOM

+

No change.

+

MathML

+

No change.

+

SVG

+

No change.

+

Audio/Video

+

No change.

+

Security

+

No change.

+

附加组件 和 Mozilla 开发者应该注意的变化

+

No change.

+

相关链接

+ +

更早版本

+

{{Firefox_for_developers('32')}}

diff --git a/files/zh-cn/mozilla/firefox/releases/35/index.html b/files/zh-cn/mozilla/firefox/releases/35/index.html new file mode 100644 index 0000000000..c7d75e5f94 --- /dev/null +++ b/files/zh-cn/mozilla/firefox/releases/35/index.html @@ -0,0 +1,213 @@ +--- +title: Firefox 35 开发者相关变更清单 +slug: Mozilla/Firefox/Releases/35 +tags: + - Firefox + - Firefox 35 +translation_of: Mozilla/Firefox/Releases/35 +--- +
Firefox 35 was released on January 13th, 2015. This article lists key changes that are useful not only for web developers, but also Firefox and Gecko developers as well as add-on developers.
+ +

Web 开发者相关变更

+ +

开发者工具

+ +

Highlights:

+ + + +

All devtools bugs fixed between Firefox 34 and Firefox 35.

+ +

CSS

+ + + +

HTML

+ + + +

JavaScript

+ + + +

接口/APIs/DOM

+ + + +

 MathML

+ + + +

SVG

+ +

无变化。

+ +

音频/视频

+ +

无变化。

+ +

网络 & 安全

+ + + +

附加组件和 Mozilla 开发者相关的变更

+ +

XUL & 附加组件

+ + + +

Add-on SDK

+ +

Highlights

+ + + +

明细

+ +

Firefox 34 到 Firefox 35 的 GitHub 提交. This will not include any uplifts made after this release entered Aurora.

+ +

Bugs fixed between Firefox 34 and Firefox 35. This will not include any uplifts made after this release entered Aurora.

+ +

 

+ +

See also

+ + + +

 

+ +

以往版本

+ +
+ +
diff --git a/files/zh-cn/mozilla/firefox/releases/41/index.html b/files/zh-cn/mozilla/firefox/releases/41/index.html new file mode 100644 index 0000000000..9e373c6bf7 --- /dev/null +++ b/files/zh-cn/mozilla/firefox/releases/41/index.html @@ -0,0 +1,209 @@ +--- +title: Firefox 41 for developers +slug: Mozilla/Firefox/Releases/41 +tags: + - Firefox + - Firefox 41 +translation_of: Mozilla/Firefox/Releases/41 +--- +
{{FirefoxSidebar}}
To test the latest developer features of Firefox,
+install Firefox Developer Edition
Firefox 41 was released on September 22, 2015. This article lists key changes that are useful not only for web developers, but also Firefox and Gecko developers as well as add-on developers.
+ +

Changes for Web developers

+ +

开发工具

+ +

Highlights:

+ + + +

All devtools bugs fixed between Firefox 40 and Firefox 41: note that many of these bugs, especially those relating to the performance tools, were uplifted to Firefox 40.

+ +

CSS

+ + + +

HTML

+ + + +

JavaScript

+ + + +

Interfaces/APIs/DOM

+ + + +

Events

+ + + +

Web Crypto

+ + + +

Canvas API

+ + + +

Service Workers

+ + + +

WebGL

+ + + +

WebRTC

+ + + +

Miscellaneous

+ + + +

MathML

+ +

新的默认、支持字体处理

+ +

数学公式需要特殊的字体. 到目前为止, 这些字体被硬编码在用户默认样式 mathml.css (使用{{MathMLElement("math")}} 标志设置字体组) 和偏好选项font.mathfont-family (为拉伸和大操作数设置支持字体). Firefox 41 引入一个能够自动设置<math>标志和相应偏好选项的内置x-math 语言 (例如font.name.serif.x-math). 用户默认样式现在将<math>标志字体设置为serif 并且font.mathfont-family 被替换为 font.name.serif.x-math.  所有平台现在基本使用相同列表的支持字体, "Latin Modern Math" 是首选.在标准的 per-language字体偏好菜单中,默认支持字体能够被设置. 更多细节,请参照{{bug(947654)}} 和 {{bug(1160456)}}.

+ +

SVG

+ + + +

音频/视频

+ + + +

Networking

+ + + +

Security

+ + + +

Changes for add-on and Mozilla developers

+ +

XUL

+ +

没有变化。

+ +

JavaScript code modules

+ +

没有变化。

+ +

XPCOM

+ +

没有变化。

+ +

其他

+ + + +

See also

+ + + +

之前版本

+ +

{{Firefox_for_developers('40')}}

diff --git a/files/zh-cn/mozilla/firefox/releases/43/index.html b/files/zh-cn/mozilla/firefox/releases/43/index.html new file mode 100644 index 0000000000..81566a6373 --- /dev/null +++ b/files/zh-cn/mozilla/firefox/releases/43/index.html @@ -0,0 +1,173 @@ +--- +title: Firefox 43 for developers +slug: Mozilla/Firefox/Releases/43 +tags: + - Firefox +translation_of: Mozilla/Firefox/Releases/43 +--- +
{{FirefoxSidebar}}

To test the latest developer features of Firefox,
+ install Firefox Developer Edition
Firefox 43 was released on December 15, 2015. This article lists key changes that are useful not only for web developers, but also Firefox and Gecko developers as well as add-on developers.

+ +

Changes for Web developers

+ +

Developer Tools

+ +

Highlights:

+ + + +

All devtools bugs fixed between Firefox 42 and Firefox 43.

+ +

CSS

+ + + +

HTML

+ + + +

JavaScript

+ +

New APIs

+ + + +

Changes regarding the arguments object

+ + + +

Other changes

+ + + +

Interfaces/APIs/DOM

+ +

DOM & HTML DOM

+ +

No change.

+ +

IndexedDB

+ + + +

Service Workers

+ + + +

WebRTC

+ + + +

Miscellaneous

+ + + +

MathML

+ +

No change.

+ +

SVG

+ +

No change.

+ +

Audio/Video

+ +

No change.

+ +

HTTP

+ +

No change.

+ +

Networking

+ +

No change.

+ +

Security

+ + + +

Changes for add-on and Mozilla developers

+ +

Interfaces

+ +

No change

+ +

XUL

+ +

No change.

+ +

JavaScript code modules

+ +

No change.

+ +

XPCOM

+ +

No change.

+ +

Plugins

+ + + +

Other

+ +

No change.

+ +

See also

+ + + +

Older versions

+ +

{{Firefox_for_developers('42')}}

diff --git a/files/zh-cn/mozilla/firefox/releases/44/index.html b/files/zh-cn/mozilla/firefox/releases/44/index.html new file mode 100644 index 0000000000..d18ac693ac --- /dev/null +++ b/files/zh-cn/mozilla/firefox/releases/44/index.html @@ -0,0 +1,222 @@ +--- +title: Firefox 44 for developers +slug: Mozilla/Firefox/Releases/44 +translation_of: Mozilla/Firefox/Releases/44 +--- +
{{FirefoxSidebar}}

为了测试火狐最新的开发人员特性,请安装火狐开发人员版(Firefox Developer Edition )Firefox 44 于2016年1月26号发布。这个页面列出了对开发人员有用的关键变化。

+ +

对于Web开发人员的变化

+ +

开发者工具

+ +

{{page('/en-US/docs/Tools/Release_notes', 'Firefox_44')}}

+ +

HTML

+ + + +

CSS

+ + + +

JavaScript

+ +

New APIs

+ + + +

Changes

+ + + +

Removals

+ + + +

Interfaces/APIs/DOM

+ +

DOM & HTML DOM

+ + + +

Canvas

+ + + +

WebGL

+ + + +

IndexedDB

+ + + +

Service Workers

+ + + +

WebRTC

+ + + +

New APIs

+ + + +

Miscellaneous

+ + + +

MathML

+ +

No change.

+ +

SVG

+ +

No change.

+ +

Audio/Video

+ +

No change.

+ +

HTTP

+ + + +

Networking

+ +

No change.

+ +

Security

+ + + +

Changes for add-on and Mozilla developers

+ +

Interfaces

+ +

No change

+ +

XUL

+ +

No change.

+ +

JavaScript code modules

+ + + +

XPCOM

+ + + +

Other

+ + + +

See also

+ + + +

Older versions

+ +

{{Firefox_for_developers(43)}}

diff --git a/files/zh-cn/mozilla/firefox/releases/45/index.html b/files/zh-cn/mozilla/firefox/releases/45/index.html new file mode 100644 index 0000000000..e288cbacc6 --- /dev/null +++ b/files/zh-cn/mozilla/firefox/releases/45/index.html @@ -0,0 +1,187 @@ +--- +title: Firefox 45 for developers +slug: Mozilla/Firefox/Releases/45 +tags: + - Firefox + - Firefox 45 +translation_of: Mozilla/Firefox/Releases/45 +--- +
{{FirefoxSidebar}}

安装Firefox开发者版本,
+ 以便测试Firefox最新的功能
Firefox 45 was released on March 8, 2016. This article lists key changes that are useful not only for web developers, but also Firefox and Gecko developers as well as add-on developers.

+ +

针对网络开发者的功能更新

+ +

开发工具

+ +

{{page('/en-US/docs/Tools/Release_notes', 'Firefox_45')}}

+ +

HTML

+ + + +

CSS

+ + + +

JavaScript

+ + + +

Interfaces/APIs/DOM

+ +

DOM & HTML DOM

+ + + +

WebGL

+ +

Our implementation of WebGL2 have been extended:

+ + + +

IndexedDB

+ +

No change.

+ +

Service Workers

+ + + +

WebRTC

+ +

No change.

+ +

New APIs

+ +

No change.

+ +

Miscellaneous

+ + + +

MathML

+ +

 

+ +

No change.

+ +

SVG

+ + + +

Audio/Video

+ + + +

HTTP

+ + + +

Security

+ + + +

Changes for add-on and Mozilla developers

+ +

Interfaces

+ +

No change.

+ +

XUL

+ + + +

JavaScript code modules

+ +

No change.

+ +

XPCOM

+ +

No change.

+ +

Search plugins

+ +

Starting in Firefox 45, search plugins located in the user's profile's searchpluginsdirectory are no longer automatically loaded on startup. Instead, a list of user-installed plugins is maintained and only those plugins are loaded. In effect, this means that the only ways to install new search plugins are for the user to do so in the Firefox UX (via OpenSearch discovery, for instance) or for an add-on to install it. Also, when a new search plugin is installed, more information is recorded about where it came from, for future use by profile debugging and cleaning tools.

+ +

 

+ +

Other

+ + + +

 

+ +

See also

+ + + +

Older versions

+ +

{{Firefox_for_developers(44)}}

diff --git a/files/zh-cn/mozilla/firefox/releases/49/index.html b/files/zh-cn/mozilla/firefox/releases/49/index.html new file mode 100644 index 0000000000..d1afa7f9a6 --- /dev/null +++ b/files/zh-cn/mozilla/firefox/releases/49/index.html @@ -0,0 +1,348 @@ +--- +title: Firefox 49 for developers +slug: Mozilla/Firefox/Releases/49 +tags: + - Firefox + - Firefox 49 +translation_of: Mozilla/Firefox/Releases/49 +--- +
{{FirefoxSidebar}}

To test the latest developer features of Firefox,
+ install Firefox Developer Edition
Firefox 49 was released on September 20, 2016. This article lists key changes that are useful not only for web developers, but also Firefox and Gecko developers as well as add-on developers.

+ +

对于Web开发者的改变

+ +

开发者工具

+ + + +

HTML

+ + + +

CSS

+ + + +

JavaScript

+ + + +

Interfaces/APIs/DOM

+ +

DOM & HTML DOM

+ + + +

Canvas

+ + + +

WebGL

+ + + +

IndexedDB

+ + + + + + + +

Media Streams

+ + + +

WebRTC

+ + + +

New APIs

+ + + +

Others

+ + + +

MathML

+ +

No change.

+ +

SVG

+ + + +

Audio/Video

+ +

没有改变.

+ +

Plugins and Flash

+ +

Beginning in Firefox 49, Firefox, by default, blocks certain kinds of Flash content that aren't necessary for sites to function well. This behavior, controlled by the preference browser.safebrowsing.blockedURIs.enabled, helps to improve the performance of sites and Firefox in general without having significant impact on site usability. It also helps improve stability of the browsing experience by elminating a major cause of crashes. The blocked Flash modules include several used just for fingerprinting purposes, as well as a number of "supercookie" modules, and in the future may be expanded to include more types of blocked modules. See {{bug(1275591)}} for details.

+ +

This marks the next step in the journey toward a plugin-free future. HTML is very close to the point where plugins will no longer be needed to get the job done.

+ +

HTTP

+ + + +

Networking

+ + + +

Security

+ + + +

Compatibility

+ +

为了增强兼容性对于现在已经存在的内容, Firefox 现在接受一些 webkit 前缀 properties and attributes.

+ + + +

改变对于 add-on and Mozilla developers

+ +

WebExtensions

+ + + +

Interfaces

+ + + +

Other

+ +

没有改变.

+ +

See also

+ + + +

Older versions

+ +

{{Firefox_for_developers(48)}}

diff --git a/files/zh-cn/mozilla/firefox/releases/56/index.html b/files/zh-cn/mozilla/firefox/releases/56/index.html new file mode 100644 index 0000000000..e7e2870e37 --- /dev/null +++ b/files/zh-cn/mozilla/firefox/releases/56/index.html @@ -0,0 +1,129 @@ +--- +title: Firefox 56 for developers +slug: Mozilla/Firefox/Releases/56 +translation_of: Mozilla/Firefox/Releases/56 +--- +
{{FirefoxSidebar}}
+

本文介绍了一些在Firefox 56中的一些改进,这些改进会对开发者们产生影响。Firefox 56是当前Firefox的Beta版,预计在2017年9月26日正式发布。

+ +
+

针对网页开发者们的若干改变

+ +

开发者工具

+ +
    +
  • 在CSS格检查器中显示以负号开始的行号({{bug(1369942)}}).
  • +
+ +

HTML

+ +
    +
  • 在打标签的窗体控件中采用labels 属性,比如 {{domxref("HTMLInputElement.labels")}} ({{bug(556743)}}).
  • +
  • 实现了 <link rel="preload">; 更详细的内容,可以参见 Preloading content with rel="preload"  ({{bug(1222633)}}). 需要注意的是,当前的Firefox只支持对可缓存的资源进行预加载。
  • +
+ +

CSS

+ +
    +
  • 实现了Mozilla自有的属性 {{cssxref("<color>")}} 值为 -moz-win-accentcolor 以及 -moz-win-accentcolortext (可以参见 {{bug(1344910)}}), 以及专用的媒体查询语句 -moz-windows-accent-color-in-titlebar (参见{{bug(1379938)}}).
  • +
+ +

SVG

+ +

无修改.

+ +

JavaScript

+ +
    +
  • The Intl API has been enabled on Firefox for Android ({{bug(1344625)}}).
  • +
+ +

APIs

+ +

New APIs

+ +

No changes.

+ +

DOM

+ +
    +
  • On Mac, {{domxref("Document.hidden")}} is now true when the window is behind another non-translucent application {{bug(1236512)}}.
  • +
  • The {{domxref("Gamepad.displayId")}} property has been implemented ({{bug(1375816)}}).
  • +
  • The {{domxref("PerformanceTiming.secureConnectionStart")}} property has been implemented ({{bug(772589)}}).
  • +
  • Firefox used to accept iso-2022-jp-2 sequences silently when an iso-2022-jp {{domxref("TextDecoder.TextDecoder","TextDecoder()")}} was instantiated, however this has now been removed to simplify the API, as no other browsers support it and no pages seem to use it. ({{bug(715833)}}).
  • +
  • The 4ms clamping behaviour of {{domxref("WindowOrWorkerGlobalScope.setTimeout","setTimeout()")}} and {{domxref("WindowOrWorkerGlobalScope.setInterval","setInterval()")}} has been updated to be more in line with other browsers, as described in Timeouts throttled to >=4ms ({{bug(1378586)}}).
  • +
  • The Page Visibility API's {{domxref("Document.onvisibilitychange")}} handler has been added ({{bug("1333912")}}).
  • +
  • The {{domxref("Window.showModalDialog()")}} method has been removed ({{bug(981796)}}).
  • +
+ +

DOM events

+ +
    +
  • {{domxref("GlobalEventHandlers.onwheel")}} is now available on {{domxref("HTMLElement")}} — it wasn't before ({{bug(1370550)}}).
  • +
+ +

WebRTC

+ +
    +
  • Firefox now supports the {{domxref("RTCPeerConnection")}} properties which let you examine the current and pending configurations of the local and remote ends of the connection, to help manage changes in configuration: {{domxref("RTCPeerConnection.currentLocalDescription", "currentLocalDescription")}}, {{domxref("RTCPeerConnection.pendingLocalDescription", "pendingLocalDescription")}}, {{domxref("RTCPeerConnection.currentRemoteDescription", "currentRemoteDescription")}}, and {{domxref("RTCPeerConnection.pendingRemoteDescription", "pendingRemoteDescription")}}.
  • +
+ +

Canvas and WebGL

+ +
    +
  • The {{domxref("CanvasRenderingContext2D.drawImage()")}} method has been updated so that smoothing occurs when downscaling even if imageSmoothingEnabled is false. This is not mandatory as per spec, but follows Chrome's behaviour. See {{bug(1360415)}}.
  • +
  • An {{domxref("SVGImageElement")}} can now be used as a {{domxref("CanvasImageSource")}}, e.g. as the image source in a {{domxref("CanvasRenderingContext2D.drawImage","drawImage()")}} call ({{bug(1382027)}}).
  • +
+ +

Security

+ +

No changes.

+ +

Plugins

+ +

No changes.

+ +

Other

+ +
    +
  • Gecko now encodes URLs internally as punycode, to avoid URL encoding problems (see {{bug("945240")}}, also see discussion in {{bug("942074")}}).
  • +
  • Firefox on Windows and Mac OS X can now be made to run in headless mode using the -headless flag (see {{bug(1355150)}} and {{bug(1355147)}}).
  • +
+ +

Removals from the web platform

+ +

HTML

+ +
    +
  • The {{htmlelement("isindex")}} element has been removed from the HTML parser, and from form submission ({{bug(1266495)}}).
  • +
  • The {{htmlelement("applet")}} element has been removed ({{bug(1279218)}}).
  • +
+ +

APIs

+ +

No changes.

+ +

SVG

+ +

No changes.

+ +

Changes for add-on and Mozilla developers

+ +

WebExtensions

+ +

No changes.

+ +

See also

+ + +
+ + + +

Older versions

+ +

{{Firefox_for_developers(55)}}

+
diff --git a/files/zh-cn/mozilla/firefox/releases/59/index.html b/files/zh-cn/mozilla/firefox/releases/59/index.html new file mode 100644 index 0000000000..aca2ace7c6 --- /dev/null +++ b/files/zh-cn/mozilla/firefox/releases/59/index.html @@ -0,0 +1,130 @@ +--- +title: Firefox 59 for developers +slug: Mozilla/Firefox/Releases/59 +tags: + - '29' + - 发布说明 + - 火狐 +translation_of: Mozilla/Firefox/Releases/59 +--- +
{{FirefoxSidebar}}
{{draft}}
+ +

本文提供了有关Firefox 59中会影响开发人员的更改的信息。 Firefox 59已于2018年3月13日发布。

+ +
+

Web开发者应该注意的变化

+ +

开发工具

+ + + +

HTML

+ + + +

CSS

+ +

无变化。

+ +

SVG

+ +

无变化。

+ +

JavaScript

+ +

无变化。

+ +

APIs

+ +

新增API

+ + + +

DOM

+ +

无变化。

+ +

DOM 事件

+ + + +

多媒体 和 WebRTC

+ +

无变化。

+ +

Canvas 和 WebGL

+ +

无变化。

+ +

HTTP

+ +

无变化。

+ +

安全

+ + + +

插件

+ +

无变化。

+ +

其他

+ +

无变化。

+ +

Web平台的删减

+ +

HTML

+ +

无变化。

+ +

CSS

+ +

无变化。

+ +

APIs

+ + + +

SVG

+ +

无变化

+ +

Mozilla和附加组件开发者应该注意的变化

+ +

WebExtensions

+ +

无变化

+ +

参见

+ + +
+ + + +

历史版本

+ +

{{Firefox_for_developers(58)}}

diff --git a/files/zh-cn/mozilla/firefox/releases/62/index.html b/files/zh-cn/mozilla/firefox/releases/62/index.html new file mode 100644 index 0000000000..10a5c5423a --- /dev/null +++ b/files/zh-cn/mozilla/firefox/releases/62/index.html @@ -0,0 +1,187 @@ +--- +title: Firefox 62 for developers +slug: Mozilla/Firefox/Releases/62 +translation_of: Mozilla/Firefox/Releases/62 +--- +
{{FirefoxSidebar}}
{{FirefoxSidebar}}
+ +
{{draft}}
+ +

This article provides information about the changes in Firefox 62 that will affect developers. Firefox 62 is the current Beta version of Firefox, and will ship on September 5, 2018.

+ +

Changes for web developers

+ +

Developer tools

+ + + +

HTML

+ +

没有变化。

+ +

CSS

+ + + +

SVG

+ +

No changes.

+ +

JavaScript

+ + + +

APIs

+ +

New APIs

+ + + +

DOM

+ + + +

DOM events

+ +

No changes.

+ +

Service workers

+ +

No changes.

+ +

Media, Web Audio, and WebRTC

+ + + +

Canvas and WebGL

+ +

No changes.

+ + + +

CSSOM

+ + + +

HTTP

+ + + +

Security

+ +

No changes.

+ +

Plugins

+ +

No changes.

+ +

Other

+ +

No changes.

+ +

Removals from the web platform

+ +

HTML

+ +

No changes.

+ +

CSS

+ +

No changes.

+ +

APIs

+ +

No changes.

+ +

SVG

+ +

No changes.

+ +

Other

+ +

No changes.

+ +

Changes for add-on and Mozilla developers

+ +

WebExtensions

+ +

API changes

+ + + +

Manifest changes

+ + + +

Theme changes

+ + + +

Other changes

+ + + +

See also

+ + + +

Older versions

+ +

{{Firefox_for_developers(61)}}

diff --git a/files/zh-cn/mozilla/firefox/releases/65/index.html b/files/zh-cn/mozilla/firefox/releases/65/index.html new file mode 100644 index 0000000000..548193494e --- /dev/null +++ b/files/zh-cn/mozilla/firefox/releases/65/index.html @@ -0,0 +1,128 @@ +--- +title: Firefox 65 for developers +slug: Mozilla/Firefox/Releases/65 +tags: + - '65' +translation_of: Mozilla/Firefox/Releases/65 +--- +
{{FirefoxSidebar}}{{Draft}}
+ +

本文提供了有关 Firefox 65 中将影响开发者的更改信息。 Firefox 65 是当前的 Nightly 版本, 将于2019年1月29日发布。

+ +

为网页开发者带来的改变

+ +

开发者工具

+ +

移除

+ +

HTML

+ +

事件现在可以在禁用状态下的 HTML 元素上进行分发,如设置了 disabled 属性的 {{htmlelement("button")}}, {{htmlelement("fieldset")}}, {{htmlelement("input")}}, {{htmlelement("select")}},和 {{htmlelement("textarea")}} ({{bug(329509)}})。

+ +

移除

+ +

CSS

+ + + +

移除

+ + + +

SVG

+ +

无变化。

+ +

移除

+ +

JavaScript

+ +

移除

+ +

APIs

+ +

无变化。

+ +

新的 APIs

+ +

DOM

+ + + +

DOM events

+ + + +

Service workers

+ + + +

Media, Web Audio, 和 WebRTC

+ + + +

Canvas 和 WebGL

+ +

移除

+ + + +

安全

+ +

无变化。

+ +

移除

+ +

插件

+ +

无变化。

+ +

移除

+ +

其他

+ +

无变化。

+ +

移除

+ +

为附加组件开发者带来的改变

+ +

API 变化

+ +

移除

+ +

Manifest 变化

+ +

移除

+ +

参阅

+ + + +

更早期的版本

+ +

{{Firefox_for_developers(65)}}

diff --git a/files/zh-cn/mozilla/firefox/releases/68/index.html b/files/zh-cn/mozilla/firefox/releases/68/index.html new file mode 100644 index 0000000000..621bd205fb --- /dev/null +++ b/files/zh-cn/mozilla/firefox/releases/68/index.html @@ -0,0 +1,240 @@ +--- +title: 为开发者的 Firefox 68 文档 +slug: Mozilla/Firefox/Releases/68 +translation_of: Mozilla/Firefox/Releases/68 +--- +

{{FirefoxSidebar}}

+ +

本篇文章将提供关于在Firefox 68版本中,会影响到开发人员的更新的信息。Firefox 68版本发布于2019年7月9日。

+ +

面向开发者的变更

+ +

开发者工具

+ +

浏览器/网页控制台

+ + + +

JavaScript 调试器

+ + + +

网络监视器

+ + + +

页面查看器

+ + + +

存储查看器

+ + + +

其它

+ + + +

移除

+ + + +

HTML

+ + + +

 移除

+ + + +

CSS

+ + + +

Removals

+ + + +

SVG

+ +

No changes.

+ +

JavaScript

+ + + +

APIs

+ +

CSS Object Model (CSSOM)

+ + + +

DOM

+ + + +

DOM events

+ + + +

Media, Web Audio, and WebRTC

+ + + +

Removals

+ + + +

HTTP

+ + + +

Removals

+ + + +

Security

+ + + +

WebDriver conformance (Marionette)

+ +

Bug fixes

+ + + +

Other

+ + + +

Plugins

+ +

No changes.

+ +

Changes for add-on developers

+ +

API changes

+ + + +

显著变更

+ +

无变更。

+ +

还可以看看

+ + + +

更早的版本

+ +

{{Firefox_for_developers(67)}}

diff --git a/files/zh-cn/mozilla/firefox/releases/69/index.html b/files/zh-cn/mozilla/firefox/releases/69/index.html new file mode 100644 index 0000000000..88f1c741aa --- /dev/null +++ b/files/zh-cn/mozilla/firefox/releases/69/index.html @@ -0,0 +1,185 @@ +--- +title: 面向开发者的Firefox 69 +slug: Mozilla/Firefox/Releases/69 +translation_of: Mozilla/Firefox/Releases/69 +--- +

{{FirefoxSidebar}}

+ +

这篇文章将会围绕Firefox 69对于开发者产生的影响展开。

+ +

Firefox 69 发布于2019年9月3日。

+ +

对于web开发者的变化

+ +

开发者工具

+ +

Debugger(调试器)

+ + + +

Console(控制台)

+ + + +

Network(网络)

+ + + +

Inspector(查看器)

+ + + +

Remote debugging(远程调试)

+ + + +

General(日常)

+ + + +

HTML

+ + + +

 Removals

+ + + +

CSS

+ + + +

SVG

+ + + +

JavaScript

+ + + +

HTTP

+ + + +

APIs

+ +

New APIs

+ + + +

DOM

+ + + +

Media, Web Audio, and WebRTC

+ + + +

Removals

+ + + +

WebDriver conformance (Marionette)

+ +

Other

+ + + +

Changes for add-on developers

+ +

API changes

+ + + +

Other changes

+ + + +

See also

+ + + +

Older versions

+ +

{{Firefox_for_developers(68)}}

diff --git a/files/zh-cn/mozilla/firefox/releases/78/index.html b/files/zh-cn/mozilla/firefox/releases/78/index.html new file mode 100644 index 0000000000..1c28b03a7a --- /dev/null +++ b/files/zh-cn/mozilla/firefox/releases/78/index.html @@ -0,0 +1,116 @@ +--- +title: 对于开发人员的Firefox 78 +slug: Mozilla/Firefox/Releases/78 +translation_of: Mozilla/Firefox/Releases/78 +--- +

{{FirefoxSidebar}}

+ +

本文提供了有关Firefox 78中将影响开发人员的更改的信息。 Firefox 78发布于2020年6月30日.

+ +

另请参阅Firefox 78中的新增功能:DevTools的改进,新的正则表达式引擎以及Mozilla hacks上大量的Web平台更新。

+ +

对于Web开发人员的更改

+ +

开发者工具

+ +

调试器

+ + + +

网络监控器

+ + + +

其他工具

+ + + +

CSS

+ + + +

JavaScript

+ + + +

一些API

+ +

DOM

+ + + +

服务工作者

+ + + +

Web组装

+ + + +

TLS 1.0和1.1已被移除

+ + + +

对于附加组件开发人员的更改

+ + + +

参见

+ + + +

旧版本

+ +

{{Firefox_for_developers(77)}}

diff --git a/files/zh-cn/mozilla/firefox/releases/index.html b/files/zh-cn/mozilla/firefox/releases/index.html new file mode 100644 index 0000000000..9f16917cdc --- /dev/null +++ b/files/zh-cn/mozilla/firefox/releases/index.html @@ -0,0 +1,12 @@ +--- +title: 与Firefox开发者相关的发行说明 +slug: Mozilla/Firefox/Releases +tags: + - Firefox + - NeedsTranslation + - TopicStub +translation_of: Mozilla/Firefox/Releases +--- +
{{FirefoxSidebar}}

本页提供每个Firefox的版本的“与Firefox开发者相关的发行说明”文章的链接。这些日志文章可以让你查看每个Firefox版本增加了哪些功能和修复的错误。

+ +
{{ListSubpages("",1,1,1)}}
-- cgit v1.2.3-54-g00ecf