Changeset 231923 in webkit
- Timestamp:
- May 17, 2018 3:15:06 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r231920 r231923 1 2018-05-17 Ryan Haddad <ryanhaddad@apple.com> 2 3 Unreviewed, rolling out r231899. 4 5 Caused flakiness in two existing modern-media-controls tests. 6 7 Reverted changeset: 8 9 "[modern-media-controls] AirPlaySupport should be disabled by 10 default" 11 https://bugs.webkit.org/show_bug.cgi?id=185658 12 https://trac.webkit.org/changeset/231899 13 1 14 2018-05-17 Jer Noble <jer.noble@apple.com> 2 15 -
trunk/Source/WebCore/ChangeLog
r231921 r231923 1 2018-05-17 Ryan Haddad <ryanhaddad@apple.com> 2 3 Unreviewed, rolling out r231899. 4 5 Caused flakiness in two existing modern-media-controls tests. 6 7 Reverted changeset: 8 9 "[modern-media-controls] AirPlaySupport should be disabled by 10 default" 11 https://bugs.webkit.org/show_bug.cgi?id=185658 12 https://trac.webkit.org/changeset/231899 13 1 14 2018-05-17 Eric Carlson <eric.carlson@apple.com> 2 15 -
trunk/Source/WebCore/Modules/modern-media-controls/media/airplay-support.js
r231899 r231923 39 39 } 40 40 41 enable()42 {43 if (this._shouldBeEnabled())44 super.enable();45 }46 47 41 buttonWasPressed(control) 48 42 { … … 52 46 controlsUserVisibilityDidChange() 53 47 { 54 if (this._shouldBeEnabled()) 48 const controls = this.mediaController.controls; 49 if (controls.visible && !controls.faded) 55 50 this.enable(); 56 51 else … … 73 68 } 74 69 75 // Private76 77 _shouldBeEnabled()78 {79 if (!this.mediaController.hasPlayed)80 return false;81 82 const controls = this.mediaController.controls;83 return controls.visible && !controls.faded;84 }85 86 70 }
Note: See TracChangeset
for help on using the changeset viewer.