At http://www.mediawiki.org/w/index.php?title=ResourceLoader/Features&oldid... it is written:
It starts by performing a quick sanity check that bails out if the current browser is not supported. This saves bandwidth as well as preventing broken interfaces, basically leaving the user with an untouched page with the natural non-javascript fallback behavior. Browsers such as Internet Explorer 5 and early versions of Mozilla fall in this category.
While I see that it works, I can't find where exactly in the code is this sanity check located. Any pointers?
On 02/14/2013 05:29 AM, Nikola Smolenski wrote:
It starts by performing a quick sanity check that bails out if the current browser is not supported. [...] Browsers such as Internet Explorer 5 and early versions of Mozilla fall in this category.
While I see that it works, I can't find where exactly in the code is this sanity check located. Any pointers?
This is located in resources/startup.js , although I only see a check for IE < 6, not a check for early Mozilla versions. This file is loaded by ResourceLoaderStartUpModule::getScript() using file_get_contents() and becomes the beginning of the dynamically generated startup module.
git log led me to https://bugzilla.wikimedia.org/show_bug.cgi?id=35906 regarding the missing Mozilla check.
wikitech-l@lists.wikimedia.org