mw.loader: Omit private modules from the request queue
authorTimo Tijhof <krinklemail@gmail.com>
Wed, 17 Jun 2015 15:12:31 +0000 (16:12 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Wed, 17 Jun 2015 15:17:21 +0000 (16:17 +0100)
commit1dd7390372641f50b9c7b4d388dd761906ef0722
tree0eaaa6acd75e945641a88fe0e60e20588ca04770
parent4dfd54082f3835194842de56f8d3ea257b5c5e67
mw.loader: Omit private modules from the request queue

The server will just deny these modules with an error. We can
save that roundtrip by just assuming that state directly.

A fair number of these requests hit the server logs primarily from
two sources:

* Third parties that cache screen-scraped pages from before 2013.
  The private module wouldn't have existed in the HTML yet. Some scripts
  aren't cached by them and as such they get a really stretched hybrid.
  These sometimes end up making requests for modules that no longer exist
  or indeed modules that have since become private.

* Web browsers and proxies that add or modify code on the page which can
  cause some inline scripts to break. There is no recovery from that in
  the current system. But falling back to the server is no solution for
  private modules. (Per T36907; bug 34907)

Bug: T101806
Change-Id: If8780db1410dd9ca31b3c1c19a6381a58663edab
resources/src/mediawiki/mediawiki.js