Bug 218140

Summary: Web Inspector: URL breakpoints should also pause when HTML attributes that trigger loads are set
Product: WebKit Reporter: Devin Rousso <hi>
Component: Web InspectorAssignee: Devin Rousso <hi>
Status: RESOLVED FIXED    
Severity: Normal CC: bburg, ews-watchlist, hi, inspector-bugzilla-changes, joepeck, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
[Patch] WIP
none
[Patch] WIP none

Description Devin Rousso 2020-10-23 15:28:31 PDT
Right now, URL breakpoints are limited to XHR and fetch.  They should really include anything that can trigger network activity (but realistically we only care about situations where that trigger is some JavaScript code).

```
let image = new Image;
image.src = "foo.png"; // should be able to pause here
```
Comment 1 Devin Rousso 2020-10-23 15:28:49 PDT
<rdar://problem/70636814>
Comment 2 Devin Rousso 2020-10-23 22:26:37 PDT
Created attachment 412231 [details]
[Patch] WIP

first attempt that uses the same instrumentation point as `Network` to pause whenever a request is sent
Comment 3 Devin Rousso 2020-10-23 22:33:11 PDT
Created attachment 412233 [details]
[Patch] WIP

rebase
Comment 4 EWS Watchlist 2020-10-23 22:34:58 PDT
This patch modifies the inspector protocol. Please ensure that any frontend changes appropriately use feature checks for new protocol features.
Comment 5 BJ Burg 2020-10-26 16:54:46 PDT
Comment on attachment 412233 [details]
[Patch] WIP

LGTM so far, looks like the tests need some fixing.
Comment 6 Devin Rousso 2022-09-11 13:28:36 PDT
Pull request: https://github.com/WebKit/WebKit/pull/4239
Comment 7 EWS 2022-09-14 12:47:28 PDT
Committed 254488@main (7ad0216f7c41): <https://commits.webkit.org/254488@main>

Reviewed commits have been landed. Closing PR #4239 and removing active labels.