Softpedia
 

NEWS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
Home > News > Webmaster > Google News

December 5th, 2009, 11:55 GMT · By

Force Google Chrome to Open Links in New Processes

SHARE:

Adjust text size:


A new HMTL 5 link attribute implemented in Webkit allows developers to force Chrome to open links in a new process
Enlarge picture
When Google decided to create a new browser, it knew it had an opportunity to avoid many of the problems facing existing browsers by coming up with new ways to do things and building a solid basis from the start. One of the smartest decisions was to give each individual tab its own process thread, which would solve a lot of security and stability issues.

It was a more complex technical approach, but it paid off in the end. However, it's not possible to give each tab its own process every time, as there may be shared resources between them, so Chrome had to make a compromise between security and compatibility. Now, though, Google is giving developers the possibility to force links to be opened in new processes thanks to a little HTML 5 trickery.

“Google Chrome already uses separate OS processes to isolate independent tabs from each other in the browser, so that crashes or slowdowns in one tab won't affect the others,” Charlie Reis, software engineer, writes on the Chromium blog.

“In many cases, though, Google Chrome needs to keep pages from related tabs in the same process, since they may access each other's contents using JavaScript code... In practice, web developers may find situations where they would like links to other pages to open in a separate process. As one example, links from messages in your webmail client would be nice to isolate from the webmail client itself,” he explains.

Now, thanks to a new HTML 5 feature that got implemented in the latest builds of the Webkit HTML engine, which powers Chorme, Safari and a bunch of desktop and mobile browsers, developers can make links on their sites open in a new process adding a new level of protection. All they need to do is add the new rel="noreferrer" attribute as well as a target=”_blank” to their links pointing to another domain.

This will tell Chrome, and any other browser sporting a recent Webkit build under the hood and eventually any browser that supports the HTML 5 feature, to open the link in a new tab or window. No referrer information will be sent to the opened site and the window.opener property will be set to NULL. For now, though, there is no possibility to launch the link in a different process but still send referrer information.

TELL US WHAT YOU THINK:

7,188 hits · 2 comments · Link to this article · Print article · Send to friend · Subscribe to news

MUST-READ RELATED ARTICLES:


Vote for the Best Open Source CMS

Google Gears Takes the Backseat as the Company Focuses on HTML 5

View Formatted PDF Files Inside Google Search Results

And the Best CMS Awards Go to

Gmail Enables Google Docs Previews

READER COMMENTS:


Comment #1 by: muntoo on 22 May 2011, 20:09 UTC reply to this comment

You can force Chrome to open each new tab in a new process:

"If you add the string '-process-per-site' to the Target line, Chrome will open a new process for each tab, but if you open the same site in two tabs, it will run them on the same process. The string '-process-per-tab' will force Chrome to create a completely new process and use a new memory space for each tab, which is its default."

http://www.techradar.com/news/internet/10-really-cool-google-chrome-hacks-501492?artc_pg=2


Comment #2 by: albercar72 on 26 Oct 2011, 08:39 UTC reply to this comment

The suggestion "rel="noreferrer"" doesn't work, at least for Chrome... I have seen that online help chat windows do open in new resized windows.. in Chrome!!... so, what's the deal?

Copyright © 2001-2012 Softpedia. Contact/Tip us at

WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM