pluginScriptsForMainFrameOnly property
getter/setter pair
Set to true to allow internal plugin UserScripts only on the main frame.
NOTE: If javaScriptBridgeForMainFrameOnly is not present, this value will affect also the JavaScript Bridge internal plugin. Also, setting or changing this value after the WebView has been created won't have any effect. It should be set when initializing the WebView through PlatformWebViewCreationParams.initialSettings parameter.
The default value is false.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
- Windows WebView2
Implementation
bool? pluginScriptsForMainFrameOnly;