Title: [185349] trunk/Source/WebInspectorUI
Revision
185349
Author
[email protected]
Date
2015-06-08 20:03:21 -0700 (Mon, 08 Jun 2015)

Log Message

Web Inspector: Clearing active Timeline recording should stop capturing
https://bugs.webkit.org/show_bug.cgi?id=145767

Reviewed by Joseph Pecoraro.

* UserInterface/Views/TimelineRecordingContentView.js:
(WebInspector.TimelineRecordingContentView.prototype._clearTimeline):
Stop capturing if necessary.

Modified Paths

Diff

Modified: trunk/Source/WebInspectorUI/ChangeLog (185348 => 185349)


--- trunk/Source/WebInspectorUI/ChangeLog	2015-06-09 02:59:54 UTC (rev 185348)
+++ trunk/Source/WebInspectorUI/ChangeLog	2015-06-09 03:03:21 UTC (rev 185349)
@@ -1,3 +1,14 @@
+2015-06-08  Matt Baker  <[email protected]>
+
+        Web Inspector: Clearing active Timeline recording should stop capturing
+        https://bugs.webkit.org/show_bug.cgi?id=145767
+
+        Reviewed by Joseph Pecoraro.
+
+        * UserInterface/Views/TimelineRecordingContentView.js:
+        (WebInspector.TimelineRecordingContentView.prototype._clearTimeline):
+        Stop capturing if necessary.
+
 2015-06-07  Tobias Reiss  <[email protected]>
 
         Web Inspector: Add PrettyPrinter CSSRule tests

Modified: trunk/Source/WebInspectorUI/UserInterface/Views/TimelineRecordingContentView.js (185348 => 185349)


--- trunk/Source/WebInspectorUI/UserInterface/Views/TimelineRecordingContentView.js	2015-06-09 02:59:54 UTC (rev 185348)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/TimelineRecordingContentView.js	2015-06-09 03:03:21 UTC (rev 185349)
@@ -530,6 +530,9 @@
 
     _clearTimeline: function(event)
     {
+        if (WebInspector.timelineManager.activeRecording === this._recording && WebInspector.timelineManager.isCapturing())
+            WebInspector.timelineManager.stopCapturing();
+
         this._recording.reset();
     },
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to