There is no need to call setActive:NO on the audio session, WebCore's session will automatically be deactivated if another application begins playing audio.
<rdar://problem/16853657>
Created attachment 233916 [details] Proposed patch.
Comment on attachment 233916 [details] Proposed patch. View in context: https://bugs.webkit.org/attachment.cgi?id=233916&action=review r=me > Source/WebCore/ChangeLog:9 > + [iOS] no need to deactivate audio session > + https://bugs.webkit.org/show_bug.cgi?id=134350 > + > + Reviewed by NOBODY (OOPS!). > + > + * platform/audio/mac/MediaSessionManagerMac.cpp: > + (MediaSessionManager::updateSessionState): Never call setActive:false. nit: Why not? (Maybe: "Embedding WebView apps may want to enable the audio session outside of the WebView, and since the AudioSession is global to the app, disabling the audio session can interrupt that audio."
Committed r170485: https://trac.webkit.org/r170485