WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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
Details
Formatted Diff
Diff
Patch
(18.46 KB, patch)
2019-01-04 16:12 PST
,
Devin Rousso
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2019-01-04 14:13:27 PST
<
rdar://problem/47057083
>
Devin Rousso
Comment 2
2019-01-04 14:19:03 PST
Created
attachment 358367
[details]
Patch
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
Created
attachment 358391
[details]
Patch
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.
Top of Page
Format For Printing
XML
Clone This Bug