Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e8284c96eb6205fa9ad7a78207394d1ef2984b9c
      
https://github.com/WebKit/WebKit/commit/e8284c96eb6205fa9ad7a78207394d1ef2984b9c
  Author: Dana Estra <des...@apple.com>
  Date:   2025-08-27 (Wed, 27 Aug 2025)

  Changed paths:
    M Source/WebCore/page/CaptionUserPreferencesMediaAF.cpp
    M Source/WebCore/page/CaptionUserPreferencesMediaAF.h
    M Source/WebCore/platform/cf/MediaAccessibilitySoftLink.cpp
    M Source/WebCore/platform/cf/MediaAccessibilitySoftLink.h

  Log Message:
  -----------
  Handle null media accessibility caption profile
https://bugs.webkit.org/show_bug.cgi?id=297872
rdar://159134245

Reviewed by Eric Carlson.

This patch handles the case that MACaptionActiveProfile is set to the empty 
string.
In this case we do not add any style to WebVTT cues.

* Source/WebCore/page/CaptionUserPreferencesMediaAF.cpp:
(WebCore::CaptionUserPreferencesMediaAF::captionDisplayMode const):
(WebCore::CaptionUserPreferencesMediaAF::setCaptionDisplayMode):
(WebCore::CaptionUserPreferencesMediaAF::userPrefersCaptions const):
(WebCore::CaptionUserPreferencesMediaAF::userPrefersSubtitles const):
(WebCore::CaptionUserPreferencesMediaAF::userPrefersTextDescriptions const):
(WebCore::CaptionUserPreferencesMediaAF::captionFontSizeScaleAndImportance 
const):
(WebCore::CaptionUserPreferencesMediaAF::setPreferredLanguage):
(WebCore::CaptionUserPreferencesMediaAF::preferredLanguages const):
(WebCore::CaptionUserPreferencesMediaAF::setPreferredAudioCharacteristic):
(WebCore::CaptionUserPreferencesMediaAF::preferredAudioCharacteristics const):
(WebCore::CaptionUserPreferencesMediaAF::nullCaptionProfile const):
(WebCore::CaptionUserPreferencesMediaAF::captionsStyleSheetOverride const):
* Source/WebCore/page/CaptionUserPreferencesMediaAF.h:
* Source/WebCore/platform/cf/MediaAccessibilitySoftLink.cpp:
* Source/WebCore/platform/cf/MediaAccessibilitySoftLink.h:

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



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

Reply via email to