Google Chrome 4 Bolsters Browser Security with New Features

Écrit par
Brian Prince
Brian Prince
Published: Jan 27, 2010
Updated: Feb 2, 2021
2 minute read
eWeek Le contenu et les recommandations de produits sont indépendants de la rédaction. Nous pouvons gagner de l'argent lorsque vous cliquez sur des liens vers nos partenaires. En savoir plus

Google has beefed up the latest version of its Chrome browser with new security protections designed to help developers build secure Websites.

In Chrome 4, which was released Jan. 25, Google added three new security features: strict transport security, cross-origin communication with postMessage and reflective cross-site scripting (XSS) protection.

Strict transport security requires a browser to access a Website through a secure connection, such as HTTPS.

“That means the browser will always use HTTPS to connect to the site and will treat all HTTPS errors as hard stops (instead of prompting the user to ‘click through’ certificate errors),” blogged Adam Barth, a software engineer at Google. “This feature strengthens the browser’s defenses against attackers who control the network, such as malicious folks disrupting the wireless network at a coffee shop.”

Google is not the only one implementing strict transport security. Firefox add-on NoScript has implemented it as well, and have some Websites such as PayPal.

Google also added the ability to use postMessage to communicate with Google Gadgets.

“The postMessage API is a new HTML5 feature that lets web developers establish a communication channel between frames in different origins,” Barth explained. “Previously, when you wanted to add a gadget to your web page, you had two options: (1) include the gadget via a script tag, or (2) embed the gadget using an iframe tag. … postMessage changes the game. By using postMessage to communicate with the gadget, you get the security advantages of an iframe with all the interactivity of a script tag.”

In addition, he said, developers can use postMessage to create more secure versions of existing gadgets.

The final new ingredient to Google Chrome 4 is an experimental feature to address reflective cross-site scripting. The new XSS filter checks whether a script about to run on a Web page is also present in the request that fetched that Web page-an indication that the Web server may have been tricked into reflecting the script.

Advertisement

Google integrated the filter into WebKit, Chrome’s rendering engine, so that the filter can catch scripts right before they are executed and so it can be used by every WebKit-based browser.

“The XSS filter is similar to those found in Internet Explorer 8 and NoScript,” Barth said. “We are aware of a few ways to bypass the filter, but, on balance, we think that the filter is providing enough benefit to enable it by default in this release.”

Barth also touted Chrome’s clickjacking protections as well as cross-site request forgery protection via Origin Header.

The popularity of Chrome is on the upswing. According to market research company Net Applications, worldwide use of Chrome grew to 4.63 percent in December, inching past Apple’s Safari browser but still far behind Microsoft Internet Explorer and Mozilla Firefox.

eWeek Logo

eWeek has the latest technology news and analysis, buying guides, and product reviews for IT professionals and technology buyers. The site's focus is on innovative solutions and covering in-depth technical content. eWeek stays on the cutting edge of technology news and IT trends through interviews and expert analysis. Gain insight from top innovators and thought leaders in the fields of IT, business, enterprise software, startups, and more.

Propriété de TechnologyAdvice. © 2026 TechnologyAdvice. Tous droits réservés

Divulgation publicitaire : Certains des produits qui apparaissent sur ce site proviennent d'entreprises dont TechnologyAdvice reçoit une compensation. Cette compensation peut influencer la façon dont les produits apparaissent sur ce site, notamment l'ordre dans lequel ils apparaissent. TechnologyAdvice n'inclut pas toutes les entreprises ou tous les types de produits disponibles sur le marché.