Bug 129687

Summary: [Mac][WK2] Videos do not have access to session cookies
Product: WebKit Reporter: Jer Noble <jer.noble>
Component: New BugsAssignee: Jer Noble <jer.noble>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, eric.carlson, jer.noble, joepeck
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch for landing
none
Patch
eric.carlson: review+
Patch for landing
none
Patch for landing none

Jer Noble
Reported 2014-03-04 10:52:34 PST
[Mac][WK2] Videos do not have access to session cookies
Attachments
Patch (3.53 KB, patch)
2014-03-04 10:55 PST, Jer Noble
no flags
Patch for landing (3.55 KB, patch)
2014-03-10 10:14 PDT, Jer Noble
no flags
Patch (3.77 KB, patch)
2014-03-31 17:10 PDT, Jer Noble
eric.carlson: review+
Patch for landing (3.82 KB, patch)
2014-04-01 12:54 PDT, Jer Noble
no flags
Patch for landing (3.96 KB, patch)
2014-04-04 14:03 PDT, Jer Noble
no flags
Jer Noble
Comment 1 2014-03-04 10:55:46 PST
Eric Carlson
Comment 2 2014-03-04 18:12:55 PST
Comment on attachment 225792 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=225792&action=review > Source/WebKit2/Shared/mac/CookieStorageShim.mm:36 > +#include <Foundation/NSURLSession.h> This needs to be conditionally included. > Source/WebKit2/Shared/mac/CookieStorageShim.mm:99 > +- (void)_getCookieHeadersForTask:(NSURLSessionTask*)task completionHandler:(void (^)(CFDictionaryRef))completionHandler Can completionHandler be NULL?
Jer Noble
Comment 3 2014-03-10 10:14:43 PDT
Created attachment 226315 [details] Patch for landing
Jer Noble
Comment 4 2014-03-31 17:10:58 PDT
Eric Carlson
Comment 5 2014-04-01 09:10:48 PDT
Comment on attachment 228221 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=228221&action=review > Source/WebKit2/Shared/mac/CookieStorageShim.mm:116 > + dispatch_async(dispatch_get_main_queue(), ^{ > + completionHandler(WebKit::webKitCookieStorageCopyRequestHeaderFieldsForURL(nullptr, (CFURLRef)[[task currentRequest] URL])); Can completionHandler be NULL?
Jer Noble
Comment 6 2014-04-01 12:54:23 PDT
Created attachment 228309 [details] Patch for landing
Jer Noble
Comment 7 2014-04-04 14:03:02 PDT
Created attachment 228615 [details] Patch for landing
Alexey Proskuryakov
Comment 8 2014-04-04 15:41:21 PDT
Comment on attachment 228221 [details] Patch Obsoleting an old version of the patch.
WebKit Commit Bot
Comment 9 2014-04-04 16:15:37 PDT
Comment on attachment 228615 [details] Patch for landing Clearing flags on attachment: 228615 Committed r166812: <http://trac.webkit.org/changeset/166812>
WebKit Commit Bot
Comment 10 2014-04-04 16:15:40 PDT
All reviewed patches have been landed. Closing bug.
Joseph Pecoraro
Comment 11 2014-04-04 18:18:52 PDT
(In reply to comment #10) > All reviewed patches have been landed. Closing bug. Looks like it this broke 32-bit builds on Mavericks. CompileC CookieStorageShim.o OpenSource/Source/WebKit2/Shared/mac/CookieStorageShim.mm:54:35: error: expected a type - (void)_getCookieHeadersForTask:(NSURLSessionTask*)task completionHandler:(void (^)(CFDictionaryRef))completionHandler; ^ OpenSource/Source/WebKit2/Shared/mac/CookieStorageShim.mm:117:35: error: expected a type - (void)_getCookieHeadersForTask:(NSURLSessionTask*)task completionHandler:(void (^)(CFDictionaryRef))completionHandler ^ 2 errors generated. I'm going to roll it out, because if that is the case then this bug probably needs to be addressed differently / tested on 32 bit.
Joseph Pecoraro
Comment 12 2014-04-04 18:25:20 PDT
Jer Noble
Comment 13 2014-04-07 10:50:37 PDT
(In reply to comment #12) > Rolled out in: <http://trac.webkit.org/changeset/166819> Just needed a forward declaration of NSURLSessionTask.
Jer Noble
Comment 14 2014-04-08 11:27:18 PDT
Note You need to log in before you can comment on or make changes to this bug.