Google heeft versie 79 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. De belangrijkste veranderingen die in versie 79 zijn aangebracht, naast de gebruikelijke bug- en security fixes, zijn hieronder voor je op een rijtje gezet.
Virtual Reality Comes to the WebThe WebXR Device API is shipping in Chrome. Developers can now create immersive experiences for smartphones and head-mounted displays. Other browsers will be supporting these specs soon, including Firefox Reality, Oculus Browser, Edge and Magic Leap's Helio browser, among others. This launch sets the foundation for immersive features to come, such as supporting augmented reality, tools, and expanding the real-world understanding of immersive experiences. Many experiences can be enhanced with immersive functionality. Examples include games, home buying, viewing products in your home before buying them and more. To get started with virtual reality and the new API, read Virtual reality comes to the web.
Origin TrialsThis 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 Origin Trials dashboard. To learn more about origin trials themselves, visit the Origin Trials Guide for Web Developers.
Support for rendersubtree AttributeAdds the rendersubtree attribute to all HTML elements, which locks a DOM element for display. When rendersubtree is set to
Wake Lock API based on Promises"invisible"
, the element's content is not drawn or hit-tested, allowing for rendering optimizations. The rendersubtree"activatable"
token allows the browser to remove the invisible attribute, rendering the content, and making it visible.Adds an update of the Wake Lock API that introduce promises and wake lock types. The Wake Lock API brought a standard, secure, and safe way to prevent some device features such as the screen or CPU cycles from going into power saving state. This update addresses some of the shortcomings of the older API which was limited to screen Wake Lock and didn't address certain security and privacy issues.
Adaptive Icon Display for Installed PWAs on AndroidAndroid Oreo introduced adaptive icons, which enforced the same shape for all icons on the home screen and in the launcher. Before android O icons could be any shape and there was no background behind each icon. For example, gmail was rectangular, and Play was a triangle. Consequently, such icons were placed in a white circle. With adaptive icon display, Android will automatically mask irregularly shaped icons to fit properly.
Autofocus Support for any Focusable HTML/SVG ElementAdds the
Compute img/video Aspect Ratio from Width Or Height HTML Attributesautofocus
attribute to any focusable HTML or SVG element. Theautofocus
was previously supported for a limited number of HTML elements, and there were elements which could receive focus but didn't support theautofocus
attribute. This feature fixes the inconsistencies.The aspect ratio of an image is now computed so that it can be used for sizing an image using CSS before it loads. This avoids unnecessary relayouts when the image loads.
font-optical-sizingThe
list-style-type: <string>font-optical-sizing
property automatically sets the font size to the opsz - optical sizing axis of variable fonts that support optical sizing. This improves styling and legibility of fonts depending on font size because the font chooses a glyph shape that works optimally at the given font size. For example, the glyph contrast is improved in fonts in heading sizes when compared to the same font at body text size.Allows a stylesheet to use an arbitrary character for the list style marker. Examples include "-", "+", "★" and "▸". Since CSS Level 2,
Reject Worklet.addModule() with a More Specific Errorlist-style-type
has supported keywords likedisc
ordecimal
to define the appearance of the list item marker. Without this, developers are often forced to hide the real marker and insert the arbitrary marker using a::before
pseudo element via the content property. Unfortunately, the fake marker won't be nicely positioned bylist-style-position
.When
Retrieve a Service Worker Object Corresponding to a Worker ItselfWorklet.addModule()
fails, a promise rejects with a more specific error object than it did previously.Worklet.addModule()
can fail for various reasons, including, for example, network errors and syntax errors. Before this change,Worklet.addModule()
rejected withAbortError
regardless of the actual cause. That made it difficult for developers to debug worklets. After this change,Worklet.addModule()
rejects with a clearer error such asSyntaxError
.A service worker can now get its ServiceWorker object with
Stop Evaluating Script Elements Moved Between Documents During Fetchingself.serviceWorker
in a service worker script and its current state withself.serviceWorker.state
. A service worker instance previously had no way to get its current lifecycle state. This removes the need for the hack wherein the current lifecycle state is tracked with a global variable, a method that is error prone and doesn't correctly capture waiting periods.Chrome no longer evaluates scripts or fire
Deprecations, and Removalserror
andload
events if<script>
elements are moved between documents during fetching. Script elements can still be moved between documents, but they won't be executed. This prevents possible security bugs caused by exploitation of<script>
elements moved between documents.This version of Chrome introduces the deprecations and removals listed below. Visit ChromeStatus.com for lists of current deprecations and previous removals.
-webkit-appearance Keywords for Arbitrary ElementsChanges -webkit-appearance keywords to work only with specific element types. If a keyword is applied to a non-supported element, the element takes the default appearance.