зеркало из https://github.com/mozilla/gecko-dev.git
Bug 706329 - JS error in console when switching to full screen 'this.isVideoInFullScreen is not a function'. r=dolske
This commit is contained in:
Родитель
a6c100fd3c
Коммит
c2f20bb2e4
|
@ -607,8 +607,9 @@
|
|||
for each (var event in this.videoEvents)
|
||||
this.video.removeEventListener(event, this, false);
|
||||
this.video.removeEventListener("media-showStatistics", this._handleCustomEventsBound, false);
|
||||
this.video.ownerDocument.removeEventListener("mozfullscreenchange", this.setFullscreenButtonState, false);
|
||||
delete this._handleCustomEventsBound;
|
||||
this.video.ownerDocument.removeEventListener("mozfullscreenchange", this._setFullscreenButtonStateBound, false);
|
||||
delete this._setFullscreenButtonStateBound;
|
||||
this.log("--- videocontrols terminated ---");
|
||||
},
|
||||
|
||||
|
@ -1200,7 +1201,8 @@
|
|||
}
|
||||
|
||||
this.videocontrols.addEventListener("transitionend", function(e) { self.onTransitionEnd(e); }, false);
|
||||
this.video.ownerDocument.addEventListener("mozfullscreenchange", this.setFullscreenButtonState, false);
|
||||
this._setFullscreenButtonStateBound = this.setFullscreenButtonState.bind(this);
|
||||
this.video.ownerDocument.addEventListener("mozfullscreenchange", this._setFullscreenButtonStateBound, false);
|
||||
|
||||
// Make the <video> element keyboard accessible.
|
||||
this.video.setAttribute("tabindex", 0);
|
||||
|
|
Загрузка…
Ссылка в новой задаче