Bug 76213 - Web Inspector: Disconnecting the front-end does not disable profiling.
Summary: Web Inspector: Disconnecting the front-end does not disable profiling.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-12 14:17 PST by Konrad Piascik
Modified: 2012-01-13 09:43 PST (History)
12 users (show)

See Also:


Attachments
patch (1.87 KB, patch)
2012-01-13 06:17 PST, Konrad Piascik
pfeldman: review-
Details | Formatted Diff | Diff
updated patch (1.68 KB, patch)
2012-01-13 07:11 PST, Konrad Piascik
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Konrad Piascik 2012-01-12 14:17:34 PST
It is possible to disable developer extras without disabling profiling.  This leads to an assertion failure in JSDOMWindowBase.cpp.

ASSERT(enabled || !supportsProfiling(thisObject));

from IRC:
[17:04:06] <olliej> kpiascik: technically the assertion isn't harmful, but it wil mean poor performance and poor memory usage

We should disable profiling when the front-end is detached.
Comment 1 Konrad Piascik 2012-01-13 06:17:26 PST
Created attachment 122420 [details]
patch
Comment 2 Pavel Feldman 2012-01-13 06:54:57 PST
Comment on attachment 122420 [details]
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=122420&action=review

> Source/WebCore/inspector/InspectorController.cpp:236
> +    disableProfiler();

You should call disable() from within InspectorProfilerAgent::clearFrontend() instead.
Comment 3 Konrad Piascik 2012-01-13 07:11:37 PST
Created attachment 122427 [details]
updated patch
Comment 4 WebKit Review Bot 2012-01-13 09:43:30 PST
Comment on attachment 122427 [details]
updated patch

Clearing flags on attachment: 122427

Committed r104945: <http://trac.webkit.org/changeset/104945>
Comment 5 WebKit Review Bot 2012-01-13 09:43:35 PST
All reviewed patches have been landed.  Closing bug.