Welcome | Sign In
LinuxInsider.com
Web Apps

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 Learn how SugarCRM will improve your business. Free Trial. Click here. 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

Dev Hacks Emulator to Pick WinPho7's Brain
March 19, 2010
Dan Ardelean, a Windows Mobile developer, has unlocked the restricted emulator Microsoft showed to devs at its MIX10 conference recently, allowing him to view bits of the mobile OS Microsoft may not want the public to see yet. Ardelean says his motive was curiosity -- he wanted to see why Windows Mobile phones won't be upgradeable to Windows Phone 7 Series.
Google Hatches Plot to Break Into TV
March 18, 2010
Google, Intel, Sony and Logitech have reportedly come together to create a new device platform built for bringing the Web closer to the TV. Google TV would apparently use the Android OS to streamline the act of surfing Web content, including Web-based videos as well as social networking sites, through the television.
Anxieties Besiege FCC's Broadband Game Plan
March 17, 2010
The FCC has laid out some big goals for America's online future with its recently introduced national broadband plan, and those big goals may come complete with big price tags. Also causing anxiety among private enterprise is the degree of control the government will have to assume in order to put its plan into motion.
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