[Mac] Update device picker icon when video tracks change
authoreric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 12 May 2015 01:13:30 +0000 (01:13 +0000)
committereric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 12 May 2015 01:13:30 +0000 (01:13 +0000)
https://bugs.webkit.org/show_bug.cgi?id=144889
<rdar://problem/20907253>

Reviewed by Brent Fulgham.

* Modules/mediacontrols/mediaControlsApple.js:
(Controller.prototype.updateHasVideo):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@184140 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/Modules/mediacontrols/mediaControlsApple.js

index 9c93486..0f40047 100644 (file)
@@ -1,3 +1,14 @@
+2015-05-11  Eric Carlson  <eric.carlson@apple.com>
+
+        [Mac] Update device picker icon when video tracks change
+        https://bugs.webkit.org/show_bug.cgi?id=144889
+        <rdar://problem/20907253>
+
+        Reviewed by Brent Fulgham.
+
+        * Modules/mediacontrols/mediaControlsApple.js:
+        (Controller.prototype.updateHasVideo):
+
 2015-05-11  Brent Fulgham  <bfulgham@apple.com>
 
         Scroll snap logic should be triggered when resizing the WebView
index a75f240..1a7bc11 100644 (file)
@@ -1756,6 +1756,9 @@ Controller.prototype = {
             this.controls.panel.classList.remove(this.ClassNames.noVideo);
         else
             this.controls.panel.classList.add(this.ClassNames.noVideo);
+
+        // The wireless target picker is only visible for files with video, force an update.
+        this.updateWirelessTargetAvailable();
     },
 
     updateVolume: function()