From Chrome 76 on, Google won't allow sites access to certain APIs anymore based on a user's use of the ESC-key on such sites to fight abuse.
Most modern browsers prevent access to certain APIs open the websites based on user interactions with webpages. Access to certain APIs such as those that allow popups or screen changes, is blocked until the user interacts with the page in question.
Downloads are a basic example: they should be allowed if the user interacts with download links or buttons, but it is not a good idea to allow them if the user did not interact with the webpage in any form prior to the action.
Google introduced a new protective feature in Chrome recently that blocks automatic downloads in ad frames.
Another example is audio playback on sites. While you expect that to happen when you click on a video's play button, you may not expect sites to play audio without you interacting with that site first (and even then, you sometimes may not want sites to play audio, but that is another issue altogether).
Not every user interaction may indicate that it is okay to go ahead with certain activity on a webpage. A click or tap certainly falls into the user interaction category, but actions such as pressing the ESC-key on the computer keyboard, opening the Developer Tools, or hovering the mouse cursor over an element don't.
Google Chrome handles the ESC-key currently as active user interaction and that means that sites gain access to certain APIs.
The Esc-key may be used to stop the loading of a site and Google believes that this should not be counted as page interaction, however, and going forward, ESC won't be counted as such anymore.
The company published a demo page that highlights one of the issues that it identified. Hitting the ESC-key on the site opens a popup in Chrome, and that is certainly not something that the user would want to happen as a consequence of that action.
The release of Chrome 76 changes the ESC-key classification in the Chrome browser. Chrome 76 does not see ESC-key uses as page interactions anymore and Chrome will block actions that result out of its use.
Mozilla Firefox has a similar feature already in place that prevents page activity when the ESC-key is used by users of the browser.
Google moving the ESC-key from the user interaction side to the "does not count as user interaction" side is a good thing as it will prevent abuse by sites on the Internet.
Chrome 76 will be released in July 2019. (via ZDNET)Advertisement
Ghacks is a technology news blog that was founded in 2005 by Martin Brinkmann. It has since then become one of the most popular tech news sites on the Internet with five authors and regular contributions from freelance writers.