PageTriage overrides the native Date object in https://test.wikipedia.org/w/extensions/PageTriage/modules/external/date.js?25d10:40 causing bugs in instrumentation of other products.
Seems to impact both Monobook and Vector users
https://logstash.wikimedia.org/app/dashboards#/doc/logstash-*/logstash-2021.01.25?id=9lwVO3cBjr5R1RLCk-xa
Only occurring on English Wikipedia
at Date.prototype.toString URL1:170:660 at randomToken URL1:108:104 at initialize URL1:110:274 at SessionState URL1:111:367 at setup URL1:119:732 at initialize< URL1:119:976 at atMostOnce/< URL1:118:938 at fn URL1:273:582 at dispatch URL1:277:742 at add/elemData.handle URL1:274:388 URL1: https://en.wikipedia.org/w/load.php?lang=en&modules=ext.centralNotice.choiceData%2Cdisplay%2CgeoIP%2CimpressionDiet%2CkvStore%2CstartUp%7Cext.centralauth.ForeignApi%7Cext.centralauth.centralautologin.clearcookie%7Cext.cite.ux-enhancements%7Cext.cx.eventlogging.campaigns%7Cext.echo.api%2Cinit%7Cext.eventLogging%2CnavigationTiming%2CwikimediaEvents%7Cext.pageTriage.external%2Cinit%2CtoolbarStartup%7Cext.uls.interface%2Cpreferences%2Cwebfonts%7Cjquery%2Coojs%2Coojs-router%2Csite%7Cjquery.client%2Ccookie%2CmakeCollapsible%2CtextSelection%7Cmediawiki.ForeignApi%2CString%2CTitle%2CUri%2Capi%2Cbase%2Ccldr%2Ccookie%2Cexperiments%2CjqueryMsg%2Clanguage%2Cstorage%2Cuser%2Cutil%7Cmediawiki.ForeignApi.core%7Cmediawiki.editfont.styles%7Cmediawiki.libs.pluralruleparser%7Cmediawiki.page.ready%7Cmediawiki.page.watch.ajax%7Cmediawiki.ui.button%2Cicon%7Cmmv.bootstrap%2Chead%7Cmmv.bootstrap.autostart%7Cuser.defaults&skin=monobook&version=9ls2e
Replication steps
- Log in as a user with "page triaging" rights e.g. admin on https://test.wikipedia.org/wiki/Alberto_jacinto_c._tobias?safemode=1
- Run Date.now().toString( 36 ); in console
Expected: Code runs without any problems
Actual: JavaScript error