1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-10 07:04:03 +00:00
Evgeniy Khramtsov 2021-09-23 01:57:30 +03:00 committed by Baptiste Daroussin
parent 220f1e63da
commit 895bc805a9
19 changed files with 275 additions and 99 deletions

View File

@ -1,8 +1,7 @@
# Created by: Michael Johnson <ahze@FreeBSD.org>
PORTNAME= webkit
DISTVERSION= 2.30.5
PORTREVISION= 2
DISTVERSION= 2.34.0
CATEGORIES= www
MASTER_SITES= https://webkitgtk.org/releases/
PKGNAMESUFFIX= 2-gtk3
@ -54,9 +53,11 @@ CXXFLAGS_powerpc64= -DENABLE_YARR_JIT=0
CMAKE_ARGS= -DPORT=GTK
CMAKE_OFF= USE_LD_GOLD ${CMAKE_OFF_${ARCH}:U} \
ENABLE_GLES2 \
USE_SYSTEMD
USE_SYSTEMD \
ENABLE_GAMEPAD
CMAKE_ON= ENABLE_MINIBROWSER \
USE_SYSTEM_MALLOC
USE_SYSTEM_MALLOC \
USE_SOUP2
CMAKE_OFF_armv6= ENABLE_JIT
CMAKE_OFF_armv7= ENABLE_JIT
CMAKE_OFF_powerpc= ENABLE_JIT
@ -96,10 +97,6 @@ WAYLAND_LIB_DEPENDS= libwayland-egl.so:graphics/wayland \
libwpe-1.0.so:www/libwpe \
libWPEBackend-fdo-1.0.so:www/wpebackend-fdo
post-patch:
@${REINPLACE_CMD} -e 's|/usr/lib/browser/plugins|${BROWSER_PLUGINS_DIR}|' \
${WRKSRC}/Source/WebKit/Shared/Plugins/unix/PluginSearchPath.cpp
pre-configure:
# .if !exists() evaluates too early before cairo has a chance to be installed
@if ! pkg-config --exists cairo-egl; then \

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1613230723
SHA256 (gnome/webkitgtk-2.30.5.tar.xz) = 7d0dab08e3c5ae07bec80b2822ef42e952765d5724cac86eb23999bfed5a7f1f
SIZE (gnome/webkitgtk-2.30.5.tar.xz) = 22311832
TIMESTAMP = 1632350519
SHA256 (gnome/webkitgtk-2.34.0.tar.xz) = 880c8ee626f67019f67557ca09e59a23ecf245e60f6173215f1a8823cb09af34
SIZE (gnome/webkitgtk-2.34.0.tar.xz) = 24998292

View File

@ -1,14 +0,0 @@
--- CMakeLists.txt.orig 2020-08-12 09:17:37 UTC
+++ CMakeLists.txt
@@ -109,9 +109,9 @@ elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "(x64
endif ()
elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "(i[3-6]86|x86)")
set(WTF_CPU_X86 1)
-elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "ppc")
+elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "(ppc|powerpc)")
set(WTF_CPU_PPC 1)
-elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "ppc64")
+elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "(ppc64|powerpc64)")
set(WTF_CPU_PPC64 1)
elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "ppc64le")
set(WTF_CPU_PPC64LE 1)

View File

@ -1,11 +1,11 @@
--- Source/cmake/OptionsCommon.cmake.orig 2020-03-01 08:15:43.203077000 +1300
+++ Source/cmake/OptionsCommon.cmake 2020-03-01 08:14:23.672978000 +1300
@@ -155,7 +155,7 @@
--- Source/cmake/OptionsCommon.cmake.orig 2021-09-22 23:05:58 UTC
+++ Source/cmake/OptionsCommon.cmake
@@ -144,7 +144,7 @@ WEBKIT_CHECK_HAVE_FUNCTION(HAVE_VASPRINTF vasprintf)
# Check for symbols
WEBKIT_CHECK_HAVE_SYMBOL(HAVE_REGEX_H regexec regex.h)
if (NOT (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin"))
-WEBKIT_CHECK_HAVE_SYMBOL(HAVE_PTHREAD_MAIN_NP pthread_main_np pthread_np.h)
+#WEBKIT_CHECK_HAVE_SYMBOL(HAVE_PTHREAD_MAIN_NP pthread_main_np pthread_np.h)
- WEBKIT_CHECK_HAVE_SYMBOL(HAVE_PTHREAD_MAIN_NP pthread_main_np pthread_np.h)
+ #WEBKIT_CHECK_HAVE_SYMBOL(HAVE_PTHREAD_MAIN_NP pthread_main_np pthread_np.h)
endif ()
WEBKIT_CHECK_HAVE_SYMBOL(HAVE_TIMINGSAFE_BCMP timingsafe_bcmp string.h)
# Windows has signal.h but is missing symbols that are used in calls to signal.
WEBKIT_CHECK_HAVE_SYMBOL(HAVE_SIGNAL_H SIGTRAP signal.h)

View File

@ -1,6 +1,6 @@
--- Source/JavaScriptCore/assembler/ARM64Assembler.h.orig 2020-08-12 09:17:52 UTC
--- Source/JavaScriptCore/assembler/ARM64Assembler.h.orig 2021-09-22 23:05:58 UTC
+++ Source/JavaScriptCore/assembler/ARM64Assembler.h
@@ -2825,6 +2825,8 @@ class ARM64Assembler { (public)
@@ -2950,6 +2950,8 @@ class ARM64Assembler { (public)
{
#if OS(DARWIN)
sys_cache_control(kCacheFunctionPrepareForExecution, code, size);

View File

@ -1,6 +1,6 @@
--- Source/JavaScriptCore/assembler/ARMv7Assembler.h.orig 2020-08-12 09:17:52 UTC
--- Source/JavaScriptCore/assembler/ARMv7Assembler.h.orig 2021-09-22 23:05:58 UTC
+++ Source/JavaScriptCore/assembler/ARMv7Assembler.h
@@ -2396,6 +2396,8 @@ class ARMv7Assembler { (public)
@@ -2402,6 +2402,8 @@ class ARMv7Assembler { (public)
{
#if OS(DARWIN)
sys_cache_control(kCacheFunctionPrepareForExecution, code, size);

View File

@ -1,6 +1,6 @@
--- Source/JavaScriptCore/jit/ExecutableAllocator.cpp.orig 2021-02-07 10:45:05 UTC
--- Source/JavaScriptCore/jit/ExecutableAllocator.cpp.orig 2021-09-22 23:05:58 UTC
+++ Source/JavaScriptCore/jit/ExecutableAllocator.cpp
@@ -76,7 +76,7 @@ namespace JSC {
@@ -95,7 +95,7 @@ namespace JSC {
using namespace WTF;

View File

@ -1,6 +1,6 @@
--- Source/JavaScriptCore/jsc.cpp.orig 2020-08-12 09:17:53 UTC
--- Source/JavaScriptCore/jsc.cpp.orig 2021-09-22 23:05:58 UTC
+++ Source/JavaScriptCore/jsc.cpp
@@ -94,6 +94,9 @@
@@ -100,6 +100,9 @@
#else
#include <unistd.h>
#endif

View File

@ -1,6 +1,6 @@
--- Source/JavaScriptCore/offlineasm/arm64.rb.orig 2020-08-12 09:17:53 UTC
--- Source/JavaScriptCore/offlineasm/arm64.rb.orig 2021-09-22 23:05:58 UTC
+++ Source/JavaScriptCore/offlineasm/arm64.rb
@@ -1098,7 +1098,7 @@ class Instruction
@@ -1127,7 +1127,7 @@ class Instruction
$asm.puts "ldr #{operands[1].arm64Operand(:quad)}, [#{operands[1].arm64Operand(:quad)}, #{operands[0].asmLabel}@GOTPAGEOFF]"
# On Linux, use ELF GOT relocation specifiers.

View File

@ -1,4 +1,4 @@
--- Source/JavaScriptCore/runtime/NativeExecutable.cpp.orig 2021-02-15 20:45:27 UTC
--- Source/JavaScriptCore/runtime/NativeExecutable.cpp.orig 2021-09-22 23:05:58 UTC
+++ Source/JavaScriptCore/runtime/NativeExecutable.cpp
@@ -24,6 +24,7 @@
*/
@ -7,4 +7,4 @@
+#include "ExecutableBaseInlines.h"
#include "NativeExecutable.h"
#include "JSCInlines.h"
#include "ExecutableBaseInlines.h"

View File

@ -1,17 +1,15 @@
--- Source/WTF/wtf/RAMSize.cpp.orig 2020-08-12 09:17:54 UTC
--- Source/WTF/wtf/RAMSize.cpp.orig 2021-09-22 23:29:42 UTC
+++ Source/WTF/wtf/RAMSize.cpp
@@ -34,6 +34,10 @@
#if OS(LINUX)
@@ -35,6 +35,8 @@
#include <sys/sysinfo.h>
#endif // OS(LINUX)
+#if OS(FREEBSD)
#elif OS(UNIX)
#include <unistd.h>
+#include <sys/types.h>
+#include <sys/sysctl.h>
+#endif
#endif // OS(LINUX) || OS(UNIX)
#else
#include <bmalloc/bmalloc.h>
#endif
@@ -54,10 +58,18 @@ static size_t computeRAMSize()
@@ -56,14 +58,18 @@ static size_t computeRAMSize()
return ramSizeGuess;
return status.ullTotalPhys;
#elif USE(SYSTEM_MALLOC)
@ -20,7 +18,10 @@
struct sysinfo si;
sysinfo(&si);
return si.totalram * si.mem_unit;
+#elif OS(FREEBSD)
#elif OS(UNIX)
- long pages = sysconf(_SC_PHYS_PAGES);
- long pageSize = sysconf(_SC_PAGE_SIZE);
- return pages * pageSize;
+ size_t physmem, len;
+ int mib[2] = { CTL_HW, HW_PHYSMEM };
+ if (sysctl(mib, 2, &physmem, &len, NULL, 0) == 0
@ -30,4 +31,4 @@
+ return 512 * MB; // guess
#else
#error "Missing a platform specific way of determining the available RAM"
#endif // OS(LINUX) || OS(FREEBSD)
#endif // OS(LINUX) || OS(FREEBSD) || OS(UNIX)

View File

@ -1,4 +1,4 @@
--- Source/WTF/wtf/unix/MemoryPressureHandlerUnix.cpp.orig 2020-08-12 09:17:54 UTC
--- Source/WTF/wtf/unix/MemoryPressureHandlerUnix.cpp.orig 2021-09-22 23:05:58 UTC
+++ Source/WTF/wtf/unix/MemoryPressureHandlerUnix.cpp
@@ -28,7 +28,7 @@
#include "config.h"
@ -7,5 +7,5 @@
-#include <malloc.h>
+#include <stdlib.h>
#include <unistd.h>
#include <wtf/Logging.h>
#include <wtf/MainThread.h>
#include <wtf/MemoryFootprint.h>

View File

@ -1,11 +0,0 @@
--- Source/WebCore/platform/graphics/egl/GLContextEGL.cpp.orig 2018-07-25 11:56:31 UTC
+++ Source/WebCore/platform/graphics/egl/GLContextEGL.cpp
@@ -45,6 +45,8 @@
#include "OpenGLShims.h"
#endif
+#include <X11/Xlib.h>
+
#if ENABLE(ACCELERATED_2D_CANVAS)
// cairo-gl.h includes some definitions from GLX that conflict with
// the ones provided by us. Since GLContextEGL doesn't use any GLX

View File

@ -1,23 +0,0 @@
Regressed by https://github.com/KhronosGroup/EGL-Registry/commit/64aa561f1971
Part of https://github.com/WebKit/WebKit/commit/29421afdcd64
Source/WebCore/platform/graphics/x11/PlatformDisplayX11.cpp:132:5: error: unknown type name 'XVisualInfo'
XVisualInfo visualTemplate;
^
Source/WebCore/platform/graphics/x11/PlatformDisplayX11.cpp:136:5: error: unknown type name 'XVisualInfo'
XVisualInfo* visualInfo = XGetVisualInfo(m_display, VisualScreenMask, &visualTemplate, &visualCount);
^
Source/WebCore/platform/graphics/x11/PlatformDisplayX11.cpp:136:57: error: use of undeclared identifier 'VisualScreenMask'
XVisualInfo* visualInfo = XGetVisualInfo(m_display, VisualScreenMask, &visualTemplate, &visualCount);
^
--- Source/WebCore/platform/graphics/x11/PlatformDisplayX11.cpp.orig 2020-08-12 09:17:55 UTC
+++ Source/WebCore/platform/graphics/x11/PlatformDisplayX11.cpp
@@ -32,6 +32,7 @@
#include <X11/Xlib.h>
#include <X11/extensions/Xcomposite.h>
#if PLATFORM(GTK)
+#include <X11/Xutil.h>
#include <X11/extensions/Xdamage.h>
#endif

View File

@ -1,6 +1,6 @@
--- Source/WebCore/platform/network/DNS.h.orig 2020-09-30 07:03:48 UTC
--- Source/WebCore/platform/network/DNS.h.orig 2021-09-22 23:05:58 UTC
+++ Source/WebCore/platform/network/DNS.h
@@ -29,6 +29,7 @@
@@ -33,6 +33,7 @@
#include <winsock2.h>
#include <ws2tcpip.h>
#else

View File

@ -1,6 +1,6 @@
--- Source/bmalloc/bmalloc/BPlatform.h.orig 2020-08-12 09:17:57 UTC
--- Source/bmalloc/bmalloc/BPlatform.h.orig 2021-09-22 23:05:58 UTC
+++ Source/bmalloc/bmalloc/BPlatform.h
@@ -159,6 +159,7 @@
@@ -163,6 +163,7 @@
#elif defined(__ARM_ARCH_6__) \
|| defined(__ARM_ARCH_6J__) \
|| defined(__ARM_ARCH_6K__) \

View File

@ -0,0 +1,14 @@
--- Source/cmake/WebKitCommon.cmake.orig 2021-09-22 23:05:58 UTC
+++ Source/cmake/WebKitCommon.cmake
@@ -106,9 +106,9 @@ if (NOT HAS_RUN_WEBKIT_COMMON)
endif ()
elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "(i[3-6]86|x86)")
set(WTF_CPU_X86 1)
- elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "ppc")
+ elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "(ppc|powerpc)")
set(WTF_CPU_PPC 1)
- elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "ppc64")
+ elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "(ppc64|powerpc64)")
set(WTF_CPU_PPC64 1)
elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "ppc64le")
set(WTF_CPU_PPC64LE 1)

View File

@ -0,0 +1,211 @@
Regressed by: https://github.com/WebKit/WebKit/commit/11ccaf183fad
GStreamer.cpp.o -c /wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.34.0/Source/WebCore/p
latform/graphics/gstreamer/MediaSampleGStreamer.cpp
/wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.34.0/Source/WebCore/platform/graphics/gs
treamer/MediaSampleGStreamer.cpp:220:12: error: call to implicitly-deleted copy constructor o
f 'WebCore::PlatformSample'
return sample;
^~~~~~
/wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.34.0/Source/WebCore/platform/MediaSample
.h:57:7: note: copy constructor of 'PlatformSample' is implicitly deleted because field 'samp
le' has a deleted copy constructor
} sample;
^
/wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.34.0/Source/WebCore/platform/MediaSample
.h:56:66: note: copy constructor of '' is implicitly deleted because variant field 'byteRange
Sample' has a non-trivial copy constructor
std::pair<MTPluginByteSourceRef, CMFormatDescriptionRef> byteRangeSample;
^
1 error generated.
diff --git Source/WTF/wtf/PlatformHave.h Source/WTF/wtf/PlatformHave.h
index 4c5f1d2..e61e7fc 100644
--- Source/WTF/wtf/PlatformHave.h
+++ Source/WTF/wtf/PlatformHave.h
@@ -909,6 +909,12 @@
#endif
#endif
+#if PLATFORM(MAC) && __MAC_OS_X_VERSION_MAX_ALLOWED >= 110300
+#if !defined(HAVE_MT_PLUGIN_SAMPLE_CURSOR_PLAYABLE_HORIZON)
+#define HAVE_MT_PLUGIN_SAMPLE_CURSOR_PLAYABLE_HORIZON 1
+#endif
+#endif
+
#if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MAX_ALLOWED >= 110200) \
|| (PLATFORM(IOS) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 140400)
#define HAVE_AVCONTENTKEYREQUEST_PENDING_PROTECTION_STATUS 1
diff --git Source/WebCore/page/RuntimeEnabledFeatures.h Source/WebCore/page/RuntimeEnabledFeatures.h
index c97386f..6bb9794 100644
--- Source/WebCore/page/RuntimeEnabledFeatures.h
+++ Source/WebCore/page/RuntimeEnabledFeatures.h
@@ -243,6 +243,11 @@ public:
void setDisableMediaExperiencePIDInheritance(bool isDisabled) { m_disableMediaExperiencePIDInheritance = isDisabled; }
bool disableMediaExperiencePIDInheritance() const { return m_disableMediaExperiencePIDInheritance; }
#endif
+
+#if HAVE(MT_PLUGIN_FORMAT_READER)
+ void setWebMFormatReaderEnabled(bool isEnabled) { m_webMFormatReaderEnabled = isEnabled; }
+ bool webMFormatReaderEnabled() const { return m_webMFormatReaderEnabled; }
+#endif
#if ENABLE(VORBIS)
WEBCORE_EXPORT void setVorbisDecoderEnabled(bool isEnabled);
@@ -375,6 +380,10 @@ private:
bool m_webMFormatReaderEnabled { false };
#endif
+#if HAVE(MT_PLUGIN_FORMAT_READER)
+ bool m_webMFormatReaderEnabled { false };
+#endif
+
#if ENABLE(MEDIA_SOURCE)
bool m_webMParserEnabled { false };
bool m_webMWebAudioEnabled { false };
diff --git Source/WebCore/platform/MediaSample.h Source/WebCore/platform/MediaSample.h
index 0847b97..d34ba7f 100644
--- Source/WebCore/platform/MediaSample.h
+++ Source/WebCore/platform/MediaSample.h
@@ -34,8 +34,6 @@
typedef struct opaqueCMSampleBuffer *CMSampleBufferRef;
typedef struct _GstSample GstSample;
-typedef struct OpaqueMTPluginByteSource *MTPluginByteSourceRef;
-typedef const struct opaqueCMFormatDescription *CMFormatDescriptionRef;
namespace WebCore {
@@ -47,13 +45,11 @@ struct PlatformSample {
MockSampleBoxType,
CMSampleBufferType,
GStreamerSampleType,
- ByteRangeSampleType,
} type;
union {
MockSampleBox* mockSampleBox;
CMSampleBufferRef cmSampleBuffer;
GstSample* gstSample;
- std::pair<MTPluginByteSourceRef, CMFormatDescriptionRef> byteRangeSample;
} sample;
};
@@ -91,12 +87,6 @@ public:
virtual SampleFlags flags() const = 0;
virtual PlatformSample platformSample() = 0;
- struct ByteRange {
- size_t byteOffset { 0 };
- size_t byteLength { 0 };
- };
- virtual std::optional<ByteRange> byteRange() const = 0;
-
enum class VideoRotation {
None = 0,
UpsideDown = 180,
diff --git Source/WebCore/platform/graphics/gstreamer/MediaSampleGStreamer.h Source/WebCore/platform/graphics/gstreamer/MediaSampleGStreamer.h
index d7a49b9..874c3dc 100644
--- Source/WebCore/platform/graphics/gstreamer/MediaSampleGStreamer.h
+++ Source/WebCore/platform/graphics/gstreamer/MediaSampleGStreamer.h
@@ -57,7 +57,6 @@ public:
Ref<MediaSample> createNonDisplayingCopy() const override;
SampleFlags flags() const override { return m_flags; }
PlatformSample platformSample() override;
- std::optional<ByteRange> byteRange() const override { return std::nullopt; }
void dump(PrintStream&) const override;
RefPtr<JSC::Uint8ClampedArray> getRGBAImageData() const final;
diff --git Source/WebCore/platform/mock/mediasource/MockSourceBufferPrivate.cpp Source/WebCore/platform/mock/mediasource/MockSourceBufferPrivate.cpp
index 5cb60b9..83da5b0 100644
--- Source/WebCore/platform/mock/mediasource/MockSourceBufferPrivate.cpp
+++ Source/WebCore/platform/mock/mediasource/MockSourceBufferPrivate.cpp
@@ -62,7 +62,6 @@ private:
size_t sizeInBytes() const override { return sizeof(m_box); }
SampleFlags flags() const override;
PlatformSample platformSample() override;
- std::optional<ByteRange> byteRange() const override { return std::nullopt; }
FloatSize presentationSize() const override { return FloatSize(); }
void dump(PrintStream&) const override;
void offsetTimestampsBy(const MediaTime& offset) override { m_box.offsetTimestampsBy(offset); }
diff --git Source/WebKit/MediaFormatReaderPlugIn/MediaFormatReaderPlugIn.cpp Source/WebKit/MediaFormatReaderPlugIn/MediaFormatReaderPlugIn.cpp
index 496e42a..43664ed 100644
--- Source/WebKit/MediaFormatReaderPlugIn/MediaFormatReaderPlugIn.cpp
+++ Source/WebKit/MediaFormatReaderPlugIn/MediaFormatReaderPlugIn.cpp
@@ -23,14 +23,15 @@
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include <WebKit/WKMediaFormatReader.h>
+#include "config.h"
-extern "C" WK_EXPORT OSStatus CreateMediaFormatReaderInstance(MTPluginByteSourceRef, CFAllocatorRef, CFDictionaryRef, MTPluginFormatReaderRef*);
+#if HAVE(MT_PLUGIN_FORMAT_READER)
-OSStatus CreateMediaFormatReaderInstance(MTPluginByteSourceRef byteSource, CFAllocatorRef allocator, CFDictionaryRef, MTPluginFormatReaderRef* formatReader)
+OSStatus CreateMediaFormatReaderInstance(MTPluginByteSourceRef, CFAllocatorRef, CFDictionary
+Ref, MTPluginFormatReaderRef* formatReader)
{
- OSStatus status = WKMediaFormatReaderCreate(allocator, formatReader);
- if (status != noErr)
- return status;
- return WKMediaFormatReaderStartOnMainThread(*formatReader, byteSource);
+ *formatReader = nullptr;
+ return kMTPluginFormatReaderError_InternalFailure;
}
+
+#endif // HAVE(MT_PLUGIN_FORMAT_READER)
diff --git Source/WebKit/Shared/WebPreferencesDefaultValues.cpp Source/WebKit/Shared/WebPreferencesDefaultValues.cpp
index 8b24061..83e3a04 100644
--- Source/WebKit/Shared/WebPreferencesDefaultValues.cpp
+++ Source/WebKit/Shared/WebPreferencesDefaultValues.cpp
@@ -289,6 +289,19 @@ bool defaultWebMFormatReaderEnabled()
#endif // ENABLE(WEBM_FORMAT_READER)
+#if ENABLE(MEDIA_SOURCE) && HAVE(MT_PLUGIN_FORMAT_READER)
+
+bool defaultWebMFormatReaderEnabled()
+{
+#if HAVE(SYSTEM_FEATURE_FLAGS)
+ return isFeatureFlagEnabled("webm_format_reader");
+#endif
+
+ return false;
+}
+
+#endif
+
#if ENABLE(VP9)
bool defaultVP8DecoderEnabled()
diff --git Source/WebKit/Shared/WebPreferencesDefaultValues.h Source/WebKit/Shared/WebPreferencesDefaultValues.h
index c7af0cb..c1c91ed 100644
--- Source/WebKit/Shared/WebPreferencesDefaultValues.h
+++ Source/WebKit/Shared/WebPreferencesDefaultValues.h
@@ -95,6 +95,10 @@ bool defaultWebXREnabled();
bool defaultWebMFormatReaderEnabled();
#endif
+#if ENABLE(MEDIA_SOURCE) && HAVE(MT_PLUGIN_FORMAT_READER)
+bool defaultWebMFormatReaderEnabled();
+#endif
+
#if ENABLE(VP9)
bool defaultVP8DecoderEnabled();
bool defaultVP9DecoderEnabled();
diff --git Source/WebKit/SourcesCocoa.txt Source/WebKit/SourcesCocoa.txt
index 78fb424..ac04aa8 100644
--- Source/WebKit/SourcesCocoa.txt
+++ Source/WebKit/SourcesCocoa.txt
@@ -229,6 +229,11 @@ Shared/mac/MediaFormatReader/MediaSampleByteRange.cpp
Shared/mac/MediaFormatReader/MediaSampleCursor.cpp
Shared/mac/MediaFormatReader/MediaTrackReader.cpp
+Shared/mac/MediaFormatReader/CoreMediaWrapped.cpp
+Shared/mac/MediaFormatReader/FormatReader.cpp
+Shared/mac/MediaFormatReader/SampleCursor.cpp
+Shared/mac/MediaFormatReader/TrackReader.cpp
+
Shared/Plugins/mac/PluginSandboxProfile.mm
Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm

View File

@ -52,6 +52,8 @@ include/webkitgtk-4.0/webkit2/WebKitHitTestResult.h
include/webkitgtk-4.0/webkit2/WebKitInputMethodContext.h
include/webkitgtk-4.0/webkit2/WebKitInstallMissingMediaPluginsPermissionRequest.h
include/webkitgtk-4.0/webkit2/WebKitJavascriptResult.h
include/webkitgtk-4.0/webkit2/WebKitMediaKeySystemPermissionRequest.h
include/webkitgtk-4.0/webkit2/WebKitMemoryPressureSettings.h
include/webkitgtk-4.0/webkit2/WebKitMimeInfo.h
include/webkitgtk-4.0/webkit2/WebKitNavigationAction.h
include/webkitgtk-4.0/webkit2/WebKitNavigationPolicyDecision.h
@ -219,17 +221,16 @@ lib/girepository-1.0/WebKit2-4.0.typelib
lib/girepository-1.0/WebKit2WebExtension-4.0.typelib
lib/libjavascriptcoregtk-4.0.so
lib/libjavascriptcoregtk-4.0.so.18
lib/libjavascriptcoregtk-4.0.so.18.17.13
lib/libjavascriptcoregtk-4.0.so.18.19.5
lib/libwebkit2gtk-4.0.so
lib/libwebkit2gtk-4.0.so.37
lib/libwebkit2gtk-4.0.so.37.49.9
lib/libwebkit2gtk-4.0.so.37.55.3
lib/webkit2gtk-4.0/injected-bundle/libwebkit2gtkinjectedbundle.so
libdata/pkgconfig/javascriptcoregtk-4.0.pc
libdata/pkgconfig/webkit2gtk-4.0.pc
libdata/pkgconfig/webkit2gtk-web-extension-4.0.pc
libexec/webkit2gtk-4.0/MiniBrowser
libexec/webkit2gtk-4.0/WebKitNetworkProcess
libexec/webkit2gtk-4.0/WebKitPluginProcess
libexec/webkit2gtk-4.0/WebKitWebProcess
libexec/webkit2gtk-4.0/jsc
share/gir-1.0/JavaScriptCore-4.0.gir