Mozilla Firefox 40.0 Beta 1 發布
Mozilla 發布 Mozilla Firefox 40.0 的 Beta 1 版本,基于 Gecko 40 內核開發,40 版本的最大改進是有望帶來類似 Chrome 的多進程設計,這樣可以提升內存的利用率從而提升性能和標簽/窗口之間的穩定性(但最新的版本似乎并沒有帶來),新設計的標簽頁可以自動判斷和展示您認為感興趣的內容,正式版本預計8月11日發布。
下載地址:
http://dm-download02.mozilla.org/pub/mozilla.org/mozilla.org/firefox/releases/40.0b1/
Web developersDeveloper Tools 方面的改進:
值得關注的更新:
其他:
-
Copy URL/Open in New Tab context menu items for Debugger source list pane
-
Style Editor: "Open Link In New Tab" item added to stylesheet list
-
Inspector selector search now includes class/id results even without css prefix
-
Tooltips in box-model view saying which CSS rule caused the value
-
Switch between color unit format in the Inspector using Shift+click
完整改進:all devtools bugs fixed between Firefox 39 and Firefox 40.
CSS
-
Prefixed rules (
-moz-) fortext-decoration-color,text-decoration-line, andtext-decoration-stylehave been removed (bug 1097922). -
The property
text-alignnow supports thematch-parentvalue (bug 645642). -
In Quirks Mode,
empty-cellsnow defaults toshow, like in standard mode (bug 1020400). -
The
-moz-orientnon-standard property, used to style<meter>and<progress>element has been adapted for vertical writing-modes: the valueautohas been dropped and the valuesinlineandblockadded, withinlinebeing the new default value (bug 1028716).
JavaScript
-
Unreachable code after
returnstatement (including unreachable expression after semicolon-less return statements) will now show a warning in the console (bug 1005110, bug 1151931). -
Symbol.matchhas been added (bug 1054755). -
Passing an object which has a property named
Symbol.matchwith a truthy value toString.prototype.startsWith,String.prototype.endsWith, andString.prototype.containsnow throws aTypeError(bug 1054755). -
RegExpfunction returns pattern itself if called withoutnewand pattern object has a property namedSymbol.matchwith a truthy value, and the pattern object'sconstructorproperty equals toRegExpfunction. (bug 1147817). -
Support for the non-standard JS1.7 destructuring for-in has been dropped (bug 1083498).
-
Non-standard initializer expressions in for...in loops are now ignored and will present a warning in the console. (bug 748550 and bug 1164741).
-
\u{xxxxxx}Unicode code point escapes have been added (bug 320500). -
String.prototype.containshas been replaced withString.prototype.includes,String.prototype.containsis kept as an alias (bug 1102219). -
If the
DataViewconstructor is called as a function without thenewoperator, aTypeErroris now thrown as per the ES6 specification. -
An issue regressed in Firefox 21, where proxyfied arrays without the
gettrap were not working properly, has been fixed. If thegettrap in aProxywas not defined,Array.lengthreturnedand thesettrap didn't get called. A workaround was to add thegettrap even if was not necessary in your code. This issue has been fixed now (bug 895223). -
WeakMap.prototypeandWeakSet.prototypehave been updated to be just ordinary objects, per ES6 specification (bug 1055473).
Interfaces/APIs/DOMNew APIs
-
The Push API has been implemented (bug 1038811).
Web Animations API
Improvement in our experimental Web Animations implementation, mostley to match latest spec changes:
-
AnimationPlayer.currentTimenow can also be set (bug 1072037). -
Animatable.getAnimationPlayers(), available onElementhas been renamed toElement.getAnimations()(bug 1145246). -
AnimationandAnimationEffecthave been merged into the newly createdKeyframeEffectReadOnly(bug 1153734). -
AnimationPlayerhas been renamed toAnimation(bug 1154615). -
AnimationTimelineis now an abstract class, withDocumentTimelineits only implementation (bug 1152171).
CSSOM
-
The CSS Font Loading API is now enabled by default in Nightly and Developer Edition releases (bug 1088437). It is still deactivated by default in Beta and Release browsers.
-
The
CSSCharsetRuleinterface has been removed and such objects are no longer available in CSSOM (bug 1148694). This matches the spec (recently adapted) and Chrome behavior.
WebRTC
-
WebRTC: the
negotiationneededevent is now also sent for initial negotiations, not only for re-negotiations (bug 1149838).
DOM & HTML DOM
-
When unable to parse the
srcset, theHTMLImageElement.currentSrcmethod doesn't returnnullanymore but"", as requested by the latest specification (bug 1139560). -
Like for images, Firefox now throttle
Window.requestAnimationFrame()for non-visible<iframe>(bug 1145439). -
Navigator.taintEnabledis no longer available for Web workers (bug 1154878). -
The read-only properties
MouseEvent.offsetXandMouseEvent.offsetYhave been implemented bug 69787.
Web Audio API
New extensions to the Web Audio API:
-
The
AudioContext.stateandAudioContext.onstatechangeproperties as well as the methodsAudioContext.suspend(),AudioContext.resume(), andAudioContext.close()have been added (bug 1094764). -
AudioBufferSourceNodenow implements theAudioBufferSourceNode.detunek-rate attribute (bug 1153783).
Web Workers
-
Slight improvement in our Service Worker API: the
update()method has been moved fromServiceWorkerGlobalScopetoServiceWorkerRegistration(bug 1131350). -
ServiceWorkerRegistrationis now available in Web workers (bug 1131327). -
DataStoreis now available in Web workers (bug 949325).
IndexedDB
-
IDBTransactionare now non-durable by default (bug 1112702). This favors performance over reliability and matches what other browsers are doing. For more information, read our durability definition.
Dev Tools
-
The property
Console.timeStamphas been added (bug 922221).
JavaScript 代碼模塊
-
Dict.jsm has been removed bug 1123309. Use
Mapinstead.