Bug 66367
| Summary: | Web Inspector: Would be great to have a possibility to suspend XHR requests | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Kirill Maximov <kir> |
| Component: | Web Inspector (Deprecated) | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED WONTFIX | ||
| Severity: | Normal | CC: | apavlov, bweinstein, joepeck, keishi, loislo, pfeldman, pmuellr, rik, timothy, yurys |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | All | ||
| OS: | All | ||
Kirill Maximov
When I'm trying to inspect page elements, I don't want it to be updated due to some XHR requests in background.
When the page fragment is refreshed due to AJAX update, the selection jumps to the closest non-modified element of DOM. And this is really inconvenient.
The request is to add a kind of "Suspend XHR requests until page reload" button somewhere on the Network panel.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Pavel Feldman
XHRs are initiated by the page itself, so it is strange that you want to suspend them. There are several workarounds for the scenario you are describing:
1. If you can author the page, remove XHR calls, otherwise
2. re-define XHR's send/open methods or XHR class as a whole in console or
3. live edit to mute / comment call sites or
4. Add an XHR breakpoint with the .* mask
Feel free to reopen if I missed the purpose of this request.
Kirill Maximov
XHR breakpoint does the trick, thanks!