Page MenuHomePhabricator

Replace use of mw.Uri in VE with native URL API
Closed, ResolvedPublic

Description

We should replace use of mw.Uri in VE with native URL API. The mw.Uri library doesn't handle URLs exactly like browsers and web servers do, which over the years has caused many bugs (T325566, T324976, T286009, T268064, T270331, T106244, T66884, and more).

Previously done for DiscussionTools: T305010

Related Objects

Event Timeline

Change 867270 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/extensions/VisualEditor@master] [WIP] Replace mediawiki.Uri with native URL (or polyfill)

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

Change 868191 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/extensions/VisualEditor@master] Rewrite mw.libs.ve.getTargetDataFromHref with URL API

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

Change 868783 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/extensions/VisualEditor@master] Allow using native URL (or polyfill)

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

Change 868784 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/extensions/VisualEditor@master] Replace mediawiki.Uri with native URL (ArticleTarget)

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

Change 868785 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/extensions/VisualEditor@master] Remove references to mediawiki.Uri

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

Change 868783 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Allow using native URL (or polyfill)

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

Change 867270 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Replace mediawiki.Uri with native URL (easy cases)

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

Change 868784 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Replace mediawiki.Uri with native URL (ArticleTarget)

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

Change 868191 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Rewrite mw.libs.ve.getTargetDataFromHref with URL API

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

Change 868785 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Remove references to mediawiki.Uri

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

matmarex removed a project: Skipped QA.

The last 2 patches were reverted due to revealing issues in ContentTranslation: T328143.

Change 884502 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/extensions/VisualEditor@master] Re-apply "Rewrite mw.libs.ve.getTargetDataFromHref with URL API"

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

Change 884503 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/extensions/VisualEditor@master] Re-apply "Remove references to mediawiki.Uri"

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

Change 884502 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Re-apply "Rewrite mw.libs.ve.getTargetDataFromHref with URL API"

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

Change 884503 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Re-apply "Remove references to mediawiki.Uri"

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