A Preliminary Study on webkit2, Apple's latest browser engine

Source: Internet
Author: User

Apple announced in its email list today
Cloth
Their browser engine WebKit's latest project webkit2. Webkit2 aims to implement independent processes and non-blocking APIs. Based on WebKit
Google Chrome
Released in 2008
The independent process function has been implemented. This function can prevent the entire browser from crashing due to the crash of a webpage.

IE8
There is also a similar mechanism to prevent crash
Firefox is also working with Electrolysis
Expand the same development. In Mac OS, Safari 4 puts flash plug-ins in a separate process to prevent crash. webkit2
This capability is directly built into the rendering engine.

Another goal of webkit2 is to implement non-blocking APIs, which means that developers can directly use various callback functions to receive messages in the WebKit view.

For exampleProgramIf I need to load a webpage, I can callLoadwebsite method (for example only ),
The parameter is passed to this method, and then a callback function orCodeThe webpage is loaded

.

In this way, every time webkit2 completes an operation, developers can use callback
The function interacts with the rendering engine in a timely manner, so that when the rendering engine is working, the main process can continue to do its own thing, and the rendering engine will complete the work through callback
Function notification and execution of your preset code to make your program more responsive. Currently, there are three technologies to help achieve this goal: message-oriented customer callback and policy-oriented customer
Callback and customer policy settings. The fourth method is to directly communicate with Dom through code injection, but this method has not been implemented yet. Apple's Anders
Carlsson's home page for this project
.

The best thing about the webkit2 engine is that any webkit2-based product can directly use these features without having
With webkit2, developers can easily implement more stable products. Currently, the platforms that support webkit2 include windows and OS.
X. Linux support is also mentioned.

Source: ARS technica inside
Webkit2: less waiting, less crashing

Chinese compiling Source:Ruishang enterprise CMS
Website content management system
Official Website

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.