[webkit-changes] [WebKit/WebKit] a07ed2: Enable YouTube plugin replacement for all of WebKit

Anne van Kesteren noreply at github.com
Wed Sep 4 22:43:20 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a07ed2d34cca0026f33d49481f21b93fc929af09
      https://github.com/WebKit/WebKit/commit/a07ed2d34cca0026f33d49481f21b93fc929af09
  Author: Anne van Kesteren <annevk at annevk.nl>
  Date:   2024-09-04 (Wed, 04 Sep 2024)

  Changed paths:
    M LayoutTests/security/contentSecurityPolicy/object-src-none-blocks-youtube-plugin-replacement.html
    M LayoutTests/security/contentSecurityPolicy/plugins-types-allows-youtube-plugin-replacement.html
    M LayoutTests/security/contentSecurityPolicy/plugins-types-blocks-youtube-plugin-replacement-without-mime-type.html
    M LayoutTests/security/contentSecurityPolicy/plugins-types-blocks-youtube-plugin-replacement.html
    M Source/WebCore/Modules/plugins/PluginReplacement.h
    M Source/WebCore/Modules/plugins/YouTubePluginReplacement.cpp
    M Source/WebCore/Modules/plugins/YouTubePluginReplacement.h
    M Source/WebCore/html/HTMLPlugInElement.cpp
    M Source/WebCore/page/Settings.yaml

  Log Message:
  -----------
  Enable YouTube plugin replacement for all of WebKit
https://bugs.webkit.org/show_bug.cgi?id=278957

Reviewed by Michael Catanzaro and Sam Weinig.

It's about to be standardized and therefore this should work for all
WebKit ports.

* LayoutTests/security/contentSecurityPolicy/object-src-none-blocks-youtube-plugin-replacement.html:
* LayoutTests/security/contentSecurityPolicy/plugins-types-allows-youtube-plugin-replacement.html:
* LayoutTests/security/contentSecurityPolicy/plugins-types-blocks-youtube-plugin-replacement-without-mime-type.html:
* LayoutTests/security/contentSecurityPolicy/plugins-types-blocks-youtube-plugin-replacement.html:
* Source/WebCore/Modules/plugins/PluginReplacement.h:
(WebCore::ReplacementPlugin::ReplacementPlugin):
(WebCore::ReplacementPlugin::supportsURL const):
(WebCore::ReplacementPlugin::isEnabledBySettings const): Deleted.
* Source/WebCore/Modules/plugins/YouTubePluginReplacement.cpp:
(WebCore::YouTubePluginReplacement::registerPluginReplacement):
(WebCore::YouTubePluginReplacement::isEnabledBySettings): Deleted.
* Source/WebCore/Modules/plugins/YouTubePluginReplacement.h:
* Source/WebCore/html/HTMLPlugInElement.cpp:
(WebCore::HTMLPlugInElement::requestObject):
* Source/WebCore/page/Settings.yaml:

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



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list