Bug 33492

Summary: [Chromium] Move getSessionStorageNamespace from WebKitClient to WebViewClient
Product: WebKit Reporter: Jeremy Orlow <jorlow>
Component: New BugsAssignee: Jeremy Orlow <jorlow>
Status: RESOLVED FIXED    
Severity: Normal CC: eric
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Other   
OS: OS X 10.5   
Attachments:
Description Flags
Patch
none
Patch fishd: review+, fishd: commit-queue-

Description Jeremy Orlow 2010-01-11 14:13:35 PST
[Chromium] Move getSessionStorageNamespace from WebKitClient to WebViewClient
Comment 1 Jeremy Orlow 2010-01-11 14:14:27 PST
Created attachment 46308 [details]
Patch
Comment 2 Darin Fisher (:fishd, Google) 2010-01-11 15:33:25 PST
Comment on attachment 46308 [details]
Patch

> Index: WebCore/ChangeLog
...
> +        No new tests. (OOPS!)

^^^ need to delete this line

> Index: WebKit/chromium/public/WebKitClient.h
...
> +    // THIS IS DEPRICATED.  WebViewClient::getSessionStorageNamespace() is the new way to access this.

^^^ deprecated


> Index: WebKit/chromium/public/WebViewClient.h

> +    // Session Storage ------------------------------------------------------
> +
> +    // Get the session storage namespace associated with this WebView.
> +    virtual WebStorageNamespace* getSessionStorageNamespace() { return 0; }

why isn't this called createSessionStorageNamespace?  if the embedder owns the returned
pointer, then you should just call this sessionStorageNamespace.
Comment 3 Jeremy Orlow 2010-01-11 15:58:11 PST
Created attachment 46315 [details]
Patch
Comment 4 Darin Fisher (:fishd, Google) 2010-01-11 23:47:55 PST
Comment on attachment 46315 [details]
Patch

> Index: WebKit/chromium/public/WebViewClient.h
...
> +    // Get the session storage namespace associated with this WebView.
> +    virtual WebStorageNamespace* createSessionStorageNamespace() { return 0; }

Fix the comment to say "Create a..."

Also, please move this up into the factory section of WebViewClient.

R=me, but please fix these before committing.
Comment 5 Eric Seidel (no email) 2010-01-12 04:05:30 PST
Attachment 46315 [details] was posted by a committer and has review+, assigning to Jeremy Orlow for commit.
Comment 6 Jeremy Orlow 2010-01-12 22:51:48 PST
Committed r53180: <http://trac.webkit.org/changeset/53180>
Comment 7 Jeremy Orlow 2010-01-13 11:22:24 PST
Re-opening as my previous patch had to be reverted.
Comment 8 Jeremy Orlow 2010-01-13 14:51:24 PST
Problem fixed upstream.  Will re-land the r+'ed patch.
Comment 9 Jeremy Orlow 2010-01-13 15:39:13 PST
Committed r53210: <http://trac.webkit.org/changeset/53210>