WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
170916
Web Inspector: Enabled state of "All Requests" XHR breakpoint not restored correctly
https://bugs.webkit.org/show_bug.cgi?id=170916
Summary
Web Inspector: Enabled state of "All Requests" XHR breakpoint not restored co...
Matt Baker
Reported
2017-04-17 14:26:58 PDT
Summary: Enabled state of "All Requests" XHR breakpoint not restored correctly. After creating the global breakpoint from the setting value, it should be set on the backend if enabled. Right now the breakpoint has to be unchecked/checked for the setting to stick. Steps to Reproduce: 1. Open a page using XHRs 2. Enable the All Requests breakpoint 3. Initiate an XHR => Pause 4. Reload Inspector 5. Initiate an XHR => No pause
Attachments
Patch
(1.60 KB, patch)
2017-04-17 14:28 PDT
,
Matt Baker
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Matt Baker
Comment 1
2017-04-17 14:28:11 PDT
Created
attachment 307299
[details]
Patch
Joseph Pecoraro
Comment 2
2017-04-17 14:30:17 PDT
Comment on
attachment 307299
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=307299&action=review
> Source/WebInspectorUI/UserInterface/Controllers/DOMDebuggerManager.js:71 > + if (!this._allRequestsBreakpoint.disabled) > + this._updateXHRBreakpoint(this._allRequestsBreakpoint);
r- I do not think this makes sense in DOMDebuggerManager. Workers can have "XHR"Breakpoints but they cannot have "DOM"Breakpoints. So I'd expect this in a location that would be compatible with workers.
Joseph Pecoraro
Comment 3
2017-04-17 14:32:14 PDT
Comment on
attachment 307299
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=307299&action=review
>> Source/WebInspectorUI/UserInterface/Controllers/DOMDebuggerManager.js:71 >> + this._updateXHRBreakpoint(this._allRequestsBreakpoint); > > r- I do not think this makes sense in DOMDebuggerManager. > > Workers can have "XHR"Breakpoints but they cannot have "DOM"Breakpoints. So I'd expect this in a location that would be compatible with workers.
Ahh, okay "DOMDebugger" is what holds all of the Web specific breakpoints (DOM, XHR, eventually Event, Timeouts, etc). I was mistaken. r=me
Radar WebKit Bug Importer
Comment 4
2017-04-17 14:35:24 PDT
<
rdar://problem/31666196
>
WebKit Commit Bot
Comment 5
2017-04-17 15:15:47 PDT
Comment on
attachment 307299
[details]
Patch Clearing flags on attachment: 307299 Committed
r215435
: <
http://trac.webkit.org/changeset/215435
>
WebKit Commit Bot
Comment 6
2017-04-17 15:15:49 PDT
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