| Summary: | [WK2] Only issue a isPlayingAudioDidChange() notification if the audio playing state actually changed. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Jer Noble <jer.noble> | ||||
| Component: | New Bugs | Assignee: | Jer Noble <jer.noble> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | ap, webkit-bug-importer | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
Jer Noble
2015-04-24 10:47:27 PDT
Created attachment 251558 [details]
Patch
Comment on attachment 251558 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=251558&action=review > Source/WebKit2/UIProcess/WebPageProxy.cpp:5674 > + if ((oldState & MediaProducer::IsPlayingAudio) != (m_mediaState & MediaProducer::IsPlayingAudio)) At the beginning of this function, we have an early return when state == m_mediaState. I think that this should be an early return too, for consistency. Committed r183276: <http://trac.webkit.org/changeset/183276> |