Clone this repo:
  1. d76c89b [build] Add system_image property to package() by Adam Barth · 3 weeks ago master
  2. 5b48247 Update the visibility of the webkit target. by P.Y. Laligand · 3 weeks ago
  3. 2b247a5 Update prebuilt webkit + add instructions on how to do that by YoungSeok Yoon · 4 weeks ago
  4. 613fc33 Move declare_args() to a separate gni file by YoungSeok Yoon · 5 weeks ago
  5. 0055dac Updated docs to use newer gen.py flags. by P.Y. Laligand · 6 weeks ago

Fuchsia Web View

This repository contains the Fuchsia-specific code wrapping the web view class from third_party/webkit/Source/WebKit/fuchsia/WebView.h.

The build is integrated into the normal Fuchsia build process, but due to its heft the default build uses prebuilt artifacts for webkit itself. To build all dependencies locally, add ‘use_prebuilt_webkit=false’ to your GN arguments and add ‘webkit’ to your module set:

./packages/gn/gen.py -p packages/gn/default,topaz/packages/webkit --args use_prebuilt_webkit=false

# or (if you're using env.sh)
fset x86-64 --modules default,webkit --args use_prebuilt_webkit=false

Updating the Prebuilt WebKit

To update the version of the prebuilt library used for building web_view:

  • Make changes to the webkit repository at //third_party/webkit and submit.
  • Wait for the automated builder to build and upload the new version of prebuilt webkit shared library (libwebkit.so).
  • Edit scripts/download-livwebkit.sh file and update the WEBKIT_REVISION value to match the new commit hash of the //third_party/webkit repository.
  • Locally test it by running scripts/download-libwebkit.sh manually.
  • Commit the update revision in scripts/download-libwebkit.sh.

Once the above steps are followed, the newer version of prebuilt webkit library will be downloaded as part of the jiri update process as an update hook.