Welcome | Sign In
LinuxInsider.com
Software

Chrome 2.0 Juices Up JavaScript

Print Version
E-Mail Article
Reprints
Chrome 2.0 Juices Up JavaScript

A new version of Google's Chrome browser boasts faster speed by way of improvements to V8 and WebKit. Other new features include full-screen mode and autofill. A faster JavaScript experience, however, could also pave the way for faster malware, since the language is a favorite among scammers. Google contends Chrome is no less safe than other browsers.


Google (Nasdaq: GOOG) on Thursday revealed Chrome 2.0, a purportedly faster and more feature-filled version of the search giant's Web browser.

The extra speed comes from an update to its V8 JavaScript engine and from a new version of the open source WebKit rendering engine.

However, Chrome's speed advantage may soon be overshadowed by rivals. Mozilla, for example, is expected to release a final version of Firefox 3.5.

Also, speeding up JavaScript may lead to security problems.

New Features in Chrome 2.0

Chrome 2.0 is faster than Version 1, released eight months ago, because it runs JavaScript faster, according to Google.

It also incorporates some of the features beta testers requested the most. One is an improved new tab page that lets users remove thumbnails.

Another is a new full-screen mode, and a third feature is form autofill.

However, full-screen mode and form autofill are both features other browsers have had for a while (think deadly rivals Internet Explorer and Firefox).

Why Chrome 2.0 Works Faster

The V8 JavaScript engine is open source technology developed by Google and written in C++. It increases performance by compiling JavaScript to native machine code before execution, instead of to a bytecode or interpretation.

It also employs optimization techniques such as inline caching, which remembers the results of a previous method lookup directly at the call site. A call site of a function is a line in the code that passes arguments to the function and receives return values in exchange.

These optimizations let JavaScript applications run at the speed of a compiled binary.

Will Firefox Pose a Speed Challenge?

Chrome 2.0 may not hold its speed advantage very long, however -- Mozilla will issue the release candidate (RC) of Firefox 3.5 in the first week of June, according to Mozilla director Mike Beltzner's post on the company's blog. That new version of the browser could be sped up too.

"It's pretty common competition among the browsers -- they always want to be fastest," Randy Abrams, director of technical education at security software vendor ESET, told TechNewsWorld.

Mozilla did not respond to requests for comment by press time.

Speed Kills?

Supercharging JavaScript may not always result in a faster user experience.

"I'm not sure how big an impact speeding up JavaScript is going to make unless you're using some huge JavaScript application," ESET's Abrams said.

Speeding up JavaScript could also speed up the malware based on the language.

"Malware based on JavaScript will run faster," Abrams said. "JavaScript is the vector of choice for drive-by attacks."

In a drive-by attack, a Web page containing malicious code downloads that code onto visitors' computers without their knowledge or permission ,and without the user having to click on any links.

Malware authors use JavaScript in almost 90 percent of Web pages that contain malicious script, according to Stephan Chenette, manager of security at Web security software vendor Websense.

Hard to Scratch Chrome?

It's not necessarily open season on users of Google Chrome, since it uses a sandboxing model that makes it difficult to hack, Google spokesperson Eitan Bencuya told TechNewsWorld.

Sandboxing means isolating code so that it cannot interact with the operating system or applications on a user's computer.

Still, ESET's Abrams thinks sandboxing is not enough. "Chrome does have some protection other browsers don't, in that it sandboxes individual tabs," he said. "That might protect the operating system itself, but it's not going to do anything to protect you against cross-site scripting or clickjacking."

Sandboxing offers only limited protection, he warned. "It's only effective if you go to each different site in a different tab. Otherwise, the old data will be accessible when you use the same tab to click on a new site."

Google contends Chrome is no less safe than other browsers. "All of the topics you mention are tough issues to fight, and they affect all browsers," Bencuya said.


Print Version E-Mail Article Reprints More by Richard Adhikari


Talkback: Join the Discussion.
Google chrome- speed demon of web browsers..
TechCombo
Posted 2009-05-23
I feel that Google Chrome is perfect for beginners and users that do not use the internet too ...

More by Richard Adhikari

Steve Jobs Conquers the Decade - Now What?
November 07, 2009
Apple CEO Steve Jobs has been named the chief executive of the decade by Fortune, and it's hard to call that a bad pick, considering the turnaround Apple has undergone since Jobs returned to the helm in the mid-'90s. What's next on the list for a tech leader who's already changed the way we use computers, how we listen to music, and how we use our cellphones?
Verizon Launches a Droid of a Different Color
November 06, 2009
Motorola's new handset wasn't the only Droid that Verizon brought to market Friday. HTC's Droid Eris also made its debut. The phone closely resembles the HTC Hero, a handset Sprint started selling last month. The similarity in names for the two Verizon phones is no accident -- Verizon says the name "Droid" will be used as a brand within the carrier's lineup.
There's Something About Droid
November 05, 2009
For Verizon, the Droid is an answer to AT&T. For Motorola, it's a path to relevance in the smartphone world. For the Android platform, it's the debut of a brand-new version of the operating system. And for some smartphone shoppers, it could be a tough choice between a Droid and an iPhone.
Don't miss a story -- sign up for our FREE e-mail newsletters and view the latest headlines at a glance.
Tech News Flash [ View Sample ]
E-Commerce Minute [ View Sample ]
ECT News Network Weekly Newsletter [ View Sample ]
Shortcuts
ECT News Network Information
Reader Services
Corporate
ECT News Network