Changeset 186561 in webkit
- Timestamp:
- Jul 8, 2015, 6:14:03 PM (10 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r186540 r186561 1 2015-07-08 Timothy Hatcher <timothy@apple.com> 2 3 Web Inspector: Only record a timeline when the Timelines tab is showing 4 https://bugs.webkit.org/show_bug.cgi?id=146759 5 6 Reviewed by Joseph Pecoraro. 7 8 * UserInterface/Controllers/TimelineManager.js: 9 (WebInspector.TimelineManager.prototype.get autoCaptureOnPageLoad): 10 (WebInspector.TimelineManager.prototype.set autoCaptureOnPageLoad): 11 (WebInspector.TimelineManager.prototype._startAutoCapturing): 12 * UserInterface/Views/TimelineTabContentView.js: 13 (WebInspector.TimelineTabContentView.prototype.shown): 14 (WebInspector.TimelineTabContentView.prototype.hidden): 15 1 16 2015-07-08 Timothy Hatcher <timothy@apple.com> 2 17 -
trunk/Source/WebInspectorUI/UserInterface/Controllers/TimelineManager.js
r186368 r186561 75 75 } 76 76 77 get autoCaptureOnPageLoad() 78 { 79 return this._autoCaptureOnPageLoad; 80 } 81 82 set autoCaptureOnPageLoad(autoCapture) 83 { 84 this._autoCaptureOnPageLoad = autoCapture; 85 } 86 77 87 isCapturing() 78 88 { … … 505 515 _startAutoCapturing(event) 506 516 { 517 if (!this._autoCaptureOnPageLoad) 518 return false; 519 507 520 if (!event.target.isMainFrame() || (this._isCapturing && !this._autoCapturingMainResource)) 508 521 return false; -
trunk/Source/WebInspectorUI/UserInterface/Views/TimelineTabContentView.js
r183764 r186561 43 43 }, 44 44 45 shown: function() 46 { 47 WebInspector.ContentBrowserTabContentView.prototype.shown.call(this); 48 49 WebInspector.timelineManager.autoCaptureOnPageLoad = true; 50 }, 51 52 hidden: function() 53 { 54 WebInspector.ContentBrowserTabContentView.prototype.hidden.call(this); 55 56 WebInspector.timelineManager.autoCaptureOnPageLoad = false; 57 }, 58 45 59 canShowRepresentedObject: function(representedObject) 46 60 {
Note:
See TracChangeset
for help on using the changeset viewer.