The bug involves an issue with the mw.loader.getState() function, specifically when the ResourceLoader module is not registered. When the Popups extension is not loaded, calling mw.loader.getState( 'ext.popups.main' ) returns null instead of the expected result. Consequently, the getInstrumentationDependencies() function returns [ 'ext.popups.main' ] instead of an empty array ([]).
QA:
- Toggle popups extension on and off.
- Observe Network tab each time.
- Ensure DesktopWebUIActions events is firing.
QA Results - Beta
AC | Status | Details |
---|---|---|
1 | ✅ | T352073#9422791 |
QA Results - test.wikipedia.org
AC | Status | Details |
---|---|---|
1 | ✅ | T352073#9435803 |