Firefox 68 for developers
This article provides information about the changes in Firefox 68 that will affect developers. Firefox 68 was released on July 9, 2019.
Changes for web developers
Developer tools
Browser/web console
- The Web console now shows more information about CSS warnings, including a node list of the DOM elements that used the rule (error 1093953).
- You can now filter content in the Web console using regular expressions (error 1441079).
- The Browser console now allows you to show or hide messages from the content process by setting or clearing the checkbox labeled Show Content Messages (error 1260877).
JavaScript debugger
- You can now Search in all files in the current project from the debugger by pressing Shift + Ctrl + F (Windows or Linux) or Shift + Cmd + F (macOS) (error 1320325).
Network monitor
- The Network monitor request list now allows you to block a specific URL (error 1151368).
- You can now resend a network request without editing the method, URL, parameters, and headers, using the Resend command on the context menu (error 1422014).
- The context menu of the Network monitor Headers tab now allows you to copy all or some of the header information to the clipboard in JSON format (error 1442249).
Page inspector
- A button has been added to the rules panel of the Page inspector that allows you to toggle the display of any print media queries (error 1534984).
- The fonts panel now includes a slider to modify
letter-spacing
(error 1536237). - A warning icon appears next to unsupported CSS properties or rules that have invalid values, to help you understand why certain styles are not being applied (error 1306054).
Storage inspector
- You can now delete local and session storage entries by selecting the item in the storage inspector and pressing the backspace key (error 1522893).
Other
- The Accessibility Inspector now includes a new Check for issues feature, which will include a number of audit tools to highlight accessibility problems on your web pages. The first available check is contrast, for highlighting color contrast problems.
- The preference that controls the visibility of internal extensions (system add-ons and hidden extensions) on the about:debugging page has been changed from
devtools.aboutdebugging.showSystemAddons
todevtools.aboutdebugging.showHiddenAddons
(error 1544372). - Responsive design mode has been redesigned — the Device Settings dialog (device selection menu > Edit List...) is now more intuitive and simpler to use (error 1487857).
Removals
- The "Enable add-on debugging" checkbox has been removed from the about:debugging page (error 1544813).
HTML
- The
<track>
element — represented byHTMLTrackElement
(en-US) — now receives acuechange
(en-US) event in addition to theTextTrack
itself, if the text track is a contained by a media element (error 1548731). <link>
elements support thedisabled
attribute again, albeit with different behavior. Whendisabled
is set on a<link>
element along withrel="stylesheet"
, the referenced stylesheet is not loaded during page load, and will be loaded on demand when thedisabled
attribute is changed tofalse
or removed (error 1281135).
Removals
<meta http-equiv="set-cookie">
is no longer supported (error 1457503).
CSS
- CSS Scroll Snapping has been updated to the latest version of the specification (error 1312163) and (error 1544136), this includes:
- The
scroll-padding
properties (error 1373832) - The
scroll-margin
properties (error 1373833) scroll-snap-align
(en-US) (error 1373835)
- The
- The
-webkit-line-clamp
(en-US) property has been implemented for compatibility with other browsers (error 866102). - Support has been added for the
::marker
pseudo-element (error 205202) and animation for::marker
pseudos (error 1538618) - We changed
currentcolor
(en-US) to be a computed value (except for thecolor
property) (error 760345). - Support has been fixed for the
ch
length unit so it now matches the spec (fallback for no '0' glyph, vertical metrics) (error 282126) - The
counter-set
(en-US) property has been implemented. (error 1518201). - We now implement list numbering using a built-in "list-item" counter; this fixes list numbering bugs (error 288704).
- Selector matching and parsing support has been implemented for
::part()
(error 1545430) and (error 1545425). - CSS Transforms are now supported in indirectly rendered things e.g.) <mask> (en-US), <marker> (en-US), <pattern> (en-US), <clipPath> (en-US) (error 1323962).
-
While we're keeping the prefixed versions of the various gradient properties (
linear-gradient
,radial-gradient
, andrepeating-radial-gradient
(en-US) available for compatibility reasons, we have revised how they're parsed so that they're handled much more like the non-prefixed versions. This means that certain existing styles won't work correctly.In particular, the complicated syntax taking both an angle and a position will no longer work, and the
to
keyword in the<side-or-corner>
parameter is not required for the prefixed gradient properties. You are encouraged to use the standard, non-prefixed gradient properties instead, as they're now widely supported (error 1547939).
Removals
scroll-snap-coordinate
(en-US),scroll-snap-destination
(en-US),scroll-snap-type-x
(en-US) andscroll-snap-type-y
(en-US) have been removed.- The
scroll-snap-type
(en-US) property has become a longhand, so the old shorthand syntax likescroll-snap-type:mandatory
will stop working. See the Firefox Site Compatability note.
SVG
No changes.
JavaScript
- The new
BigInt
primitive is enabled by default (error 1527902).
APIs
CSS Object Model (CSSOM)
- The legacy
rules
(en-US) property andaddRule()
(en-US) andremoveRule()
(en-US) methods have been added to theCSSStyleSheet
interface. These were introduced by Internet Explorer 9 and have never managed to quite be stamped out, so they have been added to improve compatibility with the small percentage of sites that still use them (error 1545823).
DOM
- The Visual Viewport API has now been enabled by default on Android (error 1512813). Adding this API to desktop versions of Firefox is being tracked in error 1551302.
- The
Window
featurenoreferrer
is now supported; if specified, the new window's content is loaded without sharing the hostname, IP address, URL, or other identifying information about the host device (error 1527287). - The
decode()
(en-US) method onHTMLImageElement
is now implemented. This can be used to trigger loading and decoding of an image prior to adding it to the DOM (error 1501794). XMLHttpRequest
has been updated to no longer accept the non-standardmoz-chunked-arraybuffer
value forresponseType
(en-US). Code still using it should be updated to use the Fetch API as a stream (error 1120171).XMLHttpRequest
now outputs a warning to console if you perform a synchronous request while handling anunload
(en-US),beforeunload
, orpagehide
(en-US) event (error 980902).- The
cookie
property has moved from theHTMLDocument
(en-US) interface to theDocument
interface, allowing documents other than HTML to use cookies (error 144795). - The
HTMLElement.focus()
andSVGElement.focus()
methods now accept an optional object that may contain a booleanpreventScroll
option specifying whether or not to block the browser from scrolling the newly-focused element into view (error 1374045).
DOM events
- Firefox for Android no longer incorrectly sends a
resize
(en-US) event until after the first frame is painted; this improves web compatibility with sites that don't expect this event to occur (error 1528052). - The dispatching of events for non-primary mouse buttons has been made to more closely follow the specification; the
click
event is no longer sent when non-primary buttons are clicked, instead usingauxclick
(en-US). In addition,dblclick
(en-US) no longer fires for non-primary buttons (error 1379466). - The proprietary
MouseEvent.mozPressure
property has been deprecated, and will now trigger a warning in the console (error 1165211).
Media, Web Audio, and WebRTC
- WebRTC has been updated to recognize that a
null
candidate passed into theicecandidate
(en-US) event handler, indicating the receipt of a candidate, instead indicates that there are no further candidates coming; when this happens the ICE gathering (iceGatheringState
(en-US)) state reachescomplete
(error 1318167). - The
RTCRtpReceiver
methodsgetContributingSources()
(en-US) andgetSynchronizationSources()
(en-US) now support video tracks; previously they only worked on audio (error 1534466). - The Web Audio API
MediaStreamTrackAudioSourceNode
(en-US) interface is now supported, as is the methodAudioContext.createMediaStreamTrackSource()
(en-US) (error 1324548). RTCDataChannel.negotiated
(en-US) is now implemented (error 1529695).- The
MediaStreamAudioSourceNode()
(en-US) constructor has been updated to match the current specification's definition that the "first audio track" in the stream is the track whose ID comes first in lexicographical order (error 1324548). -
getUserMedia()
may no longer be used from a non-secure context; attempting to do so now throws aNotAllowedError
exception. Secure contexts are those loaded using HTTPS, those located using thefile:///
scheme, and those loaded fromlocalhost
. For now, if you must, you can re-enable the ability to perform insecure calls togetUserMedia()
by setting the preferencemedia.getusermedia.insecure.enabled
totrue
(error 1335740).Note: In the future, Firefox will also remove the
navigator.mediaDevices
property on insecure contexts, preventing all access to theMediaDevices
APIs. This is already the case in Nightly builds.
Removals
- Removed the non-standard
XMLDocument.load()
(en-US) method (error 332175). - Removed the non-standard
XMLDocument.async
property (error 1328138). - The
RTCIceCredentialType
(en-US)token
value has been removed (error 1529595).
HTTP
- The HTTP Clear-Site-Data (en-US) header no longer supports the
executionContexts
directive. This was removed due to problems with interactions between interconnections among different kinds of data at different points in the navigation process and the way the specification is designed. It has been proposed that this directive be removed from the specification for this reason, among others (error 1548034).
Removals
- The
Content-Security-Policy
directiverequire-sri-for
is no longer supported due to concerns about its standardization status. It was previously available only behind a preference, which was off by default (error 1386214).
Security
No changes.
WebDriver conformance (Marionette)
Bug fixes
- If
WebDriver:SwitchToWindow
changes the selection to a different window it now waits for itsfocus
andactivate
events before returning (error 1335085). - Fixed the
TypeError: this.tabModal is null
failure, which sometimes appeared when interacting with modal dialogs or user prompts (error 1538782)
Other
- Disabled the feature to force unloading background tabs on low memory conditions, to prevent top-level browser contexts from magically disappearing (error 1553748).
- Disabled priviledged content processes that caused HTTP authentication dialogs not to appear when navigating to a website after opening a new tab (error 1558763).
Plugins
No changes.
Changes for add-on developers
API changes
- The The
proxy.register()
andproxy.unregister()
functions have been deprecated and will be removed from Firefox 71 (error 1545811). - When an add-on attempts to add a bookmark folder to the root folder, the resulting error message is now much more intuitive (error 1512171).
- The promise returned by
browser.tabs.duplicate()
now resolves immediately, before the tabs are completely loaded, to improve performance (error 1394376). - Support has been added for chrome.storage.managed, allowing web extension settings to be implemented via enterprise policy (error 1230802).
- There is now a Group Policy option to blacklist all extensions except the ones that have been whitelisted (error 1522823).
Manifest changes
No changes.
See also
Older versions
- Firefox 67 for developers
- Firefox 66 for developers
- Firefox 65 for developers (en-US)
- Firefox 64 for developers (en-US)
- Firefox 63 for developers
- Firefox 62 for developers
- Firefox 61 for developers
- Firefox 60 for developers (en-US)
- Firefox 59 for developers (en-US)
- Firefox 58 for developers (en-US)
- Firefox 57 for developers
- Firefox 56 for developers (en-US)
- Firefox 55 for developers (en-US)
- Firefox 54 for developers (en-US)
- Firefox 53 for developers (en-US)
- Firefox 52 for developers (en-US)
- Firefox 51 for developers (en-US)
- Firefox 50 for developers
- Firefox 49 for developers (en-US)
- Firefox 48 for developers (en-US)
- Firefox 47 for developers (en-US)
- Firefox 46 for developers (en-US)
- Firefox 45 for developers (en-US)
- Firefox 44 for developers (en-US)
- Firefox 43 for developers (en-US)
- Firefox 42 for developers (en-US)
- Firefox 41 for developers (en-US)
- Firefox 40 for developers (en-US)
- Firefox 39 for developers (en-US)
- Firefox 38 for developers (en-US)
- Firefox 37 for developers (en-US)