Bug 1319301 - Part 1. fadeout grey spacer when play event is not triggered by controls. r=jaws
MozReview-Commit-ID: AouOiY9EGo8
--- a/toolkit/content/widgets/videocontrols.xml
+++ b/toolkit/content/widgets/videocontrols.xml
@@ -552,18 +552,20 @@
}
switch (aEvent.type) {
case "play":
this.setPlayButtonState(false);
this.setupStatusFader();
if (!this._triggeredByControls && this.dynamicControls && this.videocontrols.isTouchControls)
this.startFadeOut(this.controlBar);
- if (!this._triggeredByControls)
+ if (!this._triggeredByControls) {
this.clickToPlay.hidden = true;
+ this.controlsSpacer.setAttribute("fadeout", "true");
+ }
this._triggeredByControls = false;
break;
case "pause":
// Little white lie: if we've internally paused the video
// while dragging the scrubber, don't change the button state.
if (!this.scrubber.isDragging)
this.setPlayButtonState(true);
this.setupStatusFader();