Title: [289837] trunk/Tools
Revision
289837
Author
[email protected]
Date
2022-02-15 11:04:17 -0800 (Tue, 15 Feb 2022)

Log Message

REGRESSION(r289147): Two API tests are failing
https://bugs.webkit.org/show_bug.cgi?id=236376
<rdar://88586730>

Reviewed by Alexey Proskuryakov.

After r289147, the WebContent process can no longer consume sandbox extensions to the CF preference daemon.
Update the test expectations.

* TestWebKitAPI/Tests/WebKit/EnableAccessibility.mm:
(TEST):
* TestWebKitAPI/Tests/WebKit/GrantAccessToPreferencesService.mm:
(TEST):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (289836 => 289837)


--- trunk/Tools/ChangeLog	2022-02-15 19:02:43 UTC (rev 289836)
+++ trunk/Tools/ChangeLog	2022-02-15 19:04:17 UTC (rev 289837)
@@ -1,3 +1,19 @@
+2022-02-15  Per Arne Vollan  <[email protected]>
+
+        REGRESSION(r289147): Two API tests are failing
+        https://bugs.webkit.org/show_bug.cgi?id=236376
+        <rdar://88586730>
+
+        Reviewed by Alexey Proskuryakov.
+
+        After r289147, the WebContent process can no longer consume sandbox extensions to the CF preference daemon.
+        Update the test expectations.
+
+        * TestWebKitAPI/Tests/WebKit/EnableAccessibility.mm:
+        (TEST):
+        * TestWebKitAPI/Tests/WebKit/GrantAccessToPreferencesService.mm:
+        (TEST):
+
 2022-02-15  Jonathan Bedard  <[email protected]>
 
         git-webkit setup should verify the credentials before saving them

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/EnableAccessibility.mm (289836 => 289837)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/EnableAccessibility.mm	2022-02-15 19:02:43 UTC (rev 289836)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/EnableAccessibility.mm	2022-02-15 19:04:17 UTC (rev 289837)
@@ -71,7 +71,11 @@
 
     [webView synchronouslyLoadTestPageNamed:@"simple"];
 
+#if ENABLE(CFPREFS_DIRECT_MODE)
+    ASSERT_FALSE(sandboxAccess());
+#else
     ASSERT_TRUE(sandboxAccess());
+#endif
 
     [NSApp accessibilitySetEnhancedUserInterfaceAttribute:@(NO)];
 }

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/GrantAccessToPreferencesService.mm (289836 => 289837)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/GrantAccessToPreferencesService.mm	2022-02-15 19:02:43 UTC (rev 289836)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/GrantAccessToPreferencesService.mm	2022-02-15 19:04:17 UTC (rev 289837)
@@ -46,7 +46,11 @@
         return [webView stringByEvaluatingJavaScript:@"window.internals.hasSandboxMachLookupAccessToGlobalName('com.apple.WebKit.WebContent', 'com.apple.cfprefsd.daemon')"].boolValue;
     };
 
+#if ENABLE(CFPREFS_DIRECT_MODE)
+    ASSERT_FALSE(sandboxAccess());
+#else
     ASSERT_TRUE(sandboxAccess());
+#endif
 }
 
 #endif
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to