Move wgBreakFrames client code to mediawiki.page.startup
authorTimo Tijhof <krinklemail@gmail.com>
Fri, 30 Jun 2017 20:36:54 +0000 (13:36 -0700)
committerKrinkle <krinklemail@gmail.com>
Fri, 30 Jun 2017 20:40:18 +0000 (20:40 +0000)
commit26bde8cdf1c6320e11e7fc24a5c0926e57893e86
treec5108ea9d180e361f0677c715d9cdaf7c354cb59
parent6711b872b892df544fd17633034535c8fc64849c
Move wgBreakFrames client code to mediawiki.page.startup

Follows-up f7c324685195, which migrated this from legacy wikibits
to the 'mediawiki.page.ready', however it's better suited in
'mediawiki.page.startup' because that one loaded on all pages blindly
(used to be hardcoded in OutputPage, now part of 'core' group
in Skin::getDefaultModules).

mediawiki.page.ready on the other hand is primarily for enhancing
the page content, loaded in Skin::getDefaultModules in the 'content'
group, which extensions like MobileFrontend may override with an
alternate implementation. This means frame breaking is bypassed!

Change-Id: Ia7206fac5c4ec6ace87304cfaeef375916b94fcf
resources/src/mediawiki/page/ready.js
resources/src/mediawiki/page/startup.js