Monday, May 25, 2020

New features for developers in Chrome 83

Google Chrome - Wikipedia
 

 

Trusted types

Trusted types can help prevent various kinds of vulnerabilities i.e DOM-based cross-site scripting.

For example inner HTML

With trusted types turned on, if someone tries to pass a string, it will fail with a type error, because the browser doesn’t know if it can trust the string. Instead, its either need to pass in a trusted type or create the element and use append child.

Updates to Form controls

Use of HTML form controls are the key to the web’s interactivity. They are easy to use and familiar to users.  The styling of form controls can be inconsistent across browsers and operating systems and we frequently have to shift a number of CSS roles just to get a consistent look across devices.

The new form controls now available in Chrome 83

Origin trial: Measure Memory with measureMemory()

performance.measureMemory is a new API that makes it possible to measure the memory usage of your page and detect memory leaks.

Memory leaks are easy to accidentally introduce.

Memory leaks lead to pages that appear slow and bloated  to users

Origin trail: Native File System API

The native file system API started a new origin trial in Chrome 83 with support for writable streams and the ability to save file handles.

Supports the Barcode Detection API

Which provides the ability to detect and decode barcodes.

New CSS @supports function

Provides features detection for CSS selectors


source 


No comments:

Post a Comment