Revert "Work around Firefox 42 controls bug. #450"
This reverts commit 38aa7fed0c9b8bee139fc8d61d3ae6c2ce23ce19.
This commit is contained in:
parent
38aa7fed0c
commit
09d89327ff
@ -79,15 +79,6 @@ ImageCommon =
|
||||
|
||||
# Add controls, but not until the mouse is moved over the video.
|
||||
addControls: (video) ->
|
||||
# XXX https://bugzilla.mozilla.org/show_bug.cgi?id=1192302
|
||||
if /Gecko\/20100101\ \w+\/42\./.test navigator.userAgent
|
||||
video.controls = true
|
||||
if doc.contains video
|
||||
{parentNode, nextSibling, paused} = video
|
||||
$.rm video
|
||||
parentNode.insertBefore video, nextSibling
|
||||
video.play() unless paused
|
||||
return
|
||||
handler = ->
|
||||
$.off video, 'mouseover', handler
|
||||
# Hacky workaround for Firefox forever-loading bug for very short videos
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user