RESOLVED FIXED Bug 193158
Web Inspector: Audit: disable breakpoints when running Audit
https://bugs.webkit.org/show_bug.cgi?id=193158
Summary Web Inspector: Audit: disable breakpoints when running Audit
Devin Rousso
Reported 2019-01-04 14:12:52 PST
.
Attachments
Patch (10.53 KB, patch)
2019-01-04 14:19 PST, Devin Rousso
no flags
Patch (18.46 KB, patch)
2019-01-04 16:12 PST, Devin Rousso
no flags
Radar WebKit Bug Importer
Comment 1 2019-01-04 14:13:27 PST
Devin Rousso
Comment 2 2019-01-04 14:19:03 PST
Joseph Pecoraro
Comment 3 2019-01-04 14:38:54 PST
Comment on attachment 358367 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=358367&action=review r=me > Source/WebInspectorUI/ChangeLog:3 > + Web Inspector: Audit: disable breakpoints when running Audit Should we include a test that a `debugger` statement doesn't cause a pause when the audit runs? > Source/WebInspectorUI/UserInterface/Controllers/DebuggerManager.js:1162 > + _handleAuditManagerTestScheduled(event) > + { > + this._startDisablingBreakpointsTemporarily(); > + > + if (this.paused) > + this.resume(); > + } > + > + _handleAuditManagerTestCompleted(event) > + { > + this._stopDisablingBreakpointsTemporarily(); > + } > + We may need start/stop to be counters / enums. Someone could technically attempt to start/stop a Timeline profile during audits and then the debugger would be enabled during any remaining audits.
Devin Rousso
Comment 4 2019-01-04 15:16:22 PST
Comment on attachment 358367 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=358367&action=review >> Source/WebInspectorUI/ChangeLog:3 >> + Web Inspector: Audit: disable breakpoints when running Audit > > Should we include a test that a `debugger` statement doesn't cause a pause when the audit runs? Ooooooo, I like it! >> Source/WebInspectorUI/UserInterface/Controllers/DebuggerManager.js:1162 >> + > > We may need start/stop to be counters / enums. Someone could technically attempt to start/stop a Timeline profile during audits and then the debugger would be enabled during any remaining audits. Another thing I noticed is that we dispatch `WI.AuditManager.Event.TestCompleted` whenever a test result is imported as well, meaning that if we started a Timeline recording and imported an audit result, we'd re-enable breakpoints. That would need to change as well.
Devin Rousso
Comment 5 2019-01-04 16:12:25 PST
WebKit Commit Bot
Comment 6 2019-01-04 16:29:06 PST
Comment on attachment 358391 [details] Patch Clearing flags on attachment: 358391 Committed r239646: <https://trac.webkit.org/changeset/239646>
WebKit Commit Bot
Comment 7 2019-01-04 16:29:08 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.