Last modified: 2012-05-03 02:42:45 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T36466, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 34466 - All sections in Preferences visible
All sections in Preferences visible
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
User preferences (Other open bugs)
1.19
All All
: High normal (vote)
: 1.19.0 release
Assigned To: Nobody - You can work on this!
https://www.mediawiki.org/wiki/Specia...
: javascript
Depends on:
Blocks: 31217
  Show dependency treegraph
 
Reported: 2012-02-17 09:29 UTC by Michael M.
Modified: 2012-05-03 02:42 UTC (History)
3 users (show)

See Also:
Web browser: Firefox
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Michael M. 2012-02-17 09:29:03 UTC
On Special:Preferences all sections except the current should be hidden via Javascript. This seems to be broken with 1.19.
I tested with Firefox 3.6.x on mw: and simple: and all sections are visible, as if no Javascript was present. It works in debug mode (i.e. when appending ?debug=true to the URL), and it works on beta.wmflabs.
The Javascript is loaded (I get the file https://bits.wikimedia.org/www.mediawiki.org/load.php?debug=false&lang=en&modules=ext.UserBuckets|ext.translate.selecttoinput|jquery.autoEllipsis%2CcheckboxShiftClick%2CclickTracking%2CcollapsibleTabs%2CdelayedBind%2ChighlightText%2Cjson%2CmakeCollapsible%2Cmw-jump%2Cplaceholder%2Csuggestions%2CtabIndex|mediawiki.action.watch.ajax|mediawiki.api%2Chtmlform%2Cuser|mediawiki.api.watch|mediawiki.legacy.mwsuggest|mediawiki.page.ready|mediawiki.special.preferences&skin=vector&version=20120217T090945Z&*https://bits.wikimedia.org/www.mediawiki.org/load.php?debug=false&lang=en&modules=ext.UserBuckets|ext.translate.selecttoinput|jquery.autoEllipsis%2CcheckboxShiftClick%2CclickTracking%2CcollapsibleTabs%2CdelayedBind%2ChighlightText%2Cjson%2CmakeCollapsible%2Cmw-jump%2Cplaceholder%2Csuggestions%2CtabIndex|mediawiki.action.watch.ajax|mediawiki.api%2Chtmlform%2Cuser|mediawiki.api.watch|mediawiki.legacy.mwsuggest|mediawiki.page.ready|mediawiki.special.preferences&skin=vector&version=20120217T090945Z&*, with the code that should hide the sections) but apparently isn't executed. There are no errors in the Javascript error log. Clearing the cache doesn't help.
Comment 1 Sam Reed (reedy) 2012-02-17 14:42:01 UTC
Seeems fine on Chrome 19 and FF 10

You do see a flash of it incorrectly formatted before the JS etc is loaded in..

You've also pasted the urls without any (enough?) whitespace between them. So it looks like one REALLY long url ;)
Comment 2 Chris McMahon 2012-02-17 22:41:16 UTC
I checked FF 9 and IE7 and Special:Preferences looked fine in both.  

I did notice that the tabs other than "User profile" take a moment to load, but otherwise was fine.
Comment 3 Ryan Kaldari 2012-02-17 23:00:20 UTC
I confirmed the bug in Firefox 3.6.16. Works with debug=true and in newer versions of Firefox.
Comment 4 Ryan Kaldari 2012-02-17 23:04:57 UTC
Seems to be a race condition. If I do a hard reload with debug=true it renders correctly. But if I do a soft reload with debug=true it renders incorrectly.
Comment 5 Ryan Kaldari 2012-02-17 23:09:52 UTC
The ResourceLoader module involved is mediawiki.special.preferences which is defined in resources/Resources.php. This module loads resources/mediawiki.special/mediawiki.special.preferences.js with no dependencies declared.
Comment 6 Ryan Kaldari 2012-02-18 00:12:37 UTC
Hopefully fixed in r111802. Unfortunately, I can't reproduce the race condition in my local MediaWiki install (in Firefox 3), so we won't know for sure if this fixes it until it is deployed to simple.wikipedia.org.
Comment 7 Ryan Kaldari 2012-02-18 01:42:22 UTC
Confirmed fixed on simple.wikipedia.org in Firefox 3.6.16.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links