Changes between Version 11 and Version 12 of WebKit2
- Timestamp:
- Apr 9, 2010, 8:18:14 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WebKit2
v11 v12 5 5 == Why is it named WebKit2? == 6 6 7 The somewhat pedestrian reason is that it's an incomp tible API change from the original WebKit, so it will probably be installed as something like /System/Library/WebKit2.framework on Mac.7 The somewhat pedestrian reason is that it's an incompatible API change from the original WebKit, so it will probably be installed as something like /System/Library/WebKit2.framework on Mac. 8 8 9 == C API :==9 == C API == 10 10 11 WebKit2 will provide a stable C-based non-blocking API that is mostly platform agnostic. In order to achieve the goal of a non blocking API, several techniques are used to make the API usable while still providing a comprehensive set of features to the embedder. These techniques include:11 WebKit2 will provide a stable C-based non-blocking API that is mostly platform agnostic. In order to achieve the goal of a non-blocking API, several techniques are used to make the API usable while still providing a comprehensive set of features to the embedder. These techniques include: 12 12 - Notification style client callbacks (e.g. didFinishLoadForFrame) 13 13 These inform the embedder that something has happened, but do not give … … 43 43 a HWND. On the Mac, it inherits from NSView. 44 44 45 Note that the requirement to be fully non blocking requires an incompatible API break - many features of most existing WebKit APIs cannot be fulfilled in a nonblocking manner. Since we needed the API break anyway, we also took advantage of the opportunity to clean up and simplify the API.45 Note that the requirement to be fully non-blocking requires an incompatible API break - many features of most existing WebKit APIs cannot be fulfilled in a non-blocking manner. Since we needed the API break anyway, we also took advantage of the opportunity to clean up and simplify the API. 46 46 47 47 == Port-Specific APIs == 48 48 49 We plan to build a fully no blocking Objective-C API for Mac OS X as a wrapper on top of the C API. We believe a similar approach may be viable for other ports.49 We plan to build a fully non-blocking Objective-C API for Mac OS X as a wrapper on top of the C API. We believe a similar approach may be viable for other ports. 50 50 51 51 We are also not removing or obsoleting any of the existing port-specific APIs. WebCore will remain as-is, and all current APIs will continue to work and be fully supported. Thus, WebKit development and existing ports of WebKit will not be disrupted. … … 75 75 [[Image(chromium-webkit-stack.png)]] 76 76 77 Notice that in this case, the the process boundary is *above* the API boundary. Chromium WebKit does not directly provide a multiprocess framework, rather, it is optimized for use as a component of a multiprocess application, which does all the proxying and process management itself. The Chrome team at Google did a great job at trailbla izing multiprocess browsing with Chrome. But it's difficult to reuse their work, because the critical logic for process management, proxying between processes and sandboxing is all part of the Chrome application, rather than part of the API layer. So if another WebKit-based application or another port wanted to do multiprocess based on Chromium WebKit, it would be necessary to reinvent or cut & paste a great deal of code.77 Notice that in this case, the the process boundary is *above* the API boundary. Chromium WebKit does not directly provide a multiprocess framework, rather, it is optimized for use as a component of a multiprocess application, which does all the proxying and process management itself. The Chrome team at Google did a great job at trailblazing multiprocess browsing with Chrome. But it's difficult to reuse their work, because the critical logic for process management, proxying between processes and sandboxing is all part of the Chrome application, rather than part of the API layer. So if another WebKit-based application or another port wanted to do multiprocess based on Chromium WebKit, it would be necessary to reinvent or cut & paste a great deal of code. 78 78 79 79 That was an understandable choice for Google - Chrome was developed as a secret project for many years, and is deeply invested in this approach. Also, there are not any other significant API clients. There is Google Chrome, and then there is the closely related Chrome Frame.