Chrome Release Summary
+151
Chrome 72
Enabled (22) | Origin Trial (2) | Behind a flag (0) | Deprecated (0) | Removed (4)Enabled by default in 72
This release of Chrome had 22 new features.
Crash Reports
Crash reports are a new type of report available via the Reporting API. These reports indicate that a crash occurred on a page and possibly the reason it occurred (out of memory for example). #
This feature was specified in this Spec.
Resources
Docs: https://github.com/w3c/reporting/blob/master/EXPLAINER.md#crashes
No linked samplesECMAScript module namespace exports
This feature extends the existing syntax for module exports by the form export * as foo from "bar" which is the analogue to the existing form import * as foo from "bar" #
This feature was specified in this Spec.
ErrorEvent interface on web workers
The ErrorEvent interface, inheriting from from its parent Event, represents events providing information related to errors in scripts or in a file. According to specifications, unhandled runtime script errors fire an ErrorEvent at a target and this interface should be exposed to web workers. #
This feature was specified in this Spec.
Resources
Docs: https://developer.mozilla.org/en-US/docs/Web/API/ErrorEvent
No linked samplesInteroperable File.webkitRelativePath property
The File.webkitRelativePath of the File interface previously returned a value different from other major browsers, now it returns the same value. For example, if a user has the following local files: /tmp/a/foo/bar/1.txt, /tmp/a/foo/2.txt and they selected /tmp with a file chooser dialog, webkitRelativePath in Chrome was: foo/bar/1.txt, foo/2.txt Other browsers, which Chrome now matches, return this: tmp/a/foo/bar/1.txt, tmp/a/foo/2.txt #
This feature was specified in this Spec.
Intervention: Rewrite slow pages for Lite Mode (Data Saver) users
On web pages that are expected to load slowly, Chrome may modify loading behavior to provide a faster page load to Lite Mode (Data Saver) users. This behavior modification can take many forms including but not limited to: blocking specific resources, loading partial resources, loading a previously saved version of the page, using Google servers to rewrite pages, etc. #
This feature was specified in this Spec.
Resources
Docs: https://developers.google.com/web/updates/2018/09/reportingapi
No linked samplesIntervention: Stop loading of non-critical resources on slow pages for data saver users
On webpages that are expected to load slowly, stop loading of non-critical resources. This includes (but is not limited to) JavaScript and CSS resources that do not contribute significantly to the visual appearance. This would be limited to only the data saver users. Users are shown a Lite Mode UI in the omnibox. Users can load default behavior by tapping “Show original” in the omnibox UI. An intervention report is sent when this optimization occurs.
This feature was specified in this Spec.
Resources
Docs: https://developers.google.com/web/updates/2018/09/reportingapihttps://www.w3.org/TR/reporting/#intervention-report
No linked samplesIntl.ListFormat
Intl.ListFormat helps libraries and frameworks format a list in a localized fashion by providing internationalized messages using a customary local word or phrase when available. For example, calling its format() method with ["Alice", "Bob", "Charlie", "Delta"] returns the string "Alice, Bob, Charlie, and Delta" in English. #
This feature was specified in this Spec.
Resources
Docs: https://developers.google.com/web/updates/2018/12/intl-listformat
No linked samplesJavaScript Modules: Credentials mode defaults to "same-origin"
The default credentials mode for module script requests is changing from "omit" to "same-origin", providing credentials to same-origin module script requests and their descendant scripts (static & dynamic imports). The current behavior can be surprising in that it's misaligned with other high-level features like the Fetch API, and in the web platform's current architecture, causes a second server connection. This is undesirable for developers looking to reduce latency. #
This feature was specified in this Spec.
MediaStream.getDisplayMedia()
Captures a screen or application window to a MediaStream, for recording or sharing over the network. This allows conferencing services to provide shared presentations in a conference, and allows remote control tools like Chrome Remote Desktop to provide an image of the controlled computer's screen to the controlling computer. #
This feature was specified in this Spec.
Resources
Docs: https://docs.google.com/document/d/1XEoy_zPYQsRvAt2O68m769mTMN8bT0xqvWQyfPfqLmQ/edit?usp=sharing
No linked samplesMediaStreamTrack resizeMode constraint
This property controls the method the browser uses to derive the resolution of a MediaStreamTrack. There are two supported values: "none": the track has the native resolution provided by the camera, its driver, or the OS. "crop-and-scale": the browser may use cropping and rescaling to adjust the resolution of the video produced by the camera. This is useful for getting more consistent behavior across browsers, or if an application wants to make sure it gets only native resolutions. #
This feature was specified in this Spec.
Resources
Docs: https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackConstraintshttps://developer.mozilla.org/en-US/docs/Web/API/MediaTrackSettings
No linked samplesNavigator.languages and languagechange event on workers
The navigator.languages property exposes the Accept Language header and the languageevent, which is fired on the Window object to notifiy scripts of changes to this value. Both features allow web applications to handle i18n in the client and react to user language changes. This change makes these features available to workers. Specifically, navigator.languages is available on workers and languageevent is fired on workers as well as the main thread. #
This feature was specified in this Spec.
Resources
Docs: https://developer.mozilla.org/en-US/docs/Web/API/NavigatorLanguage/languages
No linked samplesPublic class fields
This feature introduces public fields to classes in ECMAScript. class MyClass { instanceProperty = 0; static staticProperty = 0; } #
This feature was specified in this Spec.
Resources
Docs: https://v8.dev/features/class-fields#public-class-fieldshttps://developers.google.com/web/updates/2018/12/class-fieldshttp://2ality.com/2017/07/class-fields.htmlhttps://github.com/tc39/proposal-class-fields/blob/master/README.md
No linked samplesRTCPeerConnection.connectionState and RTCPeerConnection.onconnectionstatechanged
RTCPeerConnection.connectionState is a aggregate value computed from the transport states of the peerconnection's underlying ICE and DTLS transports. It's intended to provide a more complete overview of the connection state than RTCPeerConnection.iceConnectionState, which is only supposed to be based on the ICE transports. #
This feature was specified in this Spec.
Service worker: FetchEvent.resultingClientId
FetchEvent.resultingClientId, set on navigation requests or requests for workers, is the ID of the client, either a document or a worker that is created by the request. This is useful for associating the main resource request for a document with subsequent subresource requests from the document for logging and metrics purposes. #
This feature was specified in this Spec.
Resources
No linked docsService worker: FetchEvents for requests for same-origin favicons.
Previously, technical limitations prevented service workers from receiving FetchEvents for favicon requests. Now, service workers receive FetchEvents as long as the request URL is on the same-origin as the service worker. #
This feature was specified in this Spec.
TLS 1.0 and TLS 1.1
Deprecate TLS 1.0 and 1.1, targeting removal in Chrome 81 (early 2020). During the deprecation period, sites using those protocols will show a warning in DevTools. After the deprecation period, in 2020, they will fail to connect if they have not upgraded to TLS 1.2 by then. #
This feature was specified in this Spec.
Resources
Docs: https://security.googleblog.com/2018/10/modernizing-transport-security.html
No linked samplesTrusted Web Activities
Trusted Web Activities are a mode of Chrome Custom Tabs without browser UI, available to web content an app developer controls. We want the modern mobile web (primarily PWAs) to go mainstream. Nevertheless, they make up a small proportion of app experiences on Android today. The vast majority of developers simply haven’t made one yet. TWAs lower the risks of distribution by allowing developers to integrate their PWA into a native app and give PWA developers the same capabilities as native apps. #
Resources
Docs: https://codelabs.developers.google.com/codelabs/getting-started-with-twas/index.htmlhttps://developers.google.com/web/updates/2019/02/using-twa
No linked samplesUser Activation Query API
Some APIs cannot be used with a user activation (https://html.spec.whatwg.org/multipage/interaction.html#activation). Examples include requestFullScreen(), autoplay, window.open(). This restriction is a powerful tool for preventing annoying behavior by web pages. Unfortunately, there is no way to determine if a user activation is active. The User Activation Query API adds this ability. #
This feature was specified in this Spec.
User Activation v2
User activation is the mechanism to maintain active-user-interaction state that limits use of "abusable" APIs (e.g. opening popups or vibrating). The web exposed behavior varies widely among major browsers. To unify the web, this feature defines a new user activation model that is simple enough for cross-browser implementation. The main changes introduced by this model are: (a) there is no concept of token passing, and (b) activation visibility changes from stack-scoped to frame-scoped. #
This feature was specified in this Spec.
Resources
Docs: https://mustaqahmed.github.io/user-activation-v2/https://docs.google.com/document/d/1erpl1yqJlc1pH0QvVVmi1s3WzqQLsEXTLLh6VuYp228https://docs.google.com/document/d/1XL3vCedkqL65ueaGVD-kfB5RnnrnTaxLc7kmU91oerg
Samples: https://mustaqahmed.github.io/user-activation-v2/propagation/https://mustaqahmed.github.io/user-activation-v2/api-consistency/setTimeout.html
WebRTC Unified Plan SDP
RTCPeerConnections generate and parse SDP according to the standardized format. Exchanging SDP is needed to set up calls in WebRTC. Following the standard is important for cross-browser interoperability. Unified Plan also enables the RTCRtpTransceiver APIs. Changing from the old ("Plan B") to the new format can cause backwards-compatibility issues or break applications, see the Transition Guide: https://docs.google.com/document/d/1-ZfikoUtoJa9k-GZG1daN0BU3IjIanQ_JSscHxQesvU/edit?usp=sharing #
This feature was specified in this Spec.
Resources
Docs: https://docs.google.com/document/d/1-ZfikoUtoJa9k-GZG1daN0BU3IjIanQ_JSscHxQesvU/edit?usp=sharinghttps://webrtc.org/web-apis/chrome/unified-plan/https://tools.ietf.org/html/draft-ietf-rtcweb-jsep-24
No linked samplesWell-formed JSON.stringify
A Stage 3 ECMAScript proposal changes JSON.stringify to prevent it from returning ill-formed Unicode strings. Previously, JSON.stringify would output lone surrogates if the input contained any lone surrogates: ``` JSON.stringify("\uD800"); // --> '"�"' ``` With this change, JSON.stringify outputs escape sequences for lone surrogates, making its output valid Unicode (and representable in UTF-8): ``` JSON.stringify("\uD800"); // --> '"\ud800"' ``` #
This feature was specified in this Spec.
Resources
Docs: https://v8.dev/features/well-formed-json-stringifyhttps://github.com/tc39/proposal-well-formed-stringify
No linked samplesWorker unhandled exception propagation
For dedicated workers, if an error is not handled then it will be propagated up to the parent context and the error reporting process begins again one layer up (e.g., to the window's onerror handler). This allows for errors to be propagated up to the original document giving developers the freedom to choose when and how to handle worker errors. #
This feature was specified in this Spec.
Origin Trials in-progress in 72
This release of Chrome had 2 new origin trials.
Configurable WebRTC jitter buffer max size
Create an origin trial that when enabled allows users to change the size of the WebRTC jitter buffer and read a new statistic counting the number of times the buffer is flushed. This will be allow us to explore the performance impact of tweaking this value. If it proves useful we'll either tweak the WebRTC implementation or start working to add it the standardized WebRTC APIs. #
Resources
Docs: https://docs.google.com/document/d/1stYIZhEmDZ7NJF9gjjsM66eLFJUdc-14a3QutrFbIwI/edit
No linked sampleshrefTranslate attribute
This attribute defines the ability to for a page author to hint to the user agent's translation engine that an href should be translated if followed. #
This feature was specified in this Spec.
Resources
Docs: https://github.com/dtapuska/html-translate
No linked samplesFlagged features in 72
This release of Chrome had 0 are available behind a flag.
Deprecations and Removals
Deprecation policy
To keep the platform healthy, we sometimes remove APIs from the Web Platform which have run their course. There can be many reasons why we would remove an API, such as:
- They are superseded by newer APIs.
- They are updated to reflect changes to specifications to bring alignment and consistency with other browsers.
- They are early experiments that never came to fruition in other browsers and thus can increase the burden of support for web developers.
Some of these changes will have an effect on a very small number of sites. To mitigate issues ahead of time, we try to give developers advanced notice so they can make the required changes to keep their sites running.
Chrome currently has a process for deprecations and removals of API's, essentially:
- Announce on the blink-dev mailing list.
- Set warnings and give time scales in the Chrome DevTools Console when usage is detected on the page.
- Wait, monitor, and then remove the feature as usage drops.
You can find a list of all deprecated features on chromestatus.com using the deprecated filter and removed features by applying the removed filter. We will also try to summarize some of the changes, reasoning, and migration paths in these posts.
Deprecated features in 72
This release of Chrome had 0 features deprecated.
Removed features in 72
This release of Chrome had 4 features removed.
Cache API: reject addAll() when requests would overwrite each other
The `Cache.addAll()` API allows multiple entries to be added to the cache at once. The spec requires that each request/response pair avoid overwriting another entry being added in the same call. Previously chrome would resolve such conflicts by storing the later entry and ignoring the earlier entry. This feature is to fix this behavior and properly reject with InvalidStateError. #
This feature was specified in this Spec.
Resources
Docs: https://developer.mozilla.org/en-US/docs/Web/API/Cache/addAll
No linked samplesRemove HTTP-Based Public Key Pinning
HTTP-Based Public Key Pinning (HPKP) was intended to allow websites to send an HTTP header that pins one or more of the public keys present in the site's certificate chain. It has very low adoption, and although it provides security against certificate misissuance, it also creates risks of denial of service and hostile pinning. See https://groups.google.com/a/chromium.org/d/msg/blink-dev/he9tr7p3rZ8/eNMwKPmUBAAJ for details. #
This feature was specified in this Spec.
Rendering FTP resources
FTP is a non-securable legacy protocol. When even the linux kernel is migrating off of it (https://www.kernel.org/shutting-down-ftp-services.html), it's really time to move on. One step toward deprecation and removal is to deprecate rendering resources from FTP servers and instead download them. We'll still generate directory listings, but any non-directory listing could be downloaded rather than rendered in the browser. #
Treat '#' as ending data URI body content
By spec, '#' characters in data URIs should not be treated as part of the URI body, and should instead only mark the start of the URI fragment component. Historically Chrome has not adhered to the spec, instead treating '#' characters as both fragment-starters and part of the body. #
This feature was specified in this Spec.