[go: up one dir, main page]

Page MenuHomePhabricator

tempUserBanner.js throws TypeError: mw.message(...).parseDom is not a function
Closed, ResolvedPublic

Description

Steps to reproduce:

  • Set config $wgAutoCreateTempUser['enabled'] = true; (and leave the other properties of that config as default)
  • Set config $wgResourceLoaderDebug = true;
  • Open developer tools in the browser
  • Log out
  • Edit an article
  • Observe that an error is encountered: TypeError: mw.message(...).parseDom is not a function

The mediawiki.tempUserBanner module should depend on the mediawiki.jqueryMsg module.

(Note that this doesn't actually impede temporary account creation.)

Event Timeline

Change 949055 had a related patch set uploaded (by Tchanders; author: Tchanders):

[mediawiki/core@master] Specify dependency for mediawiki.tempUserBanner module

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

Change 949055 merged by jenkins-bot:

[mediawiki/core@master] Specify dependency for mediawiki.tempUserBanner module

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

GMikesell-WMF subscribed.

@Tchanders I'm not sure why I'm getting those other errors with Chrome unlike the other browsers but it did remove the TypeError: mw.message(...).parseDom is not a function. I will move this to Done and let me know if I should create a ticket for Chrome if that's an issue. Thanks for your work!

Status: ✅ PASS
Environment: Local
OS: macOS Ventura
Browser: Chrome 115, Firefox 116, Safari 16.6
Device: MBP
Emulated Device:Windows 11 Edge from BrowserStack
Test Link:
http://localhost:8080/wiki/Dog

Patch tested on: 00ff9ffff127ef02f2055d7df98189a6012cc46d

Old PatchChrome 115Firefox 116Safari 16.6
2023-08-21_09-21-12.png (1×2 px, 888 KB)
2023-08-21_09-24-14.png (1×2 px, 727 KB)
2023-08-24_11-27-13.png (1×2 px, 970 KB)
2023-08-24_11-29-55.png (2×2 px, 1 MB)