he.wiki's js broke in T145967, the issue was local, but it showed a real issue in ve, it should not fail to load is the site's js is broken.
Description
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Correct error handling for exceptions in 'user' module | mediawiki/core | master | +45 -42 |
Related Objects
- Mentioned Here
- T145967: VE is not loading in he.wiki
Event Timeline
VE does everything correctly, as far as I can see, I think this is a bug in ResourceLoader.
To reproduce: edit "MediaWiki:Group-user.js" on your wiki to cause an exception when it's executed (e.g. derp();), then try loading VE on any page in non-debug mode.
Running mw.loader.getState( 'user' ) in browser console returns "executing". That is very wrong. Presumably, in VE's code mw.loader.using( [ 'user', 'site' ] ) just waits forever, and the editor never loads.
Change 311329 had a related patch set uploaded (by Bartosz Dziewoński):
Correct error handling for exceptions in 'user' module
Hmm, the current description is not correct though. This only affects JS things that depend on the 'user' module.
Change 311329 merged by Bartosz Dziewoński:
Correct error handling for exceptions in 'user' module