WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
57009
Web Inspector: [REGRESSION] console message count is not updated in scripts and resources panels
https://bugs.webkit.org/show_bug.cgi?id=57009
Summary
Web Inspector: [REGRESSION] console message count is not updated in scripts a...
Pavel Podivilov
Reported
2011-03-24 06:30:31 PDT
Web Inspector: [REGRESSION] console message count is not updated in scripts and resources panels.
Attachments
Patch
(5.02 KB, patch)
2011-08-11 03:10 PDT
,
Pavel Podivilov
no flags
Details
Formatted Diff
Diff
Patch
(5.10 KB, patch)
2011-08-11 08:34 PDT
,
Pavel Podivilov
yurys
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Pavel Podivilov
Comment 1
2011-08-11 03:10:42 PDT
Created
attachment 103597
[details]
Patch
Vsevolod Vlasov
Comment 2
2011-08-11 07:53:28 PDT
Comment on
attachment 103597
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=103597&action=review
This does not work for me. Sometimes it leads to resource element bubble and source frame message showing different number of messages. I think this happens because some messages are processed twice in SourceFrame because of an extra MessageAdded event.
> Source/WebCore/inspector/front-end/ConsoleView.js:145 > + console.dispatchEventToListeners(WebInspector.ConsoleView.Events.MessageAdded, msg);
I believe this could cause side effects
Pavel Podivilov
Comment 3
2011-08-11 08:34:12 PDT
Created
attachment 103630
[details]
Patch
Pavel Podivilov
Comment 4
2011-08-11 08:37:19 PDT
(In reply to
comment #2
)
> (From update of
attachment 103597
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=103597&action=review
> > This does not work for me. > Sometimes it leads to resource element bubble and source frame message showing different number of messages. I think this happens because some messages are processed twice in SourceFrame because of an extra MessageAdded event.
Thanks for spotting this! We should use last message totalRepeatCount to update source frame bubble properly.
> > > Source/WebCore/inspector/front-end/ConsoleView.js:145 > > + console.dispatchEventToListeners(WebInspector.ConsoleView.Events.MessageAdded, msg); > > I believe this could cause side effects
There are two listeners: DebuggerPresentationModel and ResourceTreeModel, both add message to messages list and update corresponding source frame. I don't think there can be any side effects.
Vsevolod Vlasov
Comment 5
2011-08-11 08:50:42 PDT
Looks good to me now.
Yury Semikhatsky
Comment 6
2011-08-11 23:57:52 PDT
Comment on
attachment 103630
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=103630&action=review
> Source/WebCore/inspector/front-end/SourceFrame.js:561 > + _updateMessageRepeatCount: function(rowMessage)
I'd rather introduce RowMessage class and have this method on the new class, then have RowMessage listening to update events propagated by corresponding ConsoleMessage. What do you think?
Pavel Podivilov
Comment 7
2011-08-12 02:22:34 PDT
(In reply to
comment #6
)
> (From update of
attachment 103630
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=103630&action=review
> > > Source/WebCore/inspector/front-end/SourceFrame.js:561 > > + _updateMessageRepeatCount: function(rowMessage) > > I'd rather introduce RowMessage class and have this method on the new class, then have RowMessage listening to update events propagated by corresponding ConsoleMessage. What do you think?
I think it's a good idea, but quite unrelated to this bug. Maybe we could do this as a separate change since it requires a bunch of additional changes in resources and console?
Pavel Podivilov
Comment 8
2011-08-12 08:35:00 PDT
Committed
r92964
: <
http://trac.webkit.org/changeset/92964
>
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