https://bugzilla.wikimedia.org/show_bug.cgi?id=23526

           Summary: wikibits.js KHTML fix is applied for Epiphany 2.28 and
                    destroys left menu (Monobook skin)
           Product: MediaWiki
           Version: 1.15.1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: Javascript
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


Using epiphany 2.28 on Ubuntu Karmic (uses webtoolkit) the browser is detected
as KHTML browser. (which could be part true)
But the KHTMLfix.css file actually destroys the left menu for epiphany. It is
moved to the bottom of the page.
Using the default CSS works like a charm. (so no css fixes are needed for this
browser)

navigator.userAgent.toLowerCase() for this browser is:
mozilla/5.0 (x11; u; linux i686; en-us) applewebkit/531.2+ (khtml, like gecko)
safari/531.2+

What I did to fix this (but this is only a suggestion, I could be missing
something):

in wikibits.js

Line 11 (insert):     var is_epiphany = clientPC.indexOf('applewebkit') != -1
&& clientPC.indexOf('mozilla') != -1;

Line 108 (replace):         } else if (is_khtml && !is_epiphany) {


Mind that older versions of epiphany could be using gecko renderer (I believe 
v2.26 was available with both gecko and webkit) From 2.28 on they permanently
chose to use webkit exclusively. Though I don't think this will cause problems
with this fix.

I noticed this using Monobook skin, but this could probably occur on other
skins as well.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to