(bug 34542) Calling mw.loader.load('http://someurlhere') sometimes calls document...
authorRoan Kattouw <catrope@users.mediawiki.org>
Mon, 27 Feb 2012 22:33:14 +0000 (22:33 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Mon, 27 Feb 2012 22:33:14 +0000 (22:33 +0000)
commitcb1972b4ae4adc58413f00f6af8e09a48f608983
tree21b3866e971691eef782e8ccf645d3d63e67068c
parent35f745de45ad3e0b24a4a3469c0951d04307f4b8
(bug 34542) Calling mw.loader.load('someurlhere') sometimes calls document.write() from inside an asynchronously loaded script. This is because we added the async parameter in 1.19, and made it default to false, which works for 1.18 HTML but doesn't work for user/site/Gadget JS written for 1.18 . So make the async parameter default to true when a URL is passed and to false otherwise. This is kind of evil but it's the only sane way of preserving b/c that I can think of
resources/mediawiki/mediawiki.js