Page MenuHomePhabricator

CookieWarning does not interact correctly with MobileFrontend
Closed, ResolvedPublic

Description

Mediawiki 1.31: The message that CookieWarning produces does not seem to go through the MobileFrontend extension. Rather, the cookie message that appears on the mobile phone seems to be "below" (and partly overlapped by) the MobileFrontend-formatted text. It also does not appear to have the same width as the screen.

To see this bug in action, go to http://strucbio.biologie.uni-konstanz.de/ccp4wiki/index.php/Special:Version?useformat=mobile and inspect the top of the page - it's corrupted. It should look similar to the desktop version, http://strucbio.biologie.uni-konstanz.de/ccp4wiki/index.php/Special:Version (you need a desktop browser).

I have no idea if this is CookieWarning's fault, or MobileFrontend's.

Event Timeline

Jdlrobson subscribed.

Looks specific to CookieWarning compatibility with Vector on mobile.
I think resources/ext.CookieWarning/ext.CookieWarning.mobile.less is actually a skinStyle for Minerva but it's being loaded on non-Minerva skins

"ext.CookieWarning.styles": {
			"styles": "resources/ext.CookieWarning/ext.CookieWarning.less"
		},
		"ext.CookieWarning.mobile.styles": {
			"styles": "resources/ext.CookieWarning/ext.CookieWarning.mobile.less",
			"targets": [
				"mobile"
			]
		},

should probably become:

"ext.CookieWarning.styles": {
			"targets": [
				"desktop", "mobile"
			]
   "skinStyles": [
			"vector": "resources/ext.CookieWarning/ext.CookieWarning.less"
			"minerva": "resources/ext.CookieWarning/ext.CookieWarning.mobile.less",

		],
]

Thanks! As a workaround, we installed the Minerva skin. With that instead of Vector, the problem is gone. This also means that the link I gave above no longer shows a corrupted page.

Jdlrobson claimed this task.

yep. Please update to 1.35 if needed.