Path: blob/main/files/en-us/mozilla/firefox/releases/28/index.md
6581 views
------{{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
The {{domxref("console.exception")}} property has been added (Firefox bug 922214).
The {{domxref("console.assert")}} property has been added (Firefox bug 760193).
App Manager: a new Manifest Editor was added.
App Manager: the toolbox used for debugging apps is now embedded in the app manager UI.
Web Console: added a "split console" mode - press Escape to quickly open the console in any other tool.
Web Console: added a dark theme for the output.
Debugger: pretty-print minified JavaScript.
Debugger: hover over any variable or click on it to bring up a pop-up that displays the current value.
Inspector: added a color picker in rules view and various tooltips.
Browser Toolbox: allows add-on and platform developers to use almost all of the developer tools while targeting the browser itself.
More details in this post.
CSS
Support for multi-line flexbox has been added (Firefox bug 939901).
Longhand East Asian counter styles have been implemented (Firefox bug 934072).
Experimental support for the {{cssxref("background-blend-mode")}} property has been added, but is disabled by default (Firefox bug 841601).
The
nonevalue has been added to {{cssxref("font-variant-ligatures")}} (Firefox bug 913264).Support for the {{cssxref(":hover")}} user action pseudo-class on pseudo-elements has been implemented (Firefox bug 922669).
HTML
<input type=color>and<input type=number>have been implemented, disabled by default.
JavaScript
ECMAScript 2015 implementation continues:
New
Arraymethods have been implemented: {{jsxref("Array.prototype.entries()")}} and {{jsxref("Array.prototype.keys()")}} (Firefox bug 894658).
A bug causing that {{jsxref("Object.getOwnPropertyNames()")}} did not see unresolved properties of {{jsxref("Error")}} objects has been fixed (Firefox bug 724768).
Interfaces/APIs/DOM
HTMLVideoElement.canPlayType('video/webm')now reportsmaybe. (Firefox bug 884275).The {{domxref("DocumentFragment.getElementById()")}} method has been implemented. E.g.
document.createDocumentFragment().getElementById()(Firefox bug 933193).The {{domxref("KeyboardEvent.repeat")}} attribute has been implemented (Firefox bug 600117).
The {{domxref("File")}} constructor, e.g.
new File(["foo"], "foo.txt")has been implemented. (Firefox bug 819900).The {{domxref("NavigatorPlugins.plugins", "navigator.plugins")}} is no more enumerable, for privacy reasons (Firefox bug 757726).
The two attributes {{domxref("Window.screenX")}} and {{domxref("Window.screenY")}} now return CSS pixels (and no more device pixels) (Firefox bug 943668).
The two methods {{domxref("CanvasRenderingContext2D.drawSystemFocusRing()")}} and {{domxref("CanvasRenderingContext2D/drawFocusIfNeeded", "CanvasRenderingContext2D.drawCustomFocusRing()")}} have been implemented. The preference
canvas.focusring.enabledmust be set totrueto activate both (Firefox bug 540456).The
willReadFrequentlycontext attribute for "2d" canvas contexts has been implemented (see {{domxref("HTMLCanvasElement.getContext()")}}) (Firefox bug 884226).The following attributes and methods of {{domxref("NavigatorID")}} have been implemented on {{domxref("WorkerNavigator")}} to allow their use in workers: {{domxref("NavigatorID.appCodeName", "appCodeName")}}, {{domxref("NavigatorID.product", "product")}}, and {{domxref("NavigatorID.taintEnabled", "taintEnabled()")}} (Firefox bug 925847).
The {{domxref("Element/previousElementSibling", "previousElementSibling")}} and {{domxref("Element/nextElementSibling", "nextElementSibling")}} properties has been removed from {{domxref("DocumentType")}}, because of compatibility problems (Firefox bug 932501).
MathML
Support of the
mathvariantattribute has been added (Firefox bug 114365).
SVG
No change.
Audio/Video
Opus in WebM is now supported (Firefox bug 887978).
The VP9 video decoder is now supported (Firefox bug 833023).
Network
Support of
SPDY/2has been removed.
Changes for addon and Mozilla developers
The interface of DeferredTask.jsm has been changed, and the
isPending(),start(),flush(), andcancel()methods have been removed (Firefox bug 940408).
Security
CSP was not enforced in sandboxed iframes. This has been fixed (Firefox bug 886164).
The CSP 1.1 experimental
script-noncedirective has been implemented. The preferencesecurity.csp.experimentalEnabledshould be set totrueto enable this functionality (Firefox bug 855326).
Older versions
{{Firefox_for_developers('27')}}