WebKit的一个纯JavaScript移植:webkit.js

jopen 10年前

webkit.js 是一个体验版的 WebKit 的 纯 JavaScript 移植版本,可运行在 Node.js 和浏览器中。

目标:

  • 生成纯JavaScript渲染器,支持渲染到WebGL/Canvas 上下文。
  • 开发一个框架用于图像/网页捕获和自动化web测试(类似于PhantomJS)。
  • 开发一个框架用于用于原型CSS滤镜,HTML元素和属性。
  • 纯JavaScript渲染性能。
  • 在nodejs中开一个基于 javascript 的浏览器(只是为了好玩)。

状态

Toolchain

  • (BAD) Currently will only compile with Emscripten 1.8.2 on MacOSX in Xcode.

Building

  • (GOOD) Currently the latest nightly WebKit builds.

Linking

  • (HORRIFIC) There are plenty of linking issues to be addressed; however visibility into this is minimal. Currently the system links but has quite a few unresolved symbols that will cause the renderer to crash.

Tests

  • (NON EXISTANT) Tests for javascript<->C++ needs to be developed (non-layout related code)
  • (BAD) Unit tests that integrate with WebKit's LayoutTests

支持的特性

  • (GOOD) Features that are not currently supported:

    • Accelerated 2D Canvas
    • CSS Image Resolution
    • CSS Image Orientation
    • CSS3 Text
    • Draggable Regions
    • Encrypted Media
    • Font Load Events
    • Input Speech
    • Audio
    • Video
    • Media Streams
    • JavaScript Debugger / Inspector
    • MHTML
    • PDF/PDFKit
    • Quota's
    • Web Workers
    • Web Sockets
    • Shadow DOM
    • Web Timing
    • XSLT
    • Native Widgets (IFRAME, Buttons, Text Boxes, etc.)
    • Any Resource Loaders
    • Font Rendering
    </li> </ul>

    项目主页:http://www.open-open.com/lib/view/home/1389928843867