Math formulas are broken.
Open, Unbreak Now!Public

Description

Math formulas (SVG images) seem to be broken currently.
Upon first glance, it has something to do with our OkHttpWebViewClient, which we use to override the WebView's requests for content and images. If I disable this custom client, things work correctly again. Is it something related to the headers that are sent back by the server that we intercept? Has something changed recently in the way that the server responds when fetching SVG files?

Dbrant created this task.Sat, Jan 6, 5:16 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSat, Jan 6, 5:16 PM
Dbrant triaged this task as Unbreak Now! priority.Sat, Jan 6, 5:16 PM
Restricted Application added subscribers: Liuxinyu970226, Jay8g, TerraCodes. · View Herald TranscriptSat, Jan 6, 5:16 PM

Change 402600 had a related patch set uploaded (by Dbrant; owner: Dbrant):
[apps/android/wikipedia@master] Fix interception of WebView content with extended content-type header.

https://gerrit.wikimedia.org/r/402600

Change 402600 merged by jenkins-bot:
[apps/android/wikipedia@master] Fix interception of WebView content with extended content-type header.

https://gerrit.wikimedia.org/r/402600

ABorbaWMF added a subscriber: ABorbaWMF.

Looks fixed on 2.7.224-alpha-2018-01-10. Tested with the tangent article. Side scroll on long formulas works as well.

RHo added a subscriber: RHo.

Works for me too on Nexus 5 (6.01), Wikipedia 2.7.224-alpha-2018-01-17 (also tested in the Tangent article)