WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
33985
The Chromium WebKit API needs to expose storage event related data
https://bugs.webkit.org/show_bug.cgi?id=33985
Summary
The Chromium WebKit API needs to expose storage event related data
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
Details
Formatted Diff
Diff
Patch
(21.49 KB, patch)
2010-01-22 11:04 PST
,
Jeremy Orlow
fishd
: review+
fishd
: commit-queue-
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Steve Block
Comment 1
2010-01-22 06:19:57 PST
Created
attachment 47196
[details]
Patch
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
Created
attachment 47213
[details]
Patch
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
Attachment 47213
[details]
did not build on chromium: Build output:
http://webkit-commit-queue.appspot.com/results/206016
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
Committed
r53710
: <
http://trac.webkit.org/changeset/53710
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug