This translation is incomplete. Please help translate this article from English.
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.
Geliştiriciler İçin Değişiklikler
Developer tools
- The Shape Path Editor is now available by default — see Edit Shape Paths in CSS for more information.
- You can now split the Rules view out into its own pane, separate from the other tabs on the CSS pane. See Page inspector 3-pane mode for more details.
- The Grid inspector has updated features, and all new documentation — see CSS Grid Inspector: Examine grid layouts.
- You now have four options for the location of the Developer Tools. In addition to the default location on the bottom of the window, you can choose to locate the tools on either the left or right sides of the main window or in a separate window (bug 1192642).
- The Accessibility inspector has had a couple of minor updates:
- It no longer exposes the
help
property, which isn't properly implemented in Gecko (bug 1467643). - The
keyboardShortcut
property now correctly exposes any keyboard shortcut available to activate the currently inspected node (bug 1467381).
- It no longer exposes the
- A close button has been added to the split console toolbar.
- If the option to "Select an iframe as the currently targeted document" is checked, the icon will appear in the toolbar while the Settings tab is displayed, even if the current page doesn't include any iframes (bug 1456069).
- The Network Monitor's Cookies tab now shows the cookie
samesite
attribute (bug 1452715). - Responsive design mode now works inside container tabs (bug 1306975).
- When CORS errors occur and are reported on the console, Firefox now provides a link to the corresponding page in our CORS error documentation (bug 1475391).
Removals
- The Developer Toolbar/GCLI (accessed with Shift + F2), has been removed from Firefox (bug 1461970).
HTML
Değişiklik olmadı.
CSS
:-moz-selection
has been unprefixed to::selection
(bug 509958).x
is now supported as a unit for the<resolution>
type (bug 1460655).shape-margin
,shape-outside
, andshape-image-threshold
are now enabled by default (bug 1457297).
Removals
- All XUL
display
values with the exception of-moz-box
and-moz-inline-box
have been removed from non-XUL documents in bug 1288572.
SVG
Değişiklik olmadı.
JavaScript
- The
WebAssembly.Global()
constructor is now supported, along with global variables in WebAssembly (bug 1464656). - The
Array.prototype.flat()
andArray.prototype.flatMap()
methods are now enabled by default (bug 1435813). - The
import.meta
property has been implemented to expose context-specific metadata to a JavaScript module (bug 1427610). - JavaScript string literals may now directly contain the U+2028 LINE SEPARATOR and U+2029 PARAGRAPH SEPARATOR characters. As a consequence,
JSON
syntax is now a subset of JavaScript literal syntax (see bug 1435828 and the TC39 proposal json-superset). - For out-of-bounds typed array indexes,
Reflect.defineProperty()
andReflect.set()
will now returnfalse
instead oftrue
(bug 1308735).
Removals
- The
DOMPoint
andDOMPointReadOnly
constructors no longer support an input parameter of typeDOMPointInit
; the values of the properties must be specified using thex
,y
,z
, andw
parameters (bug 1186265). - The
URL.createObjectURL()
method no longer supports creating object URLs to represent aMediaStream
. This capability has been obsolete for some time now, since you can now simply setHTMLMediaElement.srcObject
to theMediaStream
directly (bug 1454889).
APIs
New APIs
- The Speech Synthesis API (Text-to-Speech) is now enabled by default on Firefox for Android (bug 1463496).
DOM
- The
DOMPointReadOnly
interface now supports the static functionDOMPointReadOnly.fromPoint()
, which creates a new point object from a dictionary that's compatible withDOMPointInit
, which includes anyDOMPoint
object. This function is also available onDOMPoint
(bug 1186265). - For compatibility purposes, the
Event.srcElement
property is now supported. It is an alias forEvent.target
(bug 453968). Navigator.registerProtocolHandler()
now must only be called from a secure context (bug 1460506).- The
Navigator.registerContentHandler()
method has been disabled by default in preparation for being removed entirely, as it's been obsolete for some time (bug 1460481). - The
DataTransfer()
constructor has been implemented (bug 1351193). Document.domain
can no longer returnnull
(bug 819475). If the domain cannot be identified, thendomain
returns an empty string instead ofnull
.- Added the
Console.timeLog()
method to display the current value of a console timer while continuing to track the time (bug 1458466). - Added
Console.countReset()
to reset a console counter value (bug 1459279).
DOM events
No changes.
Service workers
No changes.
Media, Web Audio, and WebRTC
- The
"media.autoplay.enabled"
preference now controls automatic playback of both audio and video media, instead of just video media (bug 1413098). - The
ChannelSplitterNode
has been fixed to correctly default to having 6 channels with thechannelInterpretation
set to"discrete"
and thechannelCountMode
set to"explicit"
, as per the specification (bug 1456265).
Removals
- The
userproximity
anddeviceproximity
events (see alsoUserProximityEvent
andDeviceProximityEvent
) have been disabled by default behind thedevice.sensors.proximity.enabled
preference (bug 1462308). - The
devicelight
event (see alsoDeviceLightEvent
) has been disabled by default behind thedevice.sensors.ambientLight.enabled
preference (bug 1462308). - The
DOMSubtreeModified
andDOMAttrModified
mutation events are no longer thrown when thestyle
attribute is changed via the CSSOM (bug 1460295, see also this site compatibility post). - Support for
CSSStyleDeclaration.getPropertyCSSValue()
has been removed (bug 1408301). - Support for
CSSValue
,CSSPrimitiveValue
, andCSSValueList
has been removed (bug 1459871). window.getComputedStyle()
no longer returnsnull
when called on aWindow
which has no presentation (bug 1467722).
HTTP
Removals
- The deprecated CSP
referrer
directive has been removed. Please use theReferrer-Policy
header instead (bug 1302449).
Security
No changes.
Plugins
No changes.
Other
No changes.
Changes for add-on developers
API changes
- Added the
webRequest.getSecurityInfo()
API to examine details of TLS connections (bug 1322748). - Added the
browserSettings.newTabPosition
to customize where new tabs open (bug 1344749). windowTypes
has been deprecated inwindows.get()
,windows.getCurrent()
andwindows.getLastFocused()
(bug 1419132).- It's now possible to modify a browser action on a per-window basis (bug 1419893).
Manifest changes
- New
open_at_install
property of thesidebar_action
manifest key enables extensions to control whether their sidebars should open automatically on install or not (bug 1460910). - Changes to the
browser_style
property of various manifest keys:- In
page_action
andbrowser_action
it defaults tofalse
. - In
sidebar_action
andoptions_ui
it defaults totrue
.
- In
Theme changes
- New
tab_background_separator
property of thetheme
manifest key enables extensions to change the color of the tab separator (bug 1459455).
Removals
- Support for unpacked sideloaded extensions has been removed (bug 1385057).
- The warning about
browser_style
displayed when temporarily loading an extension for testing is no longer displayed (bug 1404724).
See also
Older versions
- Firefox 61 for developers
- Firefox 60 for developers
- Firefox 59 for developers
- Firefox 58 for developers
- Firefox 57 for developers
- Firefox 56 for developers
- Firefox 55 for developers
- Firefox 54 for developers
- Firefox 53 for developers
- Firefox 52 for developers
- Firefox 51 for developers
- Firefox 50 for developers
- Firefox 49 for developers
- Firefox 48 for developers
- Firefox 47 for developers
- Firefox 46 for developers
- Firefox 45 for developers
- Firefox 44 for developers
- Firefox 43 for developers
- Firefox 42 for developers
- Firefox 41 for developers
- Firefox 40 for developers
- Firefox 39 for developers
- Firefox 38 for developers
- Firefox 37 for developers
- Firefox 36 for developers
- Firefox 35 for developers
- Firefox 34 for developers
- Firefox 33 for developers
- Firefox 32 for developers
- Firefox 31 for developers