forked from github/cordova-android
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:
|
// Default policy:
|
||||||
// Internal urls on file:// or data:// that do not contain "/app_webview/" are allowed for navigation
|
return url.startsWith("file://");
|
||||||
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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user