mirror of
https://github.com/apache/cordova-android.git
synced 2025-04-10 09:13:18 +08:00
Simplify default navigation policy to allow navigations within /app_webview/
It's really on XHRs to it that are an issue.
This commit is contained in:
parent
c237a1c0d2
commit
035c3ad319
@ -362,13 +362,7 @@ public class PluginManager {
|
||||
}
|
||||
|
||||
// Default policy:
|
||||
// Internal urls on file:// or data:// that do not contain "/app_webview/" are allowed for navigation
|
||||
if (url.startsWith("file://") || url.startsWith("data:")) {
|
||||
// This directory on WebKit/Blink based webviews contains SQLite databases!
|
||||
// DON'T CHANGE THIS UNLESS YOU KNOW WHAT YOU'RE DOING!
|
||||
return !url.contains("/app_webview/");
|
||||
}
|
||||
return false;
|
||||
return url.startsWith("file://");
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user