Page MenuHomePhabricator

HTML of edit page downloaded twice
Closed, ResolvedPublic

Description

See the network log from Firefox (also reproducible on other browsers):

Bildschirmfoto_2019-04-23_11-07-23.png (944×1 px, 253 KB)

There is an entry with source "img", type "text/html", and URL "#null", which indicates downloading of a large amount HTML. At that point that HTML is already loaded, and additionally this second load tries to interpret the HTML as image.

This is caused by the rangeFix library, which creates an image with URL "#null" (https://phabricator.wikimedia.org/diffusion/GVED/browse/master/lib/rangefix/rangefix.js$54).

I don't know what the library is trying to do with that image, but it certainly should do it in a way that doesn't force the client to download that HTML again.

Event Timeline

Interesting. I think I used #null in that library to avoid a 404 request to /null, thinking that #null would not trigger another network request.

Esanders triaged this task as High priority.
Esanders edited projects, added VisualEditor (Current work); removed VisualEditor.

Change 506011 had a related patch set uploaded (by Esanders; owner: Esanders):
[VisualEditor/VisualEditor@master] Update RangeFix 0.2.6 -> 0.2.7

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

Change 506011 merged by jenkins-bot:
[VisualEditor/VisualEditor@master] Update RangeFix 0.2.6 -> 0.2.7

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

Change 506023 had a related patch set uploaded (by Jforrester; owner: Jforrester):
[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (ac38ec869)

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

Change 506023 merged by jenkins-bot:
[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (ac38ec869)

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