I'm looking to identify the network calls made by a page with a chrome extension. These calls may include XHR requests, iframe document loads etc..
I've seen the following SO questions; however they are not helpful in this case.
Can a Chrome extension monitor XHR events (or other events) from the page it's running against?
Chrome extension: identify web requests of background-page iframe?
I've tried the webRequest api and it doesn't seem to be doing what I was expecting as well. To summarize:
If I'm loading page A; and page A makes an async request to url B, and loads an iframe from url C, I want to be able to retrieve B and C. I already have page A tracked with DomContentLoaded event.
- I can use the DomSubTreeChanged but it's not really what I'm looking for, the calls might not alter the UI.