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
31130
Web Inspector: Add basic support for resource events and marks. Couple of drive-by fixes. Enabling the panel!
https://bugs.webkit.org/show_bug.cgi?id=31130
Summary
Web Inspector: Add basic support for resource events and marks. Couple of dri...
Pavel Feldman
Reported
2009-11-04 10:56:04 PST
Time to enable...
Attachments
[PATCH]
(7.50 KB, patch)
2009-11-04 10:59 PST
,
Pavel Feldman
timothy
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Pavel Feldman
Comment 1
2009-11-04 10:59:25 PST
Created
attachment 42495
[details]
[PATCH]
Timothy Hatcher
Comment 2
2009-11-04 11:21:24 PST
Comment on
attachment 42495
[details]
[PATCH]
> + this._resourceUrls = {};
Should be _resourceURLs
> + return record.data.x + ", " + record.data.y + ", " + record.data.width + ", " + record.data.height;
Maybe we should just show width x height. I am not sure location will be much use. That detail coudl be in the popup we plan to add. width and height is more usefual since it gives you an idea how big.
> + case WebInspector.TimelineAgent.RecordType.ResourceSendRequest: > + this._resourceUrls[record.data.identifier] = record.data.url; > return record.data.url; > + case WebInspector.TimelineAgent.RecordType.ResourceReceiveResponse: > + case WebInspector.TimelineAgent.RecordType.ResourceFinish: > + return this._resourceUrls[record.data.identifier];
These two returns should use WebInspector.displayNameForURL().
> + case WebInspector.TimelineAgent.RecordType.MarkTimeline: > + return record.data.message;
Hmm I am not sure the whole message should be in the sidebar, but I guess it is their fault of it is long.
> + dataElement.title = this._record.details;
What is .details?
Pavel Feldman
Comment 3
2009-11-04 11:27:22 PST
(In reply to
comment #2
)
> (From update of
attachment 42495
[details]
) > > + this._resourceUrls = {}; > > Should be _resourceURLs >
Done.
> > > + return record.data.x + ", " + record.data.y + ", " + record.data.width + ", " + record.data.height; > > Maybe we should just show width x height. I am not sure location will be much > use. That detail coudl be in the popup we plan to add. width and height is more > usefual since it gives you an idea how big.
> Done.
> > > + case WebInspector.TimelineAgent.RecordType.ResourceSendRequest: > > + this._resourceUrls[record.data.identifier] = record.data.url; > > return record.data.url; > > + case WebInspector.TimelineAgent.RecordType.ResourceReceiveResponse: > > + case WebInspector.TimelineAgent.RecordType.ResourceFinish: > > + return this._resourceUrls[record.data.identifier]; > > These two returns should use WebInspector.displayNameForURL().
> Done.
> > > + case WebInspector.TimelineAgent.RecordType.MarkTimeline: > > + return record.data.message; > > Hmm I am not sure the whole message should be in the sidebar, but I guess it is > their fault of it is long. > > > > + dataElement.title = this._record.details; > > What is .details?
A secondary title content. It is not in () in gray and in a tip.
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