0

Add WebView information to origin trial docs

Since WebView shares the build target with the rest of Android, origin
trials cannot be independetly controlled on this platform.
Adding a new section to the relevant documentation to outline this fact,
along with a workaround.

Bug: 1186236
Change-Id: I717bcad1bd254ef0cfb0e7059cdbb27ca9ddcc21
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3865402
Reviewed-by: Jason Chase <chasej@chromium.org>
Commit-Queue: Peter Pakkenberg <pbirk@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1043117}
This commit is contained in:
Peter Birk Pakkenberg
2022-09-05 08:54:05 +00:00
committed by Chromium LUCI CQ
parent 26cda826c3
commit f6ca5259ed

@ -62,6 +62,21 @@ Trial limited to specific platform:
},
```
#### WebView considerations
Because WebView is built as part of the `"android"` os target, it is not possible
to exclude a trial from WebView if it is enabled on Android.
If the feature under trial can be enabled on WebView alongside other Android
platforms, this is preferred.
In situations where this is not feasible, the recommended solution is to
explicitly disable the origin trial in
`AwMainDelegate::BasicStartupComplete()` in [aw\_main\_delegate.cc] by
appending the `embedder_support::kOriginTrialDisabledFeatures` switch with the
disabled trial names as values.
See http://crrev.com/c/3733267 for an example of how this can be done.
### CSS Properties
You can also run experiment for new CSS properties with origin trial. After you