Page MenuHomePhabricator

Align mediawiki.Uri more with the native URL constructor
Closed, DuplicatePublic

Description

Chrome and Firefox both ship with a native URL constructor (https://url.spec.whatwg.org/).

There is a polyfill implemented at https://github.com/webcomponents/URL.

This seems to be a more stable implementation than whatever we came up with. It has solved bugs such as T68617.

Event Timeline

Krinkle raised the priority of this task from to Needs Triage.
Krinkle updated the task description. (Show Details)
Krinkle subscribed.

Currently blocked because upstream polyfill insists on using ES5 feature Object.create(null); which our shim currently doesn't support. As well as ES5 syntax such as prototype: { get href() { which can't be polyfilled at run-time.