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:
Andrew Grieve 2015-02-27 15:46:17 -05:00
parent c237a1c0d2
commit 035c3ad319

View File

@ -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://");
}
/**