Wiki + Google Chrome Display Bug

Something not look right? Please explain in detail.

Wiki + Google Chrome Display Bug

Postby Namegduf » Fri Sep 25, 2009 12:39 am

In current development releases of Google Chrome (seen by myself on Linux, but the bug causing it should be present across all operating systems), the wiki displays incorrectly, with the sidebar (with navigation links and such) appearing after the main content, rather than by its side. To my knowledge, Safari is not currently affected.

I believe this occurs due to a bug in MediaWiki's browser-specific hacks which affects nearly all unupdated installations using Monobook-based themes. In a Webkit-based browser with JavaScript enabled, wikibits.js includes the file "KHTMLFixes.css", containing the single line (excluding comments) "#column-content { margin-left: 0; }". This hack, presumably for a KHTML-based browser at some point, causes this bug in newer versions of Webkit.

MediaWiki and Wikipedia appear to have resolved the bug by deleting the lines from skins/common/wikibits.js (lines 94 and 95, in your copy, at least) which include the file, removing that file from use at all. I believe this change has probably gone into the newest MediaWiki, but I don't know if any releases have been made containing it yet. In the meantime, deleting everything in KHTMLFixes.css in the custom skin (with the file deleted once newer MediaWiki no longer uses it anyway) might be an easier solution, and eventually needed anyway if MediaWiki updates to avoid leaving unused files around. - The Webkit bug report for the issue; the accepted solution to point, certainly once Wikipedia fixed it, has been "get sites to upgrade/fix the bug", although a MediaWiki-specific hack appears to be being discussed.
User avatar
Site Admin
Posts: 14
Joined: Tue Sep 22, 2009 2:10 am

Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 1 guest