[Pkg-mediawiki-devel] Bug#652948: mediawiki: Incorrect sidebar rendering with Monobook skin and Firefox 9

Roland Hieber rohieb at rohieb.name
Thu Dec 22 03:16:38 UTC 2011


Package: mediawiki
Version: 1:1.15.5-1~bpo50+1
Severity: normal

Package: mediawiki
Version: 1.15.5-1~bpo50+1

When viewing a MediaWiki page with the Monobook skin in Firefox 9.0, the sidebar ist displayed below the content section (see the screenshot at [0] of the page at [1]).

[0] http://rohieb.name/stuff/mediawiki-1.15.5-1~bpo50+1-firefox-9.0.png
[1] http://wilhelm-gym.net/w/index.php?title=Spezial:Anmelden

I found out so far that this behaviour may be caused by 
skins/common/wikibits.js, which detects Firefox 9 as a KHTML-based browser, and applies fixes which make Firefox render the page wrong. The offending lines for that incorrect detection were finally removed in r53348 [2], and specific KHTML detection was dropped in favor of a generic WebKit detection.

[2] https://www.mediawiki.org/wiki/Special:Code/MediaWiki/53348

Also, I found out, that apparently the following patch fixes this behaviour for Firefox 9:

--- /tmp/common.js  2011-12-22 04:01:22.000000000 +0100
+++ /usr/share/mediawiki/skins/common/wikibits.js 2011-12-22 04:00:58.000000000 +0100
@@ -10,8 +10,8 @@
  var is_safari_win = is_safari && clientPC.indexOf('windows') != -1;
  var webkit_version = parseInt(webkit_match[1]);
 }
-var is_khtml = navigator.vendor == 'KDE' ||
- ( document.childNodes && !document.all && !navigator.taintEnabled );
+//var is_khtml = navigator.vendor == 'KDE' ||
+// ( document.childNodes && !document.all && !navigator.taintEnabled );
 // For accesskeys; note that FF3+ is included here!
 var is_ff2 = /firefox\/[2-9]|minefield\/3/.test( clientPC );
 var is_ff2_ = /firefox\/2/.test( clientPC );


-- System Information:
Debian Release: 5.0.9
  APT prefers oldstable
  APT policy: (500, 'oldstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages mediawiki depends on:
ii  apache2-mpm-prefo 2.2.9-10+lenny11       Apache HTTP Server - traditional n
ii  debconf [debconf- 1.5.24                 Debian configuration management sy
ii  mime-support      3.51-1                 MIME files 'mime.types' & 'mailcap
ii  php5              5.2.6.dfsg.1-1+lenny13 server-side, HTML-embedded scripti
ii  php5-mysql        5.2.6.dfsg.1-1+lenny13 MySQL module for php5
ii  php5-pgsql        5.2.6.dfsg.1-1+lenny13 PostgreSQL module for php5

Versions of packages mediawiki recommends:
ii  mysql-server      5.0.51a-24+lenny5      MySQL database server (metapackage
ii  mysql-server-5.0  5.0.51a-24+lenny5      MySQL database server binaries
ii  php5-cli          5.2.6.dfsg.1-1+lenny13 command-line interpreter for the p

Versions of packages mediawiki suggests:
ii  clamav          0.97.3+dfsg-1~lenny1     anti-virus utility for Unix - comm
ii  imagemagick     7:6.3.7.9.dfsg2-1~lenny4 image manipulation programs
pn  mediawiki-math  <none>                   (no description available)
pn  memcached       <none>                   (no description available)
ii  php5-gd         5.2.6.dfsg.1-1+lenny13   GD module for php5

-- debconf information:
  mediawiki/webserver: apache2





More information about the Pkg-mediawiki-devel mailing list