Page MenuHomePhabricator

JavaScriptTag
ActivePublic

Members (9)

Watchers (11)

Details

Description

Tasks related to JavaScript in MediaWiki core or extensions.

See also Instrument-ClientError (Javascript error logging in Wikimedia production).

Recent Activity

Today

Bhsd added a comment to T381537: Raise Grade A JavaScript requirement from ES2016 (ES7) to ES2017 (ES8).

When using await without an async in the onwiki code editor, we get an error: Missing ";" before statement. which is unhelpful in understanding the issue.

Fri, Jun 13, 3:34 PM · MW-1.45-notes (1.45.0-wmf.4; 2025-06-03), Patch-For-Review, User-notice, MediaWiki-Platform-Team, MediaWiki-ResourceLoader, JavaScript

Wed, Jun 11

Novem_Linguae added a comment to T395347: Raise Grade A JavaScript requirement from ES2017 to ES2018.

Looks like Safari 16.4 was released on March 27, 2023. Yeah, that is a bit of a problem in terms of delaying this ticket. It could be many years before it makes sense for us to drop grade A support for Safari <16.4.

Wed, Jun 11, 4:33 PM · MediaWiki-Platform-Team (Roadmap), MediaWiki-ResourceLoader, JavaScript
Bhsd added a comment to T395347: Raise Grade A JavaScript requirement from ES2017 to ES2018.

(Do Peast and ESLint support such a hybrid approach?)

Wed, Jun 11, 3:33 PM · MediaWiki-Platform-Team (Roadmap), MediaWiki-ResourceLoader, JavaScript
Escargot_rouge added a comment to T381537: Raise Grade A JavaScript requirement from ES2016 (ES7) to ES2017 (ES8).

When using await without an async in the onwiki code editor, we get an error: Missing ";" before statement. which is unhelpful in understanding the issue.

Wed, Jun 11, 2:04 PM · MW-1.45-notes (1.45.0-wmf.4; 2025-06-03), Patch-For-Review, User-notice, MediaWiki-Platform-Team, MediaWiki-ResourceLoader, JavaScript
Tacsipacsi added a comment to T395347: Raise Grade A JavaScript requirement from ES2017 to ES2018.

Given that regex stuff requires dropping support for that many Safari versions, is it maybe possible to allow all ES2018 features except for the regex ones? (Do Peast and ESLint support such a hybrid approach?) I personally use the spread operator outside of MediaWiki all the time, but hardly ever do I use advanced regex features.

Wed, Jun 11, 1:18 PM · MediaWiki-Platform-Team (Roadmap), MediaWiki-ResourceLoader, JavaScript
Novem_Linguae updated the task description for T395347: Raise Grade A JavaScript requirement from ES2017 to ES2018.
Wed, Jun 11, 3:22 AM · MediaWiki-Platform-Team (Roadmap), MediaWiki-ResourceLoader, JavaScript
Novem_Linguae updated the task description for T395347: Raise Grade A JavaScript requirement from ES2017 to ES2018.
Wed, Jun 11, 3:18 AM · MediaWiki-Platform-Team (Roadmap), MediaWiki-ResourceLoader, JavaScript
Novem_Linguae updated the task description for T395347: Raise Grade A JavaScript requirement from ES2017 to ES2018.
Wed, Jun 11, 3:15 AM · MediaWiki-Platform-Team (Roadmap), MediaWiki-ResourceLoader, JavaScript
Bhsd added a comment to T395347: Raise Grade A JavaScript requirement from ES2017 to ES2018.

ES2018 RegEx features require Safari 12+, so we have to increase Grade A Safari requirement from 11.1 to at least 12 before implementing ES2018.

Wed, Jun 11, 3:11 AM · MediaWiki-Platform-Team (Roadmap), MediaWiki-ResourceLoader, JavaScript

Tue, Jun 10

ReleaseTaggerBot edited projects for T394820: Replace use of mw.Uri with native URL API, added: MW-1.45-notes (1.45.0-wmf.6; 2025-06-17); removed MW-1.45-notes (1.45.0-wmf.4; 2025-06-03).
Tue, Jun 10, 8:00 PM · MW-1.45-notes (1.45.0-wmf.6; 2025-06-17), Abstract Wikipedia team (25Q4 (Apr–Jun)), WikiLambda Front-end, Abstract Wikipedia Fix-It tasks, Essential-Work, WikiLambda, Technical-Debt, JavaScript
Maintenance_bot removed a project from T394820: Replace use of mw.Uri with native URL API: Patch-For-Review.
Tue, Jun 10, 7:30 PM · MW-1.45-notes (1.45.0-wmf.6; 2025-06-17), Abstract Wikipedia team (25Q4 (Apr–Jun)), WikiLambda Front-end, Abstract Wikipedia Fix-It tasks, Essential-Work, WikiLambda, Technical-Debt, JavaScript
gerritbot added a comment to T394820: Replace use of mw.Uri with native URL API.

Change #1155308 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Use browser native URL instead of mw.Uri

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

Tue, Jun 10, 7:07 PM · MW-1.45-notes (1.45.0-wmf.6; 2025-06-17), Abstract Wikipedia team (25Q4 (Apr–Jun)), WikiLambda Front-end, Abstract Wikipedia Fix-It tasks, Essential-Work, WikiLambda, Technical-Debt, JavaScript
simon04 updated the task description for T374314: Use native URL API instead of mw.Uri in MediaWiki and WMF-deployed extensions.
Tue, Jun 10, 7:05 PM · MW-1.45-notes (1.45.0-wmf.6; 2025-06-17), MW-1.44-notes, MW-1.43-notes, Patch-For-Review, Technical-Debt, JavaScript, MediaWiki-General
ReleaseTaggerBot edited projects for T374314: Use native URL API instead of mw.Uri in MediaWiki and WMF-deployed extensions, added: MW-1.45-notes (1.45.0-wmf.6; 2025-06-17); removed MW-1.45-notes (1.45.0-wmf.5; 2025-06-10).
Tue, Jun 10, 7:00 PM · MW-1.45-notes (1.45.0-wmf.6; 2025-06-17), MW-1.44-notes, MW-1.43-notes, Patch-For-Review, Technical-Debt, JavaScript, MediaWiki-General
Tacsipacsi added a comment to T374314: Use native URL API instead of mw.Uri in MediaWiki and WMF-deployed extensions.
Tue, Jun 10, 6:53 PM · MW-1.45-notes (1.45.0-wmf.6; 2025-06-17), MW-1.44-notes, MW-1.43-notes, Patch-For-Review, Technical-Debt, JavaScript, MediaWiki-General
simon04 updated the task description for T374314: Use native URL API instead of mw.Uri in MediaWiki and WMF-deployed extensions.
Tue, Jun 10, 6:31 PM · MW-1.45-notes (1.45.0-wmf.6; 2025-06-17), MW-1.44-notes, MW-1.43-notes, Patch-For-Review, Technical-Debt, JavaScript, MediaWiki-General
gerritbot added a project to T394820: Replace use of mw.Uri with native URL API: Patch-For-Review.
Tue, Jun 10, 6:30 PM · MW-1.45-notes (1.45.0-wmf.6; 2025-06-17), Abstract Wikipedia team (25Q4 (Apr–Jun)), WikiLambda Front-end, Abstract Wikipedia Fix-It tasks, Essential-Work, WikiLambda, Technical-Debt, JavaScript
gerritbot added a comment to T394820: Replace use of mw.Uri with native URL API.

Change #1155308 had a related patch set uploaded (by Simon04; author: Simon04):

[mediawiki/extensions/WikiLambda@master] Use browser native URL instead of mw.Uri

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

Tue, Jun 10, 6:30 PM · MW-1.45-notes (1.45.0-wmf.6; 2025-06-17), Abstract Wikipedia team (25Q4 (Apr–Jun)), WikiLambda Front-end, Abstract Wikipedia Fix-It tasks, Essential-Work, WikiLambda, Technical-Debt, JavaScript
simon04 updated the task description for T374314: Use native URL API instead of mw.Uri in MediaWiki and WMF-deployed extensions.
Tue, Jun 10, 6:14 PM · MW-1.45-notes (1.45.0-wmf.6; 2025-06-17), MW-1.44-notes, MW-1.43-notes, Patch-For-Review, Technical-Debt, JavaScript, MediaWiki-General
gerritbot added a comment to T374314: Use native URL API instead of mw.Uri in MediaWiki and WMF-deployed extensions.

Change #1143631 merged by jenkins-bot:

[mediawiki/extensions/ReportIncident@master] Use browser native URL instead of mw.Uri

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

Tue, Jun 10, 6:02 PM · MW-1.45-notes (1.45.0-wmf.6; 2025-06-17), MW-1.44-notes, MW-1.43-notes, Patch-For-Review, Technical-Debt, JavaScript, MediaWiki-General
matmarex renamed T374314: Use native URL API instead of mw.Uri in MediaWiki and WMF-deployed extensions from Use native URL API instead of mw.Uri to Use native URL API instead of mw.Uri in MediaWiki and WMF-deployed extensions.
Tue, Jun 10, 5:47 PM · MW-1.45-notes (1.45.0-wmf.6; 2025-06-17), MW-1.44-notes, MW-1.43-notes, Patch-For-Review, Technical-Debt, JavaScript, MediaWiki-General
matmarex added a comment to T374314: Use native URL API instead of mw.Uri in MediaWiki and WMF-deployed extensions.

Assuming that the scope of this task is just extensions deployed on Wikimedia wikis, it looks like it's almost done. Everything listed in the description is resolved, but I did some more code-searching and found a few more results that were missed (or perhaps were added in the meantime). I'll update it, we'll fix them, and then I think this can be closed.

Tue, Jun 10, 5:46 PM · MW-1.45-notes (1.45.0-wmf.6; 2025-06-17), MW-1.44-notes, MW-1.43-notes, Patch-For-Review, Technical-Debt, JavaScript, MediaWiki-General
matmarex updated the task description for T374314: Use native URL API instead of mw.Uri in MediaWiki and WMF-deployed extensions.
Tue, Jun 10, 2:43 PM · MW-1.45-notes (1.45.0-wmf.6; 2025-06-17), MW-1.44-notes, MW-1.43-notes, Patch-For-Review, Technical-Debt, JavaScript, MediaWiki-General
Jdforrester-WMF closed T394820: Replace use of mw.Uri with native URL API, a subtask of T374314: Use native URL API instead of mw.Uri in MediaWiki and WMF-deployed extensions, as Resolved.
Tue, Jun 10, 1:59 PM · MW-1.45-notes (1.45.0-wmf.6; 2025-06-17), MW-1.44-notes, MW-1.43-notes, Patch-For-Review, Technical-Debt, JavaScript, MediaWiki-General
Jdforrester-WMF closed T394820: Replace use of mw.Uri with native URL API as Resolved.
Tue, Jun 10, 1:59 PM · MW-1.45-notes (1.45.0-wmf.6; 2025-06-17), Abstract Wikipedia team (25Q4 (Apr–Jun)), WikiLambda Front-end, Abstract Wikipedia Fix-It tasks, Essential-Work, WikiLambda, Technical-Debt, JavaScript

Sat, Jun 7

Od1n added a comment to T381537: Raise Grade A JavaScript requirement from ES2016 (ES7) to ES2017 (ES8).

Thank you for the explanation. The USERJSPARSE_CACHE_VERSION is simply located in /includes/ResourceLoader/Module.php.

Sat, Jun 7, 5:07 AM · MW-1.45-notes (1.45.0-wmf.4; 2025-06-03), Patch-For-Review, User-notice, MediaWiki-Platform-Team, MediaWiki-ResourceLoader, JavaScript
ReleaseTaggerBot edited projects for T374314: Use native URL API instead of mw.Uri in MediaWiki and WMF-deployed extensions, added: MW-1.45-notes (1.45.0-wmf.5; 2025-06-10); removed MW-1.45-notes (1.45.0-wmf.4; 2025-06-03).
Sat, Jun 7, 3:00 AM · MW-1.45-notes (1.45.0-wmf.6; 2025-06-17), MW-1.44-notes, MW-1.43-notes, Patch-For-Review, Technical-Debt, JavaScript, MediaWiki-General
gerritbot added a comment to T374314: Use native URL API instead of mw.Uri in MediaWiki and WMF-deployed extensions.

Change #1151742 merged by jenkins-bot:

[mediawiki/extensions/Flow@master] Use browser native URL instead of mw.Uri

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

Sat, Jun 7, 2:35 AM · MW-1.45-notes (1.45.0-wmf.6; 2025-06-17), MW-1.44-notes, MW-1.43-notes, Patch-For-Review, Technical-Debt, JavaScript, MediaWiki-General
gerritbot added a comment to T374314: Use native URL API instead of mw.Uri in MediaWiki and WMF-deployed extensions.

Change #1119875 abandoned by Bartosz Dziewoński:

[mediawiki/extensions/Flow@master] Change deprecated use of mw.Uri

Reason:

Superseded by https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Flow/+/1151742 – sorry!

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

Sat, Jun 7, 2:06 AM · MW-1.45-notes (1.45.0-wmf.6; 2025-06-17), MW-1.44-notes, MW-1.43-notes, Patch-For-Review, Technical-Debt, JavaScript, MediaWiki-General
Krinkle added a comment to T381537: Raise Grade A JavaScript requirement from ES2016 (ES7) to ES2017 (ES8).

The Peast call is behind a memcached key by (wiki, page title, revision hash).

Sat, Jun 7, 12:01 AM · MW-1.45-notes (1.45.0-wmf.4; 2025-06-03), Patch-For-Review, User-notice, MediaWiki-Platform-Team, MediaWiki-ResourceLoader, JavaScript

Fri, Jun 6

Novem_Linguae added a comment to T381537: Raise Grade A JavaScript requirement from ES2016 (ES7) to ES2017 (ES8).

If Wikimedia is upgraded to ES2017 except for the edge case mentioned in the two comments above, we might want to resolve this ticket, then document that issue in a separate ticket. Thoughts on copy pasting those two comments into a new ticket and dropping a link here?

Fri, Jun 6, 8:54 PM · MW-1.45-notes (1.45.0-wmf.4; 2025-06-03), Patch-For-Review, User-notice, MediaWiki-Platform-Team, MediaWiki-ResourceLoader, JavaScript
Od1n added a comment to T381537: Raise Grade A JavaScript requirement from ES2016 (ES7) to ES2017 (ES8).

Interestingly, a user resolved the issue by modifying the relevant script to force a server-side refresh. However, it seems problematic that such an intervention was necessary. Is there a way to enhance the process to avoid this workaround?

Fri, Jun 6, 10:09 AM · MW-1.45-notes (1.45.0-wmf.4; 2025-06-03), Patch-For-Review, User-notice, MediaWiki-Platform-Team, MediaWiki-ResourceLoader, JavaScript
Od1n added a comment to T381537: Raise Grade A JavaScript requirement from ES2016 (ES7) to ES2017 (ES8).

We have an issue on frwiki. Although we have been updated to 1.45.0-wmf.4 as expected, we are encountering this error:

Fri, Jun 6, 8:39 AM · MW-1.45-notes (1.45.0-wmf.4; 2025-06-03), Patch-For-Review, User-notice, MediaWiki-Platform-Team, MediaWiki-ResourceLoader, JavaScript
Quiddity moved T381537: Raise Grade A JavaScript requirement from ES2016 (ES7) to ES2017 (ES8) from In current Tech/News draft to Already announced/Archive on the User-notice board.
Fri, Jun 6, 1:22 AM · MW-1.45-notes (1.45.0-wmf.4; 2025-06-03), Patch-For-Review, User-notice, MediaWiki-Platform-Team, MediaWiki-ResourceLoader, JavaScript

Thu, Jun 5

Nikerabbit moved T334405: TypeError: Type error from Needs Triage to *Translation editor on the ContentTranslation board.
Thu, Jun 5, 3:15 PM · ContentTranslation, Editing-team, VisualEditor, JavaScript, Wikimedia-production-error
Nikerabbit edited projects for T334405: TypeError: Type error, added: ContentTranslation; removed SectionTranslation.
Thu, Jun 5, 3:15 PM · ContentTranslation, Editing-team, VisualEditor, JavaScript, Wikimedia-production-error

Wed, Jun 4

Hokwelum closed T381537: Raise Grade A JavaScript requirement from ES2016 (ES7) to ES2017 (ES8) as Resolved.
Wed, Jun 4, 11:49 PM · MW-1.45-notes (1.45.0-wmf.4; 2025-06-03), Patch-For-Review, User-notice, MediaWiki-Platform-Team, MediaWiki-ResourceLoader, JavaScript
Novem_Linguae reopened T373973: JSDoc of mw.notification.notify is incorrect as "Open".

Not sure if Krinkle's suggestion should be handled in this task or a new task. Will re-open this one for now to help draw attention.

Wed, Jun 4, 9:46 PM · MW-1.45-notes (1.45.0-wmf.5; 2025-06-10), JSDoc WMF theme, Tech-Docs-Team, MediaWiki-General, JavaScript, Documentation
Krinkle added a comment to T373973: JSDoc of mw.notification.notify is incorrect.

The rest of the Notification class docs are still missing (classdesc, start, pause, resume, close) from the web page.

Wed, Jun 4, 9:30 PM · MW-1.45-notes (1.45.0-wmf.5; 2025-06-10), JSDoc WMF theme, Tech-Docs-Team, MediaWiki-General, JavaScript, Documentation
Xeverything11 added a comment to T395347: Raise Grade A JavaScript requirement from ES2017 to ES2018.
  • Safari 11.x: 0.016%
  • Safari iOS 11.x: <0.02%
Wed, Jun 4, 7:35 PM · MediaWiki-Platform-Team (Roadmap), MediaWiki-ResourceLoader, JavaScript
matmarex closed T373973: JSDoc of mw.notification.notify is incorrect as Resolved.

Looks fixed

Wed, Jun 4, 2:28 PM · MW-1.45-notes (1.45.0-wmf.5; 2025-06-10), JSDoc WMF theme, Tech-Docs-Team, MediaWiki-General, JavaScript, Documentation
Maintenance_bot removed a project from T373973: JSDoc of mw.notification.notify is incorrect: Patch-For-Review.
Wed, Jun 4, 1:31 PM · MW-1.45-notes (1.45.0-wmf.5; 2025-06-10), JSDoc WMF theme, Tech-Docs-Team, MediaWiki-General, JavaScript, Documentation
ReleaseTaggerBot added a project to T373973: JSDoc of mw.notification.notify is incorrect: MW-1.45-notes (1.45.0-wmf.5; 2025-06-10).
Wed, Jun 4, 1:00 PM · MW-1.45-notes (1.45.0-wmf.5; 2025-06-10), JSDoc WMF theme, Tech-Docs-Team, MediaWiki-General, JavaScript, Documentation
gerritbot added a comment to T373973: JSDoc of mw.notification.notify is incorrect.

Change #1136017 merged by jenkins-bot:

[mediawiki/core@master] docs: Make internal Notification object visible on docs site

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

Wed, Jun 4, 12:33 PM · MW-1.45-notes (1.45.0-wmf.5; 2025-06-10), JSDoc WMF theme, Tech-Docs-Team, MediaWiki-General, JavaScript, Documentation
Xeverything11 added a comment to T395347: Raise Grade A JavaScript requirement from ES2017 to ES2018.

Safari 11.1 (macOS) and 11.3-11.4 (iOS) only account for 0.02% of market share, according to CanIUse.

Wed, Jun 4, 6:38 AM · MediaWiki-Platform-Team (Roadmap), MediaWiki-ResourceLoader, JavaScript
Novem_Linguae updated the task description for T395347: Raise Grade A JavaScript requirement from ES2017 to ES2018.
Wed, Jun 4, 6:33 AM · MediaWiki-Platform-Team (Roadmap), MediaWiki-ResourceLoader, JavaScript
Xeverything11 added a comment to T395347: Raise Grade A JavaScript requirement from ES2017 to ES2018.

ES2018 RegEx features require Safari 12+, so we have to increase Grade A Safari requirement from 11.1 to at least 12 before implementing ES2018.

Wed, Jun 4, 6:31 AM · MediaWiki-Platform-Team (Roadmap), MediaWiki-ResourceLoader, JavaScript

Mon, Jun 2

JTweed-WMF edited projects for T395347: Raise Grade A JavaScript requirement from ES2017 to ES2018, added: MediaWiki-Platform-Team (Roadmap); removed MediaWiki-Platform-Team.
Mon, Jun 2, 2:26 PM · MediaWiki-Platform-Team (Roadmap), MediaWiki-ResourceLoader, JavaScript
Nikerabbit closed T152904: Attempting to translate list containing a MathWorld template causes 'TypeError: mwData.parts[0].template is undefined' as Resolved.

Cannot reproduce, nor similar logs in Logstash.

Mon, Jun 2, 10:48 AM · ContentTranslation, JavaScript
Nikerabbit triaged T152904: Attempting to translate list containing a MathWorld template causes 'TypeError: mwData.parts[0].template is undefined' as Medium priority.
Mon, Jun 2, 10:46 AM · ContentTranslation, JavaScript