HomePhabricator

resourceloader: Restore anticipated loader states for hardcoded module requests

Description

resourceloader: Restore anticipated loader states for hardcoded module requests

Follows-up Icba6d7a87b2 which removed this code in the
assumption that they're now taken care of by mw.loader.load.

While that is the case, they are still in the HTML and when earlier
modules require these modules the loader should not initiate a separate
request.

This was especially problematic for the 'user' module which mw.loader
was requesting with a version from the startup module which is
not associated with the current user. This would've caused edits
to a user's personal scripts post-Icba6d7a87b2 to not propagate
correctly. The second request would be ignored by mw.loader since
it implements a module that is already implemented.

This only affected wikis that were manually depending on the 'user'
module from Common.js or a default-loaded gadget.

Bug: T108275
Change-Id: I1b863a3ee23191adaf34f66b58973618487118b2

Details

Provenance
KrinkleAuthored on
Parents
rMWef6a6d37ab38: Merge "Fixed deadlockLoop() IDE errors"
Branches
Unknown
Tags
Unknown
ChangeId
I1b863a3ee23191adaf34f66b58973618487118b2