Bug 1309494 part 1 - let video controler handle the "mozexitvideosuspend" event; r?jaws
MozReview-Commit-ID: 5DfzY8kDTP4
--- a/toolkit/content/widgets/videocontrols.xml
+++ b/toolkit/content/widgets/videocontrols.xml
@@ -217,17 +217,17 @@
textTracksCount: 0,
randomID : 0,
videoEvents : ["play", "pause", "ended", "volumechange", "loadeddata",
"loadstart", "timeupdate", "progress",
"playing", "waiting", "canplay", "canplaythrough",
"seeking", "seeked", "emptied", "loadedmetadata",
"error", "suspend", "stalled",
- "mozinterruptbegin", "mozinterruptend" ],
+ "mozexitvideosuspend"],
showHours: false,
firstFrameShown : false,
timeUpdateCount : 0,
maxCurrentTimeSeen : 0,
isPausedByDragging: false,
_isAudioOnly : false,
@@ -659,19 +659,17 @@
this.setupStatusFader(true);
// If video hasn't shown anything yet, disable the controls.
if (!this.firstFrameShown) {
this.startFadeOut(this.controlBar);
}
this.controlsSpacer.removeAttribute("hideCursor");
}
break;
- case "mozinterruptbegin":
- case "mozinterruptend":
- // Nothing to do...
+ case "mozexitvideosuspend":
break;
default:
this.log("!!! event " + aEvent.type + " not handled!");
}
},
terminateEventListeners() {
if (this.videoEvents) {