| Summary: | [Mac] Device picker menu should be persistent | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Eric Carlson <eric.carlson> | ||||
| Component: | Media | Assignee: | Eric Carlson <eric.carlson> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | commit-queue, webkit-bug-importer | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
Eric Carlson
2015-05-22 11:17:13 PDT
Created attachment 253596 [details]
Proposed patch.
Attachment 253596 [details] did not pass style-queue:
ERROR: Source/WebCore/platform/graphics/avfoundation/objc/MediaPlaybackTargetPickerMac.mm:31: Alphabetical sorting problem. [build/include_order] [4]
Total errors found: 1 in 5 files
If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 253596 [details] Proposed patch. View in context: https://bugs.webkit.org/attachment.cgi?id=253596&action=review > Source/WebCore/platform/graphics/avfoundation/objc/MediaPlaybackTargetPickerMac.mm:-173 > - [m_outputDeviceMenuController removeObserver:m_outputDeviceMenuControllerDelegate.get() forKeyPath:externalOutputDevicePickedKeyName]; How do these observers get removed when the target picker goes away? I guess the point of this patch is to keep this object alive for as long as WebKit is running? (In reply to comment #4) > Comment on attachment 253596 [details] > Proposed patch. > > View in context: > https://bugs.webkit.org/attachment.cgi?id=253596&action=review > > > Source/WebCore/platform/graphics/avfoundation/objc/MediaPlaybackTargetPickerMac.mm:-173 > > - [m_outputDeviceMenuController removeObserver:m_outputDeviceMenuControllerDelegate.get() forKeyPath:externalOutputDevicePickedKeyName]; > > How do these observers get removed when the target picker goes away? I guess > the point of this patch is to keep this object alive for as long as WebKit > is running? They don't. This technically isn't a problem because this is a singleton, but I will add that code to the destructor for completeness. Committed r184788: https://trac.webkit.org/r184788 |