[Media iOS] Ensure there is a nice default fallback for missing wireless target names
We occasionally run into cases where this.host.externalDeviceDisplayName is empty or null, creating a pretty ugly/confusing string in the wireless playback status screen. If this happens, we should default to using "AppleTV" <rdar://problem/17879156>
Created attachment 235868 [details] Patch
Comment on attachment 235868 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=235868&action=review > Source/WebCore/Modules/mediacontrols/mediaControlsiOS.js:113 > + var externalDeviceDisplayName = (this.host.externalDeviceDisplayName && this.host.externalDeviceDisplayName != "") ? this.host.externalDeviceDisplayName : "AppleTV"; Nit: this would be slightly easier to understand if it was split into two separate lines: var externalDeviceDisplayName = this.host.externalDeviceDisplayName; If (...)
Committed r171944: <http://trac.webkit.org/changeset/171944>