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