WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
112066
Inspector: IndexedDB clear button and menu item
https://bugs.webkit.org/show_bug.cgi?id=112066
Summary
Inspector: IndexedDB clear button and menu item
Alec Flett
Reported
2013-03-11 14:18:38 PDT
Inspector: IndexedDB clear button and menu item
Attachments
Patch
(14.38 KB, patch)
2013-03-11 14:18 PDT
,
Alec Flett
no flags
Details
Formatted Diff
Diff
Patch
(16.13 KB, patch)
2013-03-11 14:26 PDT
,
Alec Flett
no flags
Details
Formatted Diff
Diff
Patch
(21.39 KB, patch)
2013-03-18 16:20 PDT
,
Alec Flett
no flags
Details
Formatted Diff
Diff
Patch for landing
(20.88 KB, patch)
2013-03-19 09:58 PDT
,
Alec Flett
no flags
Details
Formatted Diff
Diff
Patch for landing
(20.25 KB, patch)
2013-03-19 10:04 PDT
,
Alec Flett
no flags
Details
Formatted Diff
Diff
Show Obsolete
(4)
View All
Add attachment
proposed patch, testcase, etc.
Alec Flett
Comment 1
2013-03-11 14:18:45 PDT
Created
attachment 192557
[details]
Patch
Alec Flett
Comment 2
2013-03-11 14:26:14 PDT
Created
attachment 192560
[details]
Patch
Alec Flett
Comment 3
2013-03-11 14:28:54 PDT
Comment on
attachment 192560
[details]
Patch I still need to write a test for this, but I wanted to run this by vsevik. A few small open questions: 1) I just picked an icon, is there any kind of design review I need to go through for UI changes like this? 2) There is some view state management that doesn't really exist in the current inspector, so much of the code between the context menu and the IDBDataView can't be shared. 3) Would there be any interest in adding a progress icon to the IDBDataView statusbar? While debugging I found it confusing to know when the inspector itself was busy with IDB or not.
Joshua Bell
Comment 4
2013-03-11 14:49:02 PDT
Comment on
attachment 192560
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=192560&action=review
> Source/WebCore/inspector/InspectorIndexedDBAgent.cpp:762 > + if (ec) {
This should only happen if the arguments or state are invalid, e.g. "readonly" transaction, objectstore has been previously deleted within this "versionchange", etc. None of those should apply here - ASSERT instead?
Alec Flett
Comment 5
2013-03-11 16:54:07 PDT
yeah, there's a lot of that in the inspector, I was reluctantly following convention, hoping to do some cleanup later... but I'll fix that instance.
Vsevolod Vlasov
Comment 6
2013-03-12 13:42:48 PDT
(In reply to
comment #3
)
> (From update of
attachment 192560
[details]
) > I still need to write a test for this, but I wanted to run this by vsevik. A few small open questions: > 1) I just picked an icon, is there any kind of design review I need to go through for UI changes like this?
Not really, you could just attach a screenshot to the bug and inspector reviewers could approve it.
> 2) There is some view state management that doesn't really exist in the current inspector, so much of the code > between the context menu and the IDBDataView can't be shared.
Looks like there is no a lot of code there, probably not a big deal.
> 3) Would there be any interest in adding a progress icon to the IDBDataView statusbar? While debugging I found > it confusing to know when the inspector itself was busy with IDB or not.
You could have a look on Source/WebCore/inspector/front-end/ProgressIndicator.js and its usages.
Alec Flett
Comment 7
2013-03-18 16:20:01 PDT
Created
attachment 193682
[details]
Patch
Alec Flett
Comment 8
2013-03-18 22:27:05 PDT
vsevik@ - this is ready for review now.. I'll do the progress meter another time.
Vsevolod Vlasov
Comment 9
2013-03-18 23:46:14 PDT
Comment on
attachment 193682
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=193682&action=review
Please rebaseline and fix nits before landing.
> Source/WebCore/ChangeLog:27 > +2013-03-11 Alec Flett <
alecflett@chromium.org
>
Please rebaseline
> Source/WebCore/inspector/Inspector.json:1416 > + { "name": "securityOrigin", "type": "string", "description": "Security origin." },
extra space after "name":
> Source/WebCore/inspector/front-end/IndexedDBViews.js:130 > + this._clearButton = new WebInspector.StatusBarButton(WebInspector.UIString("Clear All Data"), "clear-storage-status-bar-item");
"Clear object store" and you will need to add it to Source/WebCore/English.lproj/localizedStrings.js. Or just make it "Clear".
Alec Flett
Comment 10
2013-03-19 09:58:19 PDT
Created
attachment 193846
[details]
Patch for landing
Alec Flett
Comment 11
2013-03-19 10:02:37 PDT
Comment on
attachment 193846
[details]
Patch for landing ugh stupid changelog
Alec Flett
Comment 12
2013-03-19 10:04:00 PDT
Created
attachment 193847
[details]
Patch for landing
WebKit Review Bot
Comment 13
2013-03-19 10:31:38 PDT
Comment on
attachment 193847
[details]
Patch for landing Clearing flags on attachment: 193847 Committed
r146218
: <
http://trac.webkit.org/changeset/146218
>
WebKit Review Bot
Comment 14
2013-03-19 10:31:41 PDT
All reviewed patches have been landed. Closing bug.
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