RESOLVED WONTFIX 60666
[Chromium] Add hook to create arbitrary Storage objects
https://bugs.webkit.org/show_bug.cgi?id=60666
Summary [Chromium] Add hook to create arbitrary Storage objects
Ben Olmstead
Reported 2011-05-11 14:59:59 PDT
Created attachment 93189 [details] add getStorageForOrigin() to Chromium WebFrame We want to expose a Chromium extension's localStorage to its own content scripts; for that we need a way to get Storage objects for (somewhat) arbitrary security origins. Chromium side of this change: http://codereview.chromium.org/7007001/ (for http://code.google.com/p/chromium/issues/detail?id=30224 ).
Attachments
add getStorageForOrigin() to Chromium WebFrame (10.37 KB, patch)
2011-05-11 14:59 PDT, Ben Olmstead
eric: review-
abarth: commit-queue-
WebKit Review Bot
Comment 1 2011-05-11 15:02:16 PDT
Attachment 93189 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebKit/chromium/ChangeLog', u'Sourc..." exit_code: 1 Source/WebKit/chromium/ChangeLog:1: ChangeLog entry has no bug number [changelog/bugnumber] [5] Total errors found: 1 in 8 files If any of these errors are false positives, please file a bug against check-webkit-style.
Adam Barth
Comment 2 2011-05-11 15:12:33 PDT
Comment on attachment 93189 [details] add getStorageForOrigin() to Chromium WebFrame View in context: https://bugs.webkit.org/attachment.cgi?id=93189&action=review > Source/WebKit/chromium/public/WebFrame.h:2 > - * Copyright (C) 2009 Google Inc. All rights reserved. > + * Copyright (C) 2011 Google Inc. All rights reserved. WebKit style is to append years to the copyright lines (or just leave them along). > Source/WebKit/chromium/public/WebFrame.h:280 > + // Creates a Storage object for the given origin, which need not match the > + // current page's origin. > + virtual v8::Handle<v8::Value> getStorageForOrigin(const WebSecurityOrigin&) = 0; This just seems like piling junk onto WebFrame. > Source/WebKit/chromium/public/WebSecurityOrigin.h:62 > + WEBKIT_API static WebSecurityOrigin create(const WebString& protocol, const WebString& host, int port); This API shouldn't exist. You should just use a URL.
Eric Seidel (no email)
Comment 3 2011-12-21 11:58:54 PST
Comment on attachment 93189 [details] add getStorageForOrigin() to Chromium WebFrame Adam's review sounds like an r- more than just a cq-.
Note You need to log in before you can comment on or make changes to this bug.