Page MenuHomePhabricator

HTTP diff links on the Android mobile app cannot be opened because Android blocks HTTP traffic
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):
See video:

  • Find any link http:// link on the mobile app to a diff with the url params diff and oldid
  • Click on it

What happens?:
Results in a "CLEARTEXT communication to en.wikipedia.org not permitted by network security policy"

What should have happened instead?:
The diff should have opened.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
latest Huawei build

Event Timeline

Monkeysmashingkeyboards renamed this task from CORS/CSP (?) causing issues with viewing diffs on mobile to CORS/CSP (?) causing issues with viewing diffs on Android mobile app.Mar 10 2026, 6:57 PM

The links use HTTP and not HTTPS (see also https://en.wikipedia.org/w/index.php?title=Wikipedia:Requests_for_comment/April_Fools%27&action=edit&section=14):

image.png (931×162 px, 106 KB)

Per https://developer.android.com/privacy-and-security/security-config#CleartextTraffic:

Starting with Android 9 (API level 28), cleartext support is disabled by default. Applications that require cleartext traffic can opt in to cleartext traffic.

Therefore I believe this is a bug in the app, as it's trying to load the diff via HTTP, which is disallowed by Android.

SomeRandomDeveloper renamed this task from CORS/CSP (?) causing issues with viewing diffs on Android mobile app to HTTP diff links on the Android mobile app cannot be opened because Android blocks HTTP traffic.Mar 10 2026, 10:19 PM

I've confirmed with @Dbrant that this not related to the recent CSP changes. Untagging from that hierarchy.

I don't think this is reproduced anymore:

For this page: https://en.wikipedia.org/wiki/User:JGiannelos_(WMF)/Debug-T419595
Both on a physical android device and android studio clicking both links shows the diff.