Monday, July 27, 2015
New ES2015 features
Chrome 45 includes a set of new ES2015 features including arrow functions, new methods on Array, new methods on TypedArray, and Object.assign().
Service worker improvements
Chrome 40 introduced support for service workers, enabling developers to build high performance sites that work offline. This release includes a number of improvements:
- Sites can now use getRegistrations() to access all the service workers whose scope matches the current page.
Finally, in a breaking change, messages sent via Client.postMessage() now fire an event on navigator.serviceWorker instead of the window object.
Media controls in Android notifications
Playback controls for currently-playing audio are shown in the notification tray and on the lock screen
On Android, native apps can show media controls in a system notification when playing audio, making it easy for users to control audio while multitasking. Chrome 45 brings this capability to the web by showing a notification with media controls when audio is playing in web content. The controls will automatically show up when <audio> or <video> tags play audio longer than 5 seconds.
Other updates in this release
- Sites can now customize the vibration triggered when showing a notification on Android.
- To improve scroll performance on pages with heavy mouse handlers or :hover styles, Chrome no longer sends mouse position updates when the user is scrolling with a trackpad or scrollwheel.
- Chrome now immediately prefetches all HTML imports referenced by a page instead of waiting for scripts included higher in the document to finish executing, improving performance.
- Sites can now include 3rd-party resources on their site with reduced security risk by using a hash to ensure the integrity of 3rd-parties resources.
- To reduce the risk of certain types of attack, the 'self' source defined by Content Security Policy now excludes blob and filesystem URLs.
As always, visit chromestatus.com/features for a complete overview of Chrome’s developer features, and circle +Google Chrome Developers for more frequent updates.
Posted by Andreas Rossberg, Software Engineer and ECMAScript Evangelizer