Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.2
-
MOODLE_22_STABLE
-
MOODLE_22_STABLE, MOODLE_23_STABLE
-
Description
When loading a page with an mp3 file and mediaplugin enabled, chrome is not displaying the player.
Looking at the chrome javascript console it seems to be because of the way document.styleSheet is iterated.
Each rule is tested like this:
typeof (document.styleSheets[j].rules) != 'undefined'
but in chrome the last .rules is = null. A simple check can deal with this:
if (!allrules) continue;
(after the "if" and before the "for").