Skip to content

Use MIXED_CONTENT_COMPATIBILITY_MODE in PodWebView - #31

Open
jim-daf wants to merge 1 commit into
allentown521:mainfrom
jim-daf:fix-webview-mixed-content
Open

Use MIXED_CONTENT_COMPATIBILITY_MODE in PodWebView#31
jim-daf wants to merge 1 commit into
allentown521:mainfrom
jim-daf:fix-webview-mixed-content

Conversation

@jim-daf

@jim-daf jim-daf commented May 13, 2026

Copy link
Copy Markdown

Closes #30.

PodWebView.setup called setMixedContentMode(WebSettings.MIXED_CONTENT_ALWAYS_ALLOW) for the show-notes WebView. The WebSettings javadoc treats ALWAYS_ALLOW as the strictly less safe choice because it lets an https page load every kind of http sub-resource, including remote scripts.

Change

Replace MIXED_CONTENT_ALWAYS_ALLOW with MIXED_CONTENT_COMPATIBILITY_MODE. COMPATIBILITY_MODE keeps passive sub-resources (cover art, podcast thumbnails over http) loading on https show-notes pages while blocking active mixed content like remote scripts. This matches how Chrome treats mixed content in the address bar and is the right default for podcast show notes.

One identifier swap, plus a short inline comment recording the trade-off.

Assisted-by: Claude (Anthropic)

PodWebView is used to render podcast show-notes HTML. The setup
called setMixedContentMode(MIXED_CONTENT_ALWAYS_ALLOW), which lets
an https page in the WebView load every kind of http sub-resource,
including remote scripts. The WebSettings javadoc treats it as the
strictly less safe choice.

Switch to MIXED_CONTENT_COMPATIBILITY_MODE, which keeps passive
sub-resources (cover art, images) loading on https show-notes
pages while blocking active mixed content like remote scripts.
This matches how Chrome treats mixed content in the address bar
and is the right default for podcast show-notes.

Assisted-by: Claude (Anthropic)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PodWebView uses MIXED_CONTENT_ALWAYS_ALLOW for show-notes rendering

1 participant