Last modified: 2014-01-31 20:36:00 UTC
In mobile this module is NOT present so this throws a javascript exception. Currently a dependency is made in EditPage.php itself to add toolbar related code. This should be added as a separate module rather than an inline script. $script = 'mw.loader.using("mediawiki.action.edit", function() {'; getEditToolbar should not run any javascript - it should simply add html that is enhanced by a javascript module. An inline script does not seem to be necessary here.
This horrible hack has got the functionality working in mobile for the time being: https://gerrit.wikimedia.org/r/#/c/48663/2/includes/skins/SkinMobile.php
Will this be fixed once the code is moved out of core? (bug 28856)
Mobile now completely overrides the edit action so this is no longer an issue here.