Title: [270812] trunk/Tools
Revision
270812
Author
[email protected]
Date
2020-12-14 17:16:43 -0800 (Mon, 14 Dec 2020)

Log Message

[Mac] MediaFormatReader.bundle fails to load in WebKitTestRunner
https://bugs.webkit.org/show_bug.cgi?id=219879

Reviewed by Eric Carlson.

* WebKitTestRunner/InjectedBundle/mac/InjectedBundleMac.mm:
(WTR::InjectedBundle::platformInitialize): Tell CoreMedia to allow unsigned format reader
plug-ins when running in WebKitTestRunner. This resolves test timeouts under
LayoutTests/webgl/2.0.0/.

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (270811 => 270812)


--- trunk/Tools/ChangeLog	2020-12-15 01:01:00 UTC (rev 270811)
+++ trunk/Tools/ChangeLog	2020-12-15 01:16:43 UTC (rev 270812)
@@ -1,3 +1,15 @@
+2020-12-14  Andy Estes  <[email protected]>
+
+        [Mac] MediaFormatReader.bundle fails to load in WebKitTestRunner
+        https://bugs.webkit.org/show_bug.cgi?id=219879
+
+        Reviewed by Eric Carlson.
+
+        * WebKitTestRunner/InjectedBundle/mac/InjectedBundleMac.mm:
+        (WTR::InjectedBundle::platformInitialize): Tell CoreMedia to allow unsigned format reader
+        plug-ins when running in WebKitTestRunner. This resolves test timeouts under
+        LayoutTests/webgl/2.0.0/.
+
 2020-12-14  Alex Christensen  <[email protected]>
 
         Remove WKDownloadDelegate.didWriteData

Modified: trunk/Tools/WebKitTestRunner/InjectedBundle/mac/InjectedBundleMac.mm (270811 => 270812)


--- trunk/Tools/WebKitTestRunner/InjectedBundle/mac/InjectedBundleMac.mm	2020-12-15 01:01:00 UTC (rev 270811)
+++ trunk/Tools/WebKitTestRunner/InjectedBundle/mac/InjectedBundleMac.mm	2020-12-15 01:16:43 UTC (rev 270812)
@@ -74,6 +74,9 @@
     };
 
     [[NSUserDefaults standardUserDefaults] setVolatileDomain:dict forName:NSArgumentDomain];
+    
+    // For testing in engineering builds, allow CoreMedia to load the MediaFormatReader bundle no matter its code signature.
+    CFPreferencesSetAppValue(CFSTR("pluginformatreader_unsigned"), kCFBooleanTrue, CFSTR("com.apple.coremedia"));
 
     // Underlying frameworks have already read AppleAntiAliasingThreshold default before we changed it.
     // A distributed notification is delivered to all applications, but it should be harmless, and it's the only way to update all underlying frameworks anyway.
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to