WebKit Bugzilla
Attachment 340746 Details for
Bug 185624
: Session cookies aren't reliably set when using default WKWebSiteDataStore
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
bug-185624-20180518151537.patch (text/plain), 2.46 KB, created by
Sihui Liu
on 2018-05-18 15:15:37 PDT
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Sihui Liu
Created:
2018-05-18 15:15:37 PDT
Size:
2.46 KB
patch
obsolete
>Subversion Revision: 231980 >diff --git a/Tools/ChangeLog b/Tools/ChangeLog >index 21dd8f99bf696f0bde81b37b8f46e746648ab0d8..e933e9283e9fa68d13d6b5feadfe6ee1b34c8cc4 100644 >--- a/Tools/ChangeLog >+++ b/Tools/ChangeLog >@@ -1,3 +1,17 @@ >+2018-05-18 Sihui Liu <sihui_liu@apple.com> >+ >+ Session cookies aren't reliably set when using default WKWebSiteDataStore >+ https://bugs.webkit.org/show_bug.cgi?id=185624 >+ <rdar://problem/39111626> >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ Modified test to set correct expection. >+ >+ * TestWebKitAPI/Tests/WebKitCocoa/WKHTTPCookieStore.mm: >+ (-[CookieUIDelegate webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:]): >+ (TEST): >+ > 2018-05-18 Eric Carlson <eric.carlson@apple.com> > > Handle failure to extend sandbox gracefully >diff --git a/Tools/TestWebKitAPI/Tests/WebKitCocoa/WKHTTPCookieStore.mm b/Tools/TestWebKitAPI/Tests/WebKitCocoa/WKHTTPCookieStore.mm >index ae13bbb80cb82bf60c50ef05858d9b6883deb336..b9e7a2b81114d53f9e54e4d564141aa7fe0f677a 100644 >--- a/Tools/TestWebKitAPI/Tests/WebKitCocoa/WKHTTPCookieStore.mm >+++ b/Tools/TestWebKitAPI/Tests/WebKitCocoa/WKHTTPCookieStore.mm >@@ -33,6 +33,7 @@ > #import <WebKit/WKWebsiteDataStorePrivate.h> > #import <WebKit/_WKWebsiteDataStoreConfiguration.h> > #import <wtf/RetainPtr.h> >+#import <wtf/text/WTFString.h> > > #if WK_API_ENABLED > >@@ -376,7 +377,8 @@ @end > @implementation CookieUIDelegate > - (void)webView:(WKWebView *)webView runJavaScriptAlertPanelWithMessage:(NSString *)message initiatedByFrame:(WKFrameInfo *)frame completionHandler:(void (^)(void))completionHandler > { >- EXPECT_STREQ("cookie:PersistentCookieName=CookieValue; SessionCookieName=CookieValue", message.UTF8String); >+ auto cookies = String(message.UTF8String); >+ ASSERT_TRUE(cookies == "PersistentCookieName=CookieValue; SessionCookieName=CookieValue" || cookies == "SessionCookieName=CookieValue; PersistentCookieName=CookieValue"); > finished = true; > completionHandler(); > } >@@ -397,7 +399,7 @@ TEST(WebKit, WKHTTPCookieStoreWithoutProcessPool) > NSHTTPCookieDomain: @"127.0.0.1", > NSHTTPCookieExpires: [NSDate distantFuture], > }]; >- NSString *alertCookieHTML = @"<script>alert('cookie:'+document.cookie);</script>"; >+ NSString *alertCookieHTML = @"<script>alert(document.cookie);</script>"; > > // NonPersistentDataStore > RetainPtr<WKWebsiteDataStore> ephemeralStoreWithCookies = [WKWebsiteDataStore nonPersistentDataStore];
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 185624
:
340362
|
340373
|
340403
|
340441
|
340484
|
340746
|
340750