Loading...
Searching...
No Matches
juce::WebBrowserComponent::Options::AppleWkWebView Class Reference

Detailed Description

Options specific to the WkWebView backend used on Apple systems.

These options will be ignored on non-Apple platforms.

Public Member Functions

AppleWkWebView withAllowAccessToEnclosingDirectory (bool x) const
 Specifies whether the WebView is allowed to access siblings of files specified with the file:// URL scheme.
AppleWkWebView withDisabledAcceptsFirstMouse () const
 If this options is specified, the underlying WebView will return NO from its acceptsFirstMouse method.
auto getAllowAccessToEnclosingDirectory () const
auto getAcceptsFirstMouse () const

Member Functions

◆ withAllowAccessToEnclosingDirectory()

AppleWkWebView juce::WebBrowserComponent::Options::AppleWkWebView::withAllowAccessToEnclosingDirectory ( bool x) const
nodiscard

Specifies whether the WebView is allowed to access siblings of files specified with the file:// URL scheme.

Allowing this is a potential security vulnerability if you don't have full control over the file that you are opening.

References juce::withMember().

◆ withDisabledAcceptsFirstMouse()

AppleWkWebView juce::WebBrowserComponent::Options::AppleWkWebView::withDisabledAcceptsFirstMouse ( ) const
nodiscard

If this options is specified, the underlying WebView will return NO from its acceptsFirstMouse method.

This disables the click-through behaviour, meaning that clicking a previously unfocused application window only makes the window focused, but will not pass on the click to whichever control inside the WebView is under the mouse.

References juce::withMember().

◆ getAllowAccessToEnclosingDirectory()

auto juce::WebBrowserComponent::Options::AppleWkWebView::getAllowAccessToEnclosingDirectory ( ) const

◆ getAcceptsFirstMouse()

auto juce::WebBrowserComponent::Options::AppleWkWebView::getAcceptsFirstMouse ( ) const
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram