Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(309)

Issue 23480006: DevTools: DOMStorage action history must be reset once page/script modifies the DOM storage (Closed)

Created:
7 years, 3 months ago by vivekg_samsung
Modified:
7 years, 3 months ago
CC:
blink-reviews, caseq+blink_chromium.org, loislo+blink_chromium.org, eustas+blink_chromium.org, alph+blink_chromium.org, eae+blinkwatch, yurys+blink_chromium.org, lushnikov+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, dglazkov+blink, paulirish+reviews_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, aandrey+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

DevTools: DOMStorage action history must be reset once page/script modifies the DOM storage CL https://codereview.chromium.org/21163003/ introduced undo/redo feature on DOM storage panel. In this, if the page or the scripts running inside the page itself adds/deletes/modifies/clears the DOM storage, the undo/redo history object must be reset in order to keep the storage entries consistent otherwise it can mess up with the page script. R=pfeldman, apavlov@chromium.org, vsevik

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+270 lines, -134 lines) Patch
M LayoutTests/inspector/storage-panel-dom-storage-undo-redo.html View 4 chunks +218 lines, -131 lines 1 comment Download
M LayoutTests/inspector/storage-panel-dom-storage-undo-redo-expected.txt View 2 chunks +16 lines, -0 lines 0 comments Download
M Source/devtools/front_end/DOMStorage.js View 10 chunks +27 lines, -0 lines 1 comment Download
M Source/devtools/front_end/DOMStorageItemsView.js View 2 chunks +9 lines, -3 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
vivekg__
The DOMStorage object needs to keep the track of the calls made to the InspectorDOMStorageAgent ...
7 years, 3 months ago (2013-08-27 11:44:26 UTC) #1
pfeldman
https://codereview.chromium.org/23480006/diff/1/LayoutTests/inspector/storage-panel-dom-storage-undo-redo.html File LayoutTests/inspector/storage-panel-dom-storage-undo-redo.html (right): https://codereview.chromium.org/23480006/diff/1/LayoutTests/inspector/storage-panel-dom-storage-undo-redo.html#newcode70 LayoutTests/inspector/storage-panel-dom-storage-undo-redo.html:70: setTimeout(perform, 0); Please don't use setTimeout in tests. It ...
7 years, 3 months ago (2013-08-27 14:27:34 UTC) #2
vivekg__
On 2013/08/27 14:27:34, pfeldman wrote: Thanks Pavel. > https://codereview.chromium.org/23480006/diff/1/LayoutTests/inspector/storage-panel-dom-storage-undo-redo.html > File LayoutTests/inspector/storage-panel-dom-storage-undo-redo.html (right): > > ...
7 years, 3 months ago (2013-08-28 06:06:48 UTC) #3
pfeldman
> How do we make the call to storageArea->setItem/removeItem to be sync as it goes ...
7 years, 3 months ago (2013-08-28 07:32:49 UTC) #4
vivekg__
7 years, 3 months ago (2013-08-28 07:49:34 UTC) #5
On 2013/08/28 07:32:49, pfeldman wrote:
> > How do we make the call to storageArea->setItem/removeItem to be sync as it
> goes
> > back to the browser process n returns async way?
> 
> Oh, so we can't implement it reliably then. Given the amount of investment
> involved, I'd suggest to revert the undo/redo feature for localStorage and
focus
> on something else. It does not look like it is feasible + no one has asked for
> it.

yeah that's true as it would involve lot of re-factoring to support this one odd
case. It makes sense to revert this change. Thanks! 

Will submit a patch to revert this change.

Powered by Google App Engine
This is Rietveld 408576698