Page MenuHomePhabricator

Javascript errors in firebug and page flash on commons when debug=true
Closed, DeclinedPublic

Description

Firebug gives me the following error when going to the main page with debug=true while not logged in:

skin is not defined
https://commons.wikimedia.org/w/index.php?title=MediaWiki:AnonymousI18N.js&
action=raw&ctype=text/javascript
Line 14

Note that the page flashes with content and then goes blank.


Version: 1.19
Severity: normal
URL: https://commons.wikimedia.org/wiki/Main_page?debug=true

Details

Reference
bz34664

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 12:11 AM
bzimport set Reference to bz34664.
bzimport added a subscriber: Unknown Object (MLST).

I can confirm this, but it's damned odd.

End up with a web page that's empty except for loading the MediaWiki:AnonymousI18N.js in its <head>.... very weird.

I wonder if importScript() (via mw.loader.load) is somehow breaking very badly, but only in debug mode and only specific times/ways?

(In reply to comment #1)

I can confirm this, but it's damned odd.

End up with a web page that's empty except for loading the
MediaWiki:AnonymousI18N.js in its <head>.... very weird.

That's probably someone using document.write() when they shouldn't.