Last modified: 2014-09-19 10:53:59 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 T72553, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 70553 - MV broken in Internet Explorer 8 on WMF sites
MV broken in Internet Explorer 8 on WMF sites
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
MultimediaViewer (Other open bugs)
unspecified
All All
: Unprioritized major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-09-08 10:19 UTC by Michael M.
Modified: 2014-09-19 10:53 UTC (History)
7 users (show)

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


Attachments

Description Michael M. 2014-09-08 10:19:05 UTC
On https://de.wikipedia.org/wiki/Wikipedia:Fragen_von_Neulingen a user reports that MediaViewer is broken in IE 8, which I can partially confirm (using the IE8-mode of an IE 9):

Clicking on any image in an article shows just a black screen. I was redirected to the image description page after a few seconds, but the reporting user seems to have no way to access the image.

Clicking "Expanded view" on an image description page shows just a black screen, too.

A JavaScript error is shown in the console, saying that some object doesn't support the method addEventListener ("Das Objekt unterstützt die Eigenschaft oder Methode "addEventListener" nicht." in German)

So please either bind the events in a way that works in IE8, too, or just disable MV in IE8.
Comment 1 Michael M. 2014-09-08 10:27:36 UTC
For reference: This seems to be caused by https://gerrit.wikimedia.org/r/#/c/150086/
Comment 2 Tisza Gergő 2014-09-08 10:42:29 UTC
IE8 does not support Object.create so https://gerrit.wikimedia.org/r/#/c/150086/ should stop MediaViewer from being loaded (unless something polyfills it).
Comment 3 Derk-Jan Hartman 2014-09-08 14:01:34 UTC
I can confirm that on IE8 by default this test should work, but on wikipedia it fails. 

That probably means that something... somewhere... is polyfilling Object.create
Comment 4 Derk-Jan Hartman 2014-09-09 08:23:39 UTC
So summarize, yes, the OOjs polyfill is active on our pages, thus launching the MediaViewer, which for some reason doesn't use .on for setting the event.
Comment 5 Michael M. 2014-09-09 08:33:54 UTC
OOjs-UI has some addEventListener calls (and removeEventListener), so it's probably one of these.

Short term solution: Temporarily revert https://gerrit.wikimedia.org/r/#/c/150086/ to explicitly blacklist IE8 again.
Long term solution: Replace the remaining addEventListener calls in oojs-ui with $.on(), and hope that it works acceptably in IE8, too.
Comment 6 Gilles Dubuc 2014-09-09 08:55:11 UTC
Fixing the addEventListener (which I'm about to do) is far from sufficient for MV to work in IE8. Right off the bat, MV uses SVG icons, and IE8 can't display them without a plugin. Then I'm not sure that OOUI fully supports IE8 yet, which MV needs for "use this file".

IMHO the easiest thing to do is to go back to the status quo before our feature check got polyfilled without us realizing: find another feature check (SVG support, if that's event possible?) that will make IE8 not run MV.
Comment 7 Gerrit Notification Bot 2014-09-09 08:56:33 UTC
Change 159263 had a related patch set uploaded by Gilles:
Replace addEventListener call with jQuery's .on()

https://gerrit.wikimedia.org/r/159263
Comment 8 Gerrit Notification Bot 2014-09-09 09:05:55 UTC
Change 159265 had a related patch set uploaded by Gilles:
Run only when SVG support is available

https://gerrit.wikimedia.org/r/159265
Comment 9 Gerrit Notification Bot 2014-09-09 10:29:35 UTC
Change 159263 merged by jenkins-bot:
Replace addEventListener call with jQuery's .on()

https://gerrit.wikimedia.org/r/159263
Comment 10 Gerrit Notification Bot 2014-09-10 11:42:52 UTC
Change 159265 merged by jenkins-bot:
Feature detection for MV load: add SVG, remove Object.create

https://gerrit.wikimedia.org/r/159265
Comment 11 Tisza Gergő 2014-09-17 09:49:59 UTC
Should be fixed in https://gerrit.wikimedia.org/r/159265 . The fix will be deployed to wikipedias tomorrow.

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


Navigation
Links