Google heeft versie 96 van zijn webbrowser Chrome uitgebracht. Google Chrome is beschikbaar voor Windows, Linux en macOS. Er zijn ook versies voor Android en iOS, maar die volgen een iets ander releaseschema. Nieuw in versie 96 is onder meer de zogenaamde back forward cache, die het het terug navigeren naar eerder bezochte pagina's sneller moet maken. Meer informatie over de veranderingen die in deze uitgave zijn aangebracht, naast de gebruikelijke bug- en security fixes, kunnen hieronder worden gevonden.
Preparing for a Three Digit Version NumberNext year, Chrome will release version 100. This will add a digit to the version number reported in Chrome's user agent string. To help site owners test for the new string, Chrome 96 introduces a runtime flag that causes Chrome to return '100' in its user agent string. This new flag called
Origin Trialschrome://flags/#force-major-version-to-100
is available from Chrome 96 onward.This version of Chrome introduces the origin trials described below. Origin trials allow you to try new features and give feedback on usability, practicality, and effectiveness to the web standards community. To register for any of the origin trials currently supported in Chrome, including the ones described below, visit the Chrome Origin Trials dashboard. To learn more about origin trials in Chrome, visit the Origin Trials Guide for Web Developers. Microsoft Edge runs its own origin trials separate from Chrome. To learn more, see the Microsoft Edge Origin Trials Developer Console.
New Origin TrialsApplications that capture other windows or tabs currently have no way to control whether the calling item or the captured item gets focus. (Think of a presentation feature in a video conference app.) Chrome 96 makes this possible with a subclass of
MediaStreamTrack
calledFocusableMediaStreamTrack
, which supports a newfocus()
method. Consider the following code:stream = await navigator.mediaDevices.getDisplayMedia(); let [track] = stream.getVideoTracks();Where formerly,
getVideoTracks()
would return an array ofMediaStreamTrack
objects, it now returnsFocusableMediaStreamTrack
objects. (Note that this is expected to change toBrowserCaptureMediaStreamTrack
in Chrome 97. At the time of this writing, Canary already does this.)To determine which display media gets focus, the next line of this code would call
Priority Hintstrack.focus()
with either"focus-captured-surface"
to focus the newly captured window or tab, or with"no-focus-change"
to keep the focus with the calling window. On Chrome 96 or later, you can step through our demo code to see this in action.Priority Hints introduces a developer-set
Allow Simple Range Header Values Without Preflight"importance"
attribute to influence the computed priority of a resource. Supported importance values are"auto"
,"low"
, and"high"
. Priority Hints indicate a resource's relative importance to the browser, allowing more control over the order resources are loaded. Many factors influence a resource's priority in browsers including type, visibility, and preload status of a resource.Requests with simple range headers can now be sent without a preflight request. CORS requests can use the Range header in limited ways (only one valid range) without triggering a preflight request.
Back-forward Cache on DesktopThe back-forward cache stores pages to allow for instant navigations to previously-visited pages after cross-site navigations.
Cross-Origin-Embedder-Policy: credentialless
Cross-Origin-Embedder-Policy
has a newcredentialless
option that causes cross-originno-cors
requests to omit credentials (cookies, client certificates, etc.). Similarly toCOEP:require-corp
, it can enable cross-origin isolation.Sites that want to continue using SharedArrayBuffer must opt-in to cross-origin isolation. Doing so using
CSS :autofill Pseudo ClassCOEP: require-corp
is difficult to deploy at scale and requires all subresources to explicitly opt-in. This is fine for some sites, but creates dependency problems for sites that gather content from users (Google Earth, social media generally, forums, etc).The new
Disable Propagation of Body Style to Viewport when Containedautofill
pseudo class enables styling autofilled form elements. This is a standardization of the:-webkit-autofill
pseudo class which is already supported in WebKit. Firefox supports the standard version.Some properties like writing-mode, direction, and backgrounds are propagated from body to the viewport. To avoid infinite loops for CSS Container Queries, the spec and implementation were changed to not propagate those properties when containment is applied to HTML or BODY.
font-synthesis PropertyThe
EME MediaKeySession Closed Reasonfont-synthesis
CSS property controls whether user agents are allowed to synthesize oblique, bold, and small-caps font faces when a font family lacks faces.The
HTTP to HTTPS Redirect for HTTPS DNS RecordsMediaKeySession.closed
property now uses an enum to indicate the reason theMediaKeySession
object closed. The closed property returns a Promise that resolves when the session closes. Where previously, the Promise simply resolved, it now resolves with a string indicating the reason for closing. The returned string will be one of"internal-error"
,"closed-by-application"
,"release-acknowledged"
,"hardware-context-reset"
, or"resource-evicted"
.Chrome will always connect to a website via HTTPS when an HTTPS record is available from the domain name service (DNS).
InteractionID in EventTimingThe
New Media Query: prefers-contrastPerformanceEventTiming
interface now includes an attribute calledinteractiveID
. This is a browser-generated ID that enables linking multiplePerformanceEventTiming
entries when they correspond to the same user interaction. Developers can currently use the Event Timing API to gather performance data about events they care about. Unfortunately, it is hard to link events that correspond to the same user interaction. For instance, when a user taps, many events are generated, such aspointerdown
,mousedown
,pointerup
,mouseup
, andclick
.Chrome supports a new media query called
Unique id for Desktop PWAs'prefers-contrast'
, which lets authors adapt web content to the user's contrast preference as set in the operating system (specifically, increased contrast mode on macOS and high contrast mode on Windows). Valid options are'more'
,'less'
,'custom'
, or'no-preference'
.Web app manifests now support an optional
URL Protocol Handler Registration for PWAsid
field that globally identifies a web app. When theid
field is not present, a PWA falls back tostart_url
. This field is currently only supported on desktop.Enable web applications to register themselves as handlers of custom URL protocols/schemes using their installation manifest. Operating system applications often register themselves as protocol handlers to increase discoverability and usage. Web sites can already register to handle schemes via
WebAssembly Content Security PolicyregisterProtocolHandler()
. The new feature takes this a step further by letting web apps be launched directly when a custom scheme link is invoked.Chrome has enhanced Content Security Policy to improve interoperability with WebAssembly. The
Reference Typeswasm-unsafe-eval
controls WebAssembly execution (with no effect on JavaScript execution). Additionally, thescript-src
policies now include WebAssembly.WebAssembly modules can now hold references to JavaScript and DOM objects. Specifically, they can be passed as arguments, stored in local and global variables, and stored in WebAssembly.Table objects.
Deprecations and RemovalsThis version of Chrome introduces the deprecations and removals listed below. Visit ChromeStatus.com for lists of current deprecations and previous removals.
The "basic-card" Method of PaymentRequest APIThe PaymentRequest API has deprecated the basic card payment method. Its usage is low and declining. It underperforms when compared to other payment methods in time-to-checkout and completion rate. Developers can switch to other payment methods as an alternative. Examples include Google Pay, Apple Pay, and Samsung Pay. Removal timeline:
- Chrome 96: the basic-card method is deprecated in the Reporting API.
- Chrome 100: the basic-card method will be removed.