Settings.allowTopNavigationToDataUrls

bool allowTopNavigationToDataUrls() @property

Get allowTopNavigationToDataUrls property.

Returns

Whether or not the top frame is allowed to navigate to data URLs. It is disabled by default

due to the risk it poses when loading untrusted URLs, with data URLs being used in scamming and phishing attacks. In contrast, a scenario where it could be enabled could be an app that embeds a WebView and you have control of the pages being show instead of a generic browser.

void allowTopNavigationToDataUrls(bool propval) @property

Set allowTopNavigationToDataUrls property.

Parameters

propvalWhether or not the top frame is allowed to navigate to data URLs. It is disabled by default due to the risk it poses when loading untrusted URLs, with data URLs being used in scamming and phishing attacks. In contrast, a scenario where it could be enabled could be an app that embeds a WebView and you have control of the pages being show instead of a generic browser.