https://bugzilla.wikimedia.org/show_bug.cgi?id=47607
Web browser: ---
Bug ID: 47607
Summary: mw, jQuery is not defined because document.write is
used after page load finished
Product: MediaWiki
Version: 1.21-git
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: Unprioritized
Component: ResourceLoader
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
Classification: Unclassified
Mobile Platform: ---
Created attachment 12169
--> https://bugzilla.wikimedia.org/attachment.cgi?id=12169&action=edit
Screenshot showing a debug window and the error console
Where?
At Wikimedia Commons.
How to reproduce?
* Use FF 20.0.1 (older versions are reported having the same behaviour)
* Reset account preferences or create fresh account.
* Go to user pages like https://commons.wikimedia.org/wiki/User:Bidgee (then
Wikilove will trigger the issue) or go to
http://commons.wikimedia.org/wiki/User_talk:FlickreviewR/bad-authors?debug=true
(try anon and logged-in)
Reproducible?
Difficult. Does not always happen. Took me also a while to get it. But if you
once have it, it happens always.
What happens?
-Visible to everyone
If you have a slow machine you see the page content (boxes, colors, letters)
for a short time and then, it vanishes (leaving a blank page) and Firefox seems
to redirct to a WYCIWYG URL
(https://commons.wikimedia.org/wiki/File:Wyciwyg.jpg).
-Visible with debugging tools
mw or jQuery or mediaWiki are supposed to be undefined. However, I can't say
whether the error logged before the page vanished or after.
Here is the HTML content of the blank page:
<html><head><script
src="//bits.wikimedia.org/commons.wikimedia.org/load.php?debug=true&lang=de&modules=ext.gadget.libAPI&only=scripts&skin=vector&version=20130412T161949Z&*"></script></head></html>
This all leads to the conclusion that document.write is used where it should
not be used (after document finished loading). Note that Commons has *a lot of
JavaScript loaded through RL*
I am not sure whether it is a MediaWiki or a Firefox bug. Were there recent
changes affecting RL?
Expected behaviour:
No blank pages.
-----
Error from the FF JS Error console (which is visible in the attached
screenshot)
Zeitstempel: 24.04.2013 14:46:45
Fehler: ReferenceError: jQuery is not defined
Quelldatei:
https://bits.wikimedia.org/commons.wikimedia.org/load.php?debug=true&lang=de&modules=ext.gadget.libAPI&only=scripts&skin=vector&version=20130412T161949Z&*
Zeile: 921
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l