Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 648f50b900d7eb98ee010e598ebc52428b7a309d
      
https://github.com/WebKit/WebKit/commit/648f50b900d7eb98ee010e598ebc52428b7a309d
  Author: Eric Carlson <[email protected]>
  Date:   2025-09-26 (Fri, 26 Sep 2025)

  Changed paths:
    M Source/WTF/wtf/cocoa/RuntimeApplicationChecksCocoa.h
    M Source/WTF/wtf/cocoa/RuntimeApplicationChecksCocoa.mm
    M Source/WTF/wtf/spi/darwin/dyldSPI.h
    M Source/WebCore/html/HTMLMediaElement.cpp
    M Source/WebCore/page/Quirks.cpp
    M Source/WebCore/page/Quirks.h
    M Source/WebCore/page/QuirksData.h

  Log Message:
  -----------
  [iOS Firefox] Audio continues to play after closing a soundcloud.com tab
https://bugs.webkit.org/show_bug.cgi?id=299545
rdar://159977164

Reviewed by Jer Noble.

When Firefox "closes" a tab in their tab overview panel, the WKWebView is 
hidden but not
closed. Because nothing is done to stop media playback, if audio is playing 
when the
user closes the tab it will continue to play. The only way to stop playback is 
to quit
Firefox or open a new url. Fix this by adding a linked-on-or-after Quirk to 
prevent
background audio playback.

* Source/WTF/wtf/cocoa/RuntimeApplicationChecksCocoa.h:
* Source/WTF/wtf/cocoa/RuntimeApplicationChecksCocoa.mm:
(WTF::computeSDKAlignedBehaviors):
(WTF::IOSApplication::isFirefox):
(WTF::IOSApplication::isFirefoxFocus):
* Source/WTF/wtf/spi/darwin/dyldSPI.h:
* Source/WebCore/html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::initializeMediaSession):
* Source/WebCore/page/Quirks.cpp:
(WebCore::Quirks::requirePageVisibilityToPlayAudioQuirk const):
(WebCore::Quirks::determineRelevantQuirks):
* Source/WebCore/page/Quirks.h:
* Source/WebCore/page/QuirksData.h:

Canonical link: https://commits.webkit.org/300584@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to