Bug 33985

Summary: The Chromium WebKit API needs to expose storage event related data
Product: WebKit Reporter: Jeremy Orlow <jorlow>
Component: WebCore Misc.Assignee: Jeremy Orlow <jorlow>
Status: RESOLVED FIXED    
Severity: Normal CC: darin, dglazkov, fishd, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Attachments:
Description Flags
Patch
none
Patch fishd: review+, fishd: commit-queue-

Jeremy Orlow
Reported 2010-01-21 19:28:45 PST
The Chromium WebKit API needs to expose storage event related data. Without it, there's no way for the embedder to know a storage event should be fired.
Attachments
Patch (56.05 KB, patch)
2010-01-22 06:19 PST, Steve Block
no flags
Patch (21.49 KB, patch)
2010-01-22 11:04 PST, Jeremy Orlow
fishd: review+
fishd: commit-queue-
Steve Block
Comment 1 2010-01-22 06:19:57 PST
Steve Block
Comment 2 2010-01-22 06:21:30 PST
Comment on attachment 47196 [details] Patch Uploaded patch to wrong bug
Jeremy Orlow
Comment 3 2010-01-22 11:04:04 PST
Darin Fisher (:fishd, Google)
Comment 4 2010-01-22 11:14:32 PST
Comment on attachment 47213 [details] Patch > Index: WebKit/chromium/public/WebStorageArea.h ... > + virtual void setItem(const WebString& key, const WebString& newValue, const WebURL& url, bool& quotaException) // Deprecated. > + { > + WebString oldValue; > + setItem(key, newValue, url, quotaException, trash); s/trash/oldValue/ ? > + virtual void clear(const WebURL& url) // Deprecated. > + { > + WebString somethingCleared; > + clear(url, somethingCleared); WebString -> bool Please add a FIXME note about cleaning this up once the Chromium side is adapted. > Index: WebKit/chromium/src/StorageAreaProxy.cpp ... > + if (static_cast<String>(oldValue) != value) nit: I usually just write String(oldValue) in cases like this. It results in the same code. Otherwise, r=me
Jeremy Orlow
Comment 5 2010-01-22 11:19:32 PST
(In reply to comment #4) > (From update of attachment 47213 [details]) > > Index: WebKit/chromium/public/WebStorageArea.h > ... > > + virtual void setItem(const WebString& key, const WebString& newValue, const WebURL& url, bool& quotaException) // Deprecated. > > + { > > + WebString oldValue; > > + setItem(key, newValue, url, quotaException, trash); > > s/trash/oldValue/ ? > > > > + virtual void clear(const WebURL& url) // Deprecated. > > + { > > + WebString somethingCleared; > > + clear(url, somethingCleared); > > WebString -> bool Oops...note to self: webkit-patch takes a snapshot when you first start running it...so don't start it until after you've saved the file. :-) > > Please add a FIXME note about cleaning this up once the Chromium side is > adapted. > > > > > Index: WebKit/chromium/src/StorageAreaProxy.cpp > ... > > + if (static_cast<String>(oldValue) != value) > > nit: I usually just write String(oldValue) in cases like this. It results in > the same code. Done. Thanks.
WebKit Review Bot
Comment 6 2010-01-22 11:35:33 PST
Darin Adler
Comment 7 2010-01-22 11:39:23 PST
(In reply to comment #4) > > + if (static_cast<String>(oldValue) != value) > > nit: I usually just write String(oldValue) in cases like this. It results in the same code. I recommend a local variable instead. Because the String(x) syntax is too powerful. It can do anything a C-style cast can do and more. Assignment to a local variable only works when the conversion can be done without any typecasting.
Jeremy Orlow
Comment 8 2010-01-22 12:17:55 PST
(In reply to comment #7) > (In reply to comment #4) > > > + if (static_cast<String>(oldValue) != value) > > > > nit: I usually just write String(oldValue) in cases like this. It results in the same code. > > I recommend a local variable instead. Because the String(x) syntax is too > powerful. It can do anything a C-style cast can do and more. Assignment to a > local variable only works when the conversion can be done without any > typecasting. Will do.
Jeremy Orlow
Comment 9 2010-01-22 12:35:44 PST
Note You need to log in before you can comment on or make changes to this bug.