Bug 133393

Summary: -[WKProcessPoolConfiguration setCachePartitionedURLSchemes:] should do a deep copy
Product: WebKit Reporter: Anders Carlsson <andersca>
Component: New BugsAssignee: Anders Carlsson <andersca>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch mitz: review+

Description Anders Carlsson 2014-05-29 16:58:32 PDT
-[WKProcessPoolConfiguration setCachePartitionedURLSchemes:] should do a deep copy
Comment 1 Anders Carlsson 2014-05-29 16:58:42 PDT
Created attachment 232271 [details]
Patch
Comment 2 mitz 2014-05-29 17:03:21 PDT
Comment on attachment 232271 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=232271&action=review

> Source/WebKit2/UIProcess/API/Cocoa/_WKProcessPoolConfiguration.mm:-55
> -    _cachePartitionedURLSchemes = adoptNS([cachePartitionedURLSchemes copy]);

Just use -[NSArray initWithArray:copyItems:].
Comment 3 mitz 2014-05-29 17:06:56 PDT
Comment on attachment 232271 [details]
Patch

r=me if you address the comment
Comment 4 Anders Carlsson 2014-05-29 17:10:10 PDT
Committed r169477: <http://trac.webkit.org/changeset/169477>