Google Shifts Chrome for iOS to Apple’s WKWebView, Reducing Crashes by 70%

by

Google today introduced a few stability and performance improvements into its Chrome for iOS app, mainly centering around the company's switch from in-process rendering with UIWebView to out-of-process rendering thanks to WKWebView. Tests by Google proved the new update reduces the app's crash rate by 70 percent, letting users pick up where they left off on a page from any device without a crash causing issues.

google chrome update

The biggest change is in stability: with WKWebView’s out-of-process rendering, when the web view crashes or runs out of memory, it won’t bring down all of Chrome with it. As a result, Chrome crashes 70% less with WKWebView. Even when counting the “Aw, Snap!” page shown when the renderer crashes, there’s still a big improvement.

Outside of stability, WKWebView brings many other benefits. Web compatibility is improved with support for features like IndexedDB, bringing the HTML5test score for Chrome on iOS from 391 up to 409. Switching to background tabs will cause pages to reload 25% less often. JavaScript speed on benchmarks such as Octane is an order of magnitude faster, and scrolling is smoother and more responsive.

For the web, Google also created a new extension called "Data Saver," that will allow Chrome users the ability to manage data usage while outside of their home Wi-Fi. Similar in function to the extension available for Android devices, Data Saver reduces the data needed to access the web with the help of the company's "compression technology." The extension lets users see exactly how much data they saved and highlight which websites are using the most while out of the house.

Google said that the iOS Chrome update will begin rolling out starting today, and all users have to do is check for the update in the App Store [Direct Link] if they don't feel like waiting for an automatic update.

Top Rated Comments

benz240 Avatar
65 months ago
Now, just fix Chrome for OSX and we might have a story
Score: 6 Votes (Like | Disagree)
Traverse Avatar
65 months ago
The biggest feature that keep see bound to Safari is Reading List. I don't know how many people here use it, but I've used it every day since Safari 5.1! Right now I have about 100 articles. Yes, there are third party services that can do this or you can even save them in a Bookmark folder for later, but with Safari it's built in!

As long as Reading List remains a Safari-only feature*, I'll use Safari for personal browsing and Chrome for business-related stuff.

*I believe Microsoft Edge has a similar feature now
Score: 2 Votes (Like | Disagree)
captain cadet Avatar
65 months ago

Now, just fix Chrome for OSX and we might have a story

The way it drinks battery is incredible with one tab open - I can have 10 tabs in safari and it would use less energy than 1 tab in chrome
Score: 2 Votes (Like | Disagree)
WordMasterRice Avatar
65 months ago

I recall reading somewhere at one point that the transition wasn't a trivial one at all and basically required more or less quite a bit of a rewrite. There were some things that weren't available or easily done with the new view that seemingly needed time to be worked out.

This is more or less correct. WKWebView has a lot of limitations compared to UIWebView from an API standpoint, especially when it came out. I tried to adapt one of my apps to it and it just wasn't possible at the time.
Score: 1 Votes (Like | Disagree)
KALLT Avatar
65 months ago

So forgive my technological ignorance, but I understand that all third party browsers for iOS have always been slower than Safari due to restrictions from Apple that I don't fully understand. Does this change mean that Chrome could now rival Safari for speed?

Basically, developers have to use Apple’s APIs to write their apps. For web content, Apple provides the UIWebView class and the WKWebView class since iOS 8. The problem with these is that they were never meant for creating fully-fledged browsers, but for showing web content within apps. Safari likely uses a lot more functionality than Apple exposes through these two classes, so third-party browsers can simply never compete effectively.

Does this mean that ios9 content blockers will now work with Chrome?

Nope. Only Safari and the new SFSafariViewController class. The latter cannot be meaningfully used for a browser apps.
Score: 1 Votes (Like | Disagree)
JTravers Avatar
65 months ago

Because it is major regardless the Google-Apple competition.
The real question is why it took a long time to google to release it.

Some reasons....
https://code.google.com/p/chromium/issues/detail?id=423444


This is a meta-bug to track using the new WKWebView instead of UIWebView on iOS 8+. This would have several advantages we're aware of:
- Faster JS (modern engine rather than the older engine UIWebView is still restricted to use)
- Crash isolation (renderer crashes wouldn't bring down the whole app, better matching Chrome on other platforms)
- Support for IndexedDB (support for which was *not* added to UIWebView even in iOS 8)


Unfortunately, despite the advantages of WKWebView, it has some significant technical limitations that UIWebView does not, which means we can’t simply drop it in as a replacement. A partial list of regressions relative to UIWebView that we’re currently aware of:
- There is no cookie management API, which means there is no obvious way to clear/manage cookies
- Protocol handlers no longer work, which breaks several very important features
- POST bodies are missing from delegate callbacks, which breaks certain aspects of form handling

We’re still actively investigating WKWebView, looking for possible alternate approaches, and providing feedback to Apple about issues. We certainly hope to use WKWebView in the future, but there’s currently no way of knowing if or when that will be possible.

Score: 1 Votes (Like | Disagree)

Top Stories

16inchmacbookpromain

Kuo: New MacBook Pro Models to Feature Flat-Edged Design, MagSafe, No Touch Bar and More Ports

Thursday January 14, 2021 9:32 pm PST by
Apple is working on two new MacBook Pro models that will feature significant design changes, well-respected Apple analyst Ming-Chi Kuo said today in a note to investors that was obtained by MacRumors. According to Kuo, Apple is developing two models in 14 and 16-inch size options. The new MacBook Pro machines will feature a flat-edged design, which Kuo describes as "similar to the iPhone 12" ...
iphone x camera close

iOS 14.4 Will Introduce Warning on iPhones With Non-Genuine Cameras

Thursday January 14, 2021 8:07 am PST by
In the second beta of iOS 14.4 seeded to developers and public testers this week, MacRumors contributor Steve Moser has discovered code indicating that Apple will be introducing a new warning on iPhones that have had their camera repaired or replaced with aftermarket components rather than genuine Apple components. "Unable to verify this iPhone has a genuine Apple camera," the message will...
prototype iphone 12 pro

Prototype iPhone 12 Pro Shown Off in Photos

Wednesday January 13, 2021 3:39 pm PST by
Developer Giulio Zompetti, who often shows off prototype versions of Apple devices, today highlighted a prototype version of the iPhone 12 Pro. The iPhone 12 Pro is running an operating system called SwitchBoard, a nonUI version of the iOS 14 update that Apple uses internally. We've seen SwitchBoard on prototype devices before, as Apple uses it to test new features. Zompetti's prototype...
foldable iPhone concept feature

Apple Testing In-Display Fingerprint Sensor for iPhone 13, Foldable iPhone Also in the Works

Friday January 15, 2021 1:46 pm PST by
Apple has started "early work" on an iPhone that has a foldable display, according to a new report from Bloomberg's Mark Gurman. Though testing of a foldable iPhone has begun, Apple has not committed to releasing a device that has a foldable display. Development has not yet expanded beyond a display and Apple does not have full foldable iPhone prototypes in its labs. Like foldable...
Apple TV Ray Light 2 Triad

Apple Extends Free Apple TV+ Trials Until July

Friday January 15, 2021 10:50 am PST by
Apple is once again planning to extend its free Apple TV+ trial subscriptions, this time until July. When Apple TV+ launched in November 2019, Apple offered free Apple TV+ subscriptions to those who purchased a new Apple device in or after September 2019. Those free subscriptions were set to expire in November 2020, but in October 2020, Apple announced that it was extending free trials...
macbook pro 16 inch thunderbolt

Bloomberg: Next-Generation MacBook Pro to Offer Improved Displays, Faster Charging Over MagSafe

Thursday January 14, 2021 11:36 pm PST by
Following today's report from analyst Ming-Chi Kuo outlining major changes for the next-generation MacBook Pro models coming in the third quarter of this year, Bloomberg's Mark Gurman has weighed in with his own report corroborating some of the details but seemingly differing a bit on others. First, Gurman shares more details on the return of MagSafe charging to the MacBook Pro, indicating...
Hue module dimmer switch

Philips Hue Announces New Wall Switch Module, Dimmer Switch, and Outdoor Light Bar

Thursday January 14, 2021 3:11 am PST by
Philips Hue has announced a new wireless dimmer switch module that lets Hue bridge owners directly control the smart lighting from their standard wall switches. The new Philips Hue wall switch module is the ideal addition to any Philips Hue set up. Installed behind existing light switches, it allows users to turn their existing switch into a smart switch and ensures their smart lighting is...
pat gelsinger intel

Incoming Intel CEO Derides Company's Inability to 'Deliver Better Products' Than Apple's M1 Chip

Friday January 15, 2021 6:17 am PST by
Incoming Intel CEO Pat Gelsinger has said that the company must "deliver better products" than Apple, which he described as a "lifestyle company," and says that Intel's best days are "in front of it" (via The Oregonian). Speaking at an Intel all-hands meeting yesterday, Gelsinger derisively implied that Apple is merely a "lifestyle company," so Intel must be able to surpass its technology: ...
mac pro mini feature

Apple Working on Two New Mac Pro Desktops, One of Which Will Be Reminiscent of Power Mac G4 Cube

Friday January 15, 2021 10:23 am PST by
Apple is developing two versions of the Mac Pro to succeed the Mac Pro that was first released in December 2019, according to a new report from Bloomberg. The first updated Mac Pro is a direct successor to the current Mac Pro and it will use the same design. It may also be equipped with Intel processors rather than Apple silicon chips, and it could be one of the sole machines in the Mac...
pioneer carplay wc5700nex

The Best Apple-Related Accessories at CES 2021

Wednesday January 13, 2021 1:16 pm PST by
CES 2021 is taking place digitally this year, and it hasn't been as exciting as in past years because many vendors have opted out. That said, some companies are still showing off some interesting Apple-related accessories that are coming out this year and that will be of interest to Mac, iPad, and iPhone users. Subscribe to the MacRumors YouTube channel for more videos. Pioneer Wireless...