Bug 30684 - Makes page reload optional when enabling resource monitoring in InspectorController
Summary: Makes page reload optional when enabling resource monitoring in InspectorCont...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-22 11:44 PDT by jaimeyap
Modified: 2009-10-22 13:19 PDT (History)
3 users (show)

See Also:


Attachments
Makes page reload optional when enabling resource monitoring in InspectorController (2.37 KB, patch)
2009-10-22 11:44 PDT, jaimeyap
timothy: review-
Details | Formatted Diff | Diff
re-adds patch that includes link to this bug in ChangeLog (2.43 KB, patch)
2009-10-22 12:01 PDT, jaimeyap
timothy: review-
Details | Formatted Diff | Diff
removes tabs from ChangeLog (2.44 KB, patch)
2009-10-22 12:16 PDT, jaimeyap
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description jaimeyap 2009-10-22 11:44:14 PDT
Created attachment 41673 [details]
Makes page reload optional when enabling resource monitoring in InspectorController

This patch makes page reload optional when enabling resource monitoring in InspectorController.

It is really useful for tools to be able to selectively turn on resource tracking without forcing the page to reload, potentially throwing away application state that is relevant to what you were intended to monitor.

This patch does not change the default behavior (inspecting and activating resource monitoring still triggers page load).
Comment 1 Timothy Hatcher 2009-10-22 11:57:02 PDT
Comment on attachment 41673 [details]
Makes page reload optional when enabling resource monitoring in InspectorController

How is this used?

r- since there are tabs in the ChangeLog. Next time, mark patches for review in Bugzilla to get a review.
Comment 2 jaimeyap 2009-10-22 12:01:28 PDT
Created attachment 41675 [details]
re-adds patch that includes link to this bug in ChangeLog
Comment 3 Timothy Hatcher 2009-10-22 12:03:16 PDT
Comment on attachment 41675 [details]
re-adds patch that includes link to this bug in ChangeLog

> +	InspectorController. It leaves the default behavior as performing the reload.
> +	Reload is an optional param so callsites do not have to change.
> +
> +	Bug link: https://bugs.webkit.org/show_bug.cgi?id=30684

Tabs should be spaces. No need for "Bug link: " prefix.
Comment 4 jaimeyap 2009-10-22 12:16:43 PDT
Created attachment 41676 [details]
removes tabs from ChangeLog
Comment 5 Pavel Feldman 2009-10-22 12:20:13 PDT
This might make us end up in a weird state. Why do you need this? If that is for timeline, I'd suggest adding timeline events into the timeline agent and log there ignoring the enabledResourcesTracking flag. This way you decouple from resources.
Comment 6 Pavel Feldman 2009-10-22 12:42:05 PDT
Comment on attachment 41676 [details]
removes tabs from ChangeLog

I have no better solution to that yet...
Comment 7 Timothy Hatcher 2009-10-22 13:12:08 PDT
(In reply to comment #5)
> This might make us end up in a weird state. Why do you need this? If that is
> for timeline, I'd suggest adding timeline events into the timeline agent and
> log there ignoring the enabledResourcesTracking flag. This way you decouple
> from resources.

I agree. If Timeline wants to show resources they should be tracked seperatly (and likely with less info.)
Comment 8 WebKit Commit Bot 2009-10-22 13:19:52 PDT
Comment on attachment 41676 [details]
removes tabs from ChangeLog

Clearing flags on attachment: 41676

Committed r49954: <http://trac.webkit.org/changeset/49954>
Comment 9 WebKit Commit Bot 2009-10-22 13:19:58 PDT
All reviewed patches have been landed.  Closing bug.