--
You received this message because you are subscribed to the Google Groups "Google Chrome Developer Tools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-develo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-chrome-developer-tools/912e0db3-d286-46df-82ae-3daf1f0acf3f%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Hi Abha,chrome.devtools.network.getHAR() does not honor the state of Preserve Log upon Navigation button and will only return the log for the last page. This is the intended behavior, and the rationale is that we don't want extension behavior to depend on the user's configuration in this case. You can, however, obtain the entire list of resources by subscribing to chrome.devtools.network.onRequestFinished event -- you will get a HAR entry for each request. You will still need to call getHAR() first to get the requests that finished loading before your extension was loaded.Best regards,Andrey.
On Wed, Dec 18, 2013 at 12:17 PM, ak2614 <abha.k...@gmail.com> wrote:
I am developing a DevTools extension that needs to process the network requests made in the browser over multiple pages using the HAR data available through DevTools.On enabling "Preserve Log Upon Navigation" and browsing multiple pages, the HAR exported by the Network tab using "Copy all as HAR" has multiple "pages" and entries corresponding to all the pages navigated to (everything that is listed in the Network tab). I've got already some got some code that processes it. However, the HAR returned by chrome.devtools.network.getHAR() only has data for the last page opened, regardless of how many individual pages have been listed in the Network tab.The docs also suggest that the HAR should match what's in the Network tab. Are there some restrictions to this or could this be a bug?There may be alternatives like the chrome.webRequest API or maybe using the onRequestFinished network event to track requests. But sticking to DevTools ties in well with the extension's purpose and getHAR() should have all that's required in one place.Thanks!
--
You received this message because you are subscribed to the Google Groups "Google Chrome Developer Tools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-developer-tools+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-develo...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/google-chrome-developer-tools/94600ad8-f861-4e89-acdf-9a6b4beb4f5d%40googlegroups.com.