Title: [295642] trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/WKContentExtensionStore.mm
- Revision
- 295642
- Author
- achristen...@apple.com
- Date
- 2022-06-17 12:06:35 -0700 (Fri, 17 Jun 2022)
Log Message
New test: [macOS/iOS arm64] TestWebKitAPI.WKContentRuleListStoreTest.CrossOriginCookieBlocking is crashing
https://bugs.webkit.org/show_bug.cgi?id=241653
Reviewed by Yusuke Suzuki.
* Tools/TestWebKitAPI/Tests/WebKitCocoa/WKContentExtensionStore.mm:
(TEST_F):
Canonical link: https://commits.webkit.org/251647@main
Modified Paths
Diff
Modified: trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/WKContentExtensionStore.mm (295641 => 295642)
--- trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/WKContentExtensionStore.mm 2022-06-17 18:57:08 UTC (rev 295641)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/WKContentExtensionStore.mm 2022-06-17 19:06:35 UTC (rev 295642)
@@ -224,8 +224,18 @@
auto request = co_await connection.awaitableReceiveHTTPRequest();
auto path = HTTPServer::parsePath(request);
auto response = [&] {
- if (path == "/com"_s)
+ if (path == "/com"_s) {
+#if CPU(ARM64E) && defined(NDEBUG)
+ // FIXME: This is exactly equivalent code, but the code below crashes on release builds on arm64e.
+ // See rdar://95391568
+ HashMap<String, String> headerFields;
+ headerFields.reserveInitialCapacity(1);
+ headerFields.add("Set-Cookie"_s, "testCookie=42; Path=/; SameSite=None; Secure"_s);
+ return HTTPResponse(WTFMove(headerFields), "<script>alert('hi')</script>"_s);
+#else
return HTTPResponse({ { "Set-Cookie"_s, "testCookie=42; Path=/; SameSite=None; Secure"_s } }, "<script>alert('hi')</script>"_s);
+#endif
+ }
if (path == "/org"_s)
return HTTPResponse("<script>fetch('https://example.com/cookie-check', {credentials: 'include'})</script>"_s);
if (path == "/cookie-check"_s) {
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes