Firefox 29 для разработчика
Firefox 29 был выпущен 29 апреля 2014 года. Список ключевых изменений, предоставленный в данной статье будет полезен не только веб-разработчикам, но и Firefox-, Gecko-разработчикам и разработчикам дополнений.
Хотите помочь документировать Firefox 29? Просмотрите список недостатков, которые надо устранить и приступайте!
Изменения для разработчиков
Инструменты разработчика
Важные изменения:
- Vastly improved web console - Arrays are shown inline without clicking to bring up in the right inspector, window objects show their url, etc.
- Added the console API to Web Workers (bug 620935). Now you can log messages to the Web Console from Web Workers.
- The Network Monitor tool now shows performance statistics using pie charts (баг 846601).
- On the Inspector, preview tooltips of CSS transforms are now available (баг 726427).
- DOM elements seen in the debugger and console can be removed or inspected directly, via the new buttons to the right of the variable listing.
- A CSS source map is now supported by the Style Editor (баг 926014).
- Autocompletion of CSS properties and values has been added to the Style Editor (баг 717369).
Больше деталей и изменений смотрите в блоге Mozilla Hacks.
CSS
- CSS variables have been implemented (баг 773296). Mozilla Hacks article can be found here. They are enabled by default only for non-release builds (on release builds flip the pref
layout.css.variables.enabledtotrueif you want to play with them). -
Добавлена поддержка
visibility: collapseв Flexboxes (баг 783470). - Свойство
box-sizingбольше не нуждается в префиксе (баг 243412). - The
will-changeproperty, a hint to that something will animate has been added. The preferencelayout.css.will-change.enabledmust be switched totrueto enable it. (баг 940842) - Scientific exponential notation, like
3e1or10e+0, is now supported for<number>values (баг 964529). - Тип изображения
<gradient>(en-US) теперь поддерживается вborder-image(en-US) (баг 709587). - The
touch-actionproperty has been implemented. It is not activated by default; thelayout.css.touch_action.enabledpref controls it. (баг 795567)
HTML
<input type=color>и<input type=number>доступны по умолчанию.- Support for the non standard
<pre cols>has been removed, as well as the layout effect of<pre wrap>. Both effects can, and should, be achieved using CSS. (баг 949879)
JavaScript
- Реализованы новые методы строк в ECMAScript 6:
String.prototype.codePointAt()иString.prototype.fromCodePoint()(баг 918879). - The ECMAScript Internationalization API (ECMA-402) has been implemented and is now enabled by default in Firefox Desktop (баг 853301):
- To match the updated ECMAScript6 draft specification, the
Map(en-US) andSetobjects now treat-0and+0as the same when checking for key and value equality. Promisehas been enabled by default (баг 918806).- Completed generators now returns an
IteratorResultobject instead of throwing (баг 958951). - A malformed JSON string parsed by
JSON.parse()now yields a more detailed error message containing the line and column number that caused the parsing error. This is useful when debugging large JSON data.
Интерфейс/APIs/DOM
- A new type of workers,
SharedWorker, is now available by default (баг 924089). - The
URLUtilsinterface now supports thesearchParamsproperty returning aURLSearchParamsobject, allowing to modify the search params of an URL (баг 887836). TheURLSearchParamsconstructor allows easier parsing of query strings. - The
Worker.onLineproperty is now supported, allowing to know the online/offline status in workers (баг 925437). - As part of the implementation of Web Components, the
HTMLShadowElementinterface has been implemented behind thedom.webcomponents.enabled. Flip it totrueif you want to use it. (баг 887538). - The read-only property
HTMLIFrameElement.sandboxis no longer astringbut anHTMLSettableToken(баг 845057). - On
HTMLCanvasElement.getContext(), the valuemoz-webglis no longer supported. Use the standardwebglvalue (баг 913597). - The constructor for
ImageDatahas been added. This interface can be used in aWorker. (баг 959958) - The property
location.originis now available in workers (баг 964148). - The
ValidityState.badInputproperty has been implemented (баг 827161). - The deprecated
Window.pkcs11property has been removed; it was returningnullsince Firefox 3.0.14. (баг 964964) - The
Node.cloneNode()andDocument.importNode()methods take the Booleandeepargument. Until now, if omitted, these methods acted as if the value ofdeepwastrue. But this behavior has been changed as per the latest spec, and if omitted, the methods will act as if the value wasfalse. (баг 937461) Window._contentis no longer available to Web content (баг 946564).URLUtils.portbehavior has been slightly changed: set to''will set it to the default port associated with the protocol, and0to0.(баг 930450)Document.referreris now based on the incumbent script (баг 887928).- Gamepad API (en-US) включён по умолчанию (баг 878828).
MathML
Без изменений.
SVG
Без изменений.
Безопасность
- Реализована экспериментальная директива CSP 1.1
hash-source. Чтобы воспользоваться этой функцией, настройкаsecurity.csp.experimentalEnabledдолжна быть установлена в положениеtrue(баг 883975).
Изменения для разработчиков дополнений
- Совместимость дополнений с Australis - Это существенное изменение темы Firefox, что влияет на большинство расширений, связанных с пользовательским интерфейсом Firefox.
Об изменениях, не касающихся Austrlis, будет объявлено позднее.
Смотрите также
Предыдущие версии
- Firefox 28 для разработчиков
- Firefox 27 для разработчиков (en-US)
- Firefox 26 для разработчиков (en-US)
- Firefox 25 для разработчиков (en-US)
- Firefox 24 для разработчиков (en-US)
- Firefox 23 для разработчиков (en-US)
- Firefox 22 для разработчиков (en-US)
- Firefox 21 для разработчиков (en-US)
- Firefox 20 для разработчиков (en-US)
- Firefox 19 для разработчиков (en-US)
- Firefox 18 для разработчиков (en-US)
- Firefox 17 для разработчиков (en-US)
- Firefox 16 для разработчиков (en-US)
- Firefox 15 для разработчиков (en-US)
- Firefox 14 для разработчиков (en-US)
- Firefox 13 для разработчиков (en-US)
- Firefox 12 для разработчиков (en-US)
- Firefox 11 для разработчиков (en-US)
- Firefox 10 для разработчиков (en-US)
- Firefox 9 для разработчиков (en-US)
- Firefox 8 для разработчиков (en-US)
- Firefox 7 для разработчиков (en-US)
- Firefox 6 для разработчиков (en-US)
- Firefox 5 для разработчиков (en-US)
- Firefox 4 для разработчиков (en-US)
- Firefox 3.6 для разработчиков (en-US)
- Firefox 3.5 для разработчиков
- Firefox 3 для разработчиков
- Firefox 2 для разработчиков (en-US)
- Firefox 1.5 для разработчиков