Finding out the requests from the page with a chrome extension
<p>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..</p>

<p>I've seen the following SO questions; however they are not helpful in this case.</p>

<p><a href="https://stackoverflow.com/questions/4277908/can-a-chrome-extension-monitor-xhr-events-or-other-events-from-the-page-its-r">Can a Chrome extension monitor XHR events (or other events) from the page it&#39;s running against?</a></p>

<p><a href="https://stackoverflow.com/questions/22568457/chrome-extension-identify-web-requests-of-background-page-iframe">Chrome extension: identify web requests of background-page iframe?</a></p>

<p>I've tried the webRequest api and it doesn't seem to be doing what I was expecting as well. To summarize:</p>

<p>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.</p>

<ul>
<li>I can use the DomSubTreeChanged but it's not really what I'm looking for, the calls might not alter the UI.</li>
</ul>