Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a734c8a

Browse files
committed
Default to moderate platform defaults for mixed content behavior
Since Android 5 (API level 21), this has meant a moderately restrictive behavior that changes between releases, but generally resembles the behavior of modern and popular web browsers at the time
1 parent 68aa3ca commit a734c8a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎Source/library/src/main/java/im/delight/android/webview/AdvancedWebView.java‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,10 @@ protected void init(Context context) {
456456
if (Build.VERSION.SDK_INT < 19) {
457457
webSettings.setDatabasePath(databaseDir);
458458
}
459-
setMixedContentAllowed(webSettings, true);
459+
460+
if (Build.VERSION.SDK_INT >= 21) {
461+
webSettings.setMixedContentMode(WebSettings.MIXED_CONTENT_COMPATIBILITY_MODE);
462+
}
460463

461464
setThirdPartyCookiesEnabled(true);
462465

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /