[webkit-reviews] review granted: [Bug 89666] Separate WebKit2 instances use the same local storage : [Attachment 167530] patch

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 12 03:26:26 PDT 2012


Simon Hausmann <hausmann at webkit.org> has granted Szilard Ledan
<szledan at inf.u-szeged.hu>'s request for review:
Bug 89666: Separate WebKit2 instances use the same local storage
https://bugs.webkit.org/show_bug.cgi?id=89666

Attachment 167530: patch
https://bugs.webkit.org/attachment.cgi?id=167530&action=review

------- Additional Comments from Simon Hausmann <hausmann at webkit.org>
View in context: https://bugs.webkit.org/attachment.cgi?id=167530&action=review


I think the patch looks good. The only two issues I can find are the missing
notImplemented() and the static_cast that appears to be unnecessary. Please fix
those before landing :)

(And I suppose this needs very careful perhaps manual landing, since it affects
the quite a few ports)

> Source/WebKit2/UIProcess/win/WebContextWin.cpp:107
> +    // FIXME: not implemented!

Use notImplemented(); here?

> Source/WebKit2/WebProcess/mac/WebProcessMac.mm:271
> -	   RetainPtr<NSURLCache> parentProcessURLCache(AdoptNS, [[NSURLCache
alloc] initWithMemoryCapacity:cacheMemoryCapacity
diskCapacity:cacheDiskCapacity diskPath:parameters.nsURLCachePath]);
> +	   RetainPtr<NSURLCache> parentProcessURLCache(AdoptNS, [[NSURLCache
alloc] initWithMemoryCapacity:cacheMemoryCapacity
diskCapacity:cacheDiskCapacity
diskPath:static_cast<NSString*>(parameters.diskCacheDirectory)]);

Why is the static_cast needed here?

It seems that with

    diskPath:parameters.nsURLCachePath

the nsURLCachePath as a String. With 

    diskPath:static_cast<NSString*>(parameters.diskCacheDirectory)

the diskCacheDirectory appears to be a String, too. So I don't understand why
the cast is needed :)


More information about the webkit-reviews mailing list