webview: add blinkfeatures attribute
This commit is contained in:
parent
2e8a2c3a7f
commit
fab34b400e
4 changed files with 23 additions and 1 deletions
|
@ -157,6 +157,16 @@ value will fail with a DOM exception.
|
|||
|
||||
If "on", the guest page will be allowed to open new windows.
|
||||
|
||||
### `blinkfeatures`
|
||||
|
||||
```html
|
||||
<webview src="https://www.github.com/" blinkfeatures="PreciseMemoryInfo, CSSVariables"></webview>
|
||||
```
|
||||
|
||||
A list of strings which specifies the blink features to be enabled separated by `,`.
|
||||
The full list of supported feature strings can be found in the
|
||||
[setFeatureEnabledFromString][blink-feature-string] function.
|
||||
|
||||
## Methods
|
||||
|
||||
The `webview` tag has the following methods:
|
||||
|
@ -714,3 +724,5 @@ Emitted when DevTools is closed.
|
|||
### Event: 'devtools-focused'
|
||||
|
||||
Emitted when DevTools is focused / opened.
|
||||
|
||||
[blink-feature-string]: https://code.google.com/p/chromium/codesearch#chromium/src/out/Debug/gen/blink/platform/RuntimeEnabledFeatures.cpp&sq=package:chromium&type=cs&l=527
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue