WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
64596
Web Inspector: arrays in object properties sections do not scale.
https://bugs.webkit.org/show_bug.cgi?id=64596
Summary
Web Inspector: arrays in object properties sections do not scale.
Pavel Feldman
Reported
2011-07-15 06:42:16 PDT
Patch to follow.
Attachments
Patch
(5.38 KB, patch)
2011-07-15 06:43 PDT
,
Pavel Feldman
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ec2-cr-linux-03
(5.86 MB, application/zip)
2011-07-15 07:01 PDT
,
WebKit Review Bot
no flags
Details
Patch
(14.27 KB, patch)
2011-07-22 06:55 PDT
,
Pavel Feldman
no flags
Details
Formatted Diff
Diff
[IMAGE] Looks with patch applied.
(81.92 KB, image/png)
2011-07-22 07:25 PDT
,
Pavel Feldman
no flags
Details
Patch
(16.96 KB, patch)
2012-03-01 06:13 PST
,
Pavel Feldman
no flags
Details
Formatted Diff
Diff
Patch
(19.30 KB, patch)
2012-03-01 09:07 PST
,
Pavel Feldman
vsevik
: review+
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Pavel Feldman
Comment 1
2011-07-15 06:43:36 PDT
Created
attachment 100968
[details]
Patch
WebKit Review Bot
Comment 2
2011-07-15 07:01:35 PDT
Comment on
attachment 100968
[details]
Patch
Attachment 100968
[details]
did not pass chromium-ews (chromium-xvfb): Output:
http://queues.webkit.org/results/9094260
New failing tests: inspector/elements/event-listener-sidebar.html inspector/debugger/error-in-watch-expressions.html
WebKit Review Bot
Comment 3
2011-07-15 07:01:41 PDT
Created
attachment 100971
[details]
Archive of layout-test-results from ec2-cr-linux-03 The attached test failures were seen while running run-webkit-tests on the chromium-ews. Bot: ec2-cr-linux-03 Port: Chromium Platform: Linux-2.6.35-28-virtual-x86_64-with-Ubuntu-10.10-maverick
Yury Semikhatsky
Comment 4
2011-07-15 08:10:17 PDT
Comment on
attachment 100968
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=100968&action=review
Let's make sure that it works for object property section as well, r- for now.
> Source/WebCore/inspector/front-end/ObjectPropertiesSection.js:81 > + var expandableArrayThreashold = 100;
typo: threashold -> threshold
> Source/WebCore/inspector/front-end/ObjectPropertiesSection.js:90 > + if (index >= 0 && (index < minIndex || minIndex == -1))
if -> else if? == -> ===
Pavel Feldman
Comment 5
2011-07-22 06:55:16 PDT
Created
attachment 101725
[details]
Patch
Pavel Feldman
Comment 6
2011-07-22 07:25:23 PDT
Created
attachment 101729
[details]
[IMAGE] Looks with patch applied.
Yury Semikhatsky
Comment 7
2011-07-25 06:07:36 PDT
Comment on
attachment 101725
[details]
Patch Array UI is not properly updated after editing array value. r- for this.
Pavel Feldman
Comment 8
2012-03-01 05:32:33 PST
***
Bug 80021
has been marked as a duplicate of this bug. ***
Pavel Feldman
Comment 9
2012-03-01 06:13:51 PST
Created
attachment 129694
[details]
Patch
WebKit Review Bot
Comment 10
2012-03-01 06:21:26 PST
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See
http://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
WebKit Review Bot
Comment 11
2012-03-01 06:22:43 PST
Attachment 129694
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'ChangeLog', u'LayoutTests/ChangeLog', u'La..." exit_code: 1 WARNING: File exempt from style guide. Skipping: "Source/WebKit2/UIProcess/API/gtk/WebKitDefines.h" Source/WebKit2/WebProcess/gtk/WebProcessMainGtk.cpp:71: Use 0 instead of NULL. [readability/null] [5] Total errors found: 1 in 186 files If any of these errors are false positives, please file a bug against check-webkit-style.
Vsevolod Vlasov
Comment 12
2012-03-01 07:55:31 PST
Comment on
attachment 129694
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=129694&action=review
Looks like this needs a test.
> Source/WebCore/inspector/front-end/ConsoleMessage.js:291 > + if (array.arrayLength() > 100)
Maybe use const?
> Source/WebCore/inspector/front-end/ObjectPropertiesSection.js:382 > + TreeElement.call(this, "[" + this._properties[fromIndex].name + " \u2026 " + this._properties[toIndex - 1].name + "]", null, true);
var title = fromIndex === toIndex - 1 ? "[" + this._properties[fromIndex].name + " \u2026 " + this._properties[toIndex - 1].name + "]" : this._properties[fromIndex].name; TreeElement.call(this, title, null, true);
> Source/WebCore/inspector/front-end/ObjectPropertiesSection.js:404 > + treeElement._readOnly = true;
So we can not edit any array shown as dir(array) even if it shorter than 20 elements?
> Source/WebCore/inspector/front-end/RemoteObject.js:313 > + return parseInt(this._description.match(/[0-9]+/), 10);
Maybe var matches = this._description.match(/\[([0-9]+)\]/)) return parseInt(matches[1], 10); would be better?
Pavel Feldman
Comment 13
2012-03-01 09:07:20 PST
Created
attachment 129713
[details]
Patch
Vsevolod Vlasov
Comment 14
2012-06-29 00:10:28 PDT
This was landed as
r109372
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