devegied/ChromeIssue141129

Question) How does the program work?

Opened this issue · 2 comments

@devegied

Hello.

Thank you for identifying the problem as someone who is interested in question 141129.

I have a question while checking the code.
There appears to be no action inside req.getContent other than if(content).
Can you tell me how that part works?

Thank you.

Hi,

To preserve response body in DevTools it is enough to open Response panel of request. If this is done then even after navigation that response body stays available for inspection in DevTools.
This extension uses chrome.devtools.network API to automate this retrieval of response body to DevTools from Chrome networking layer (look at issue comment #8 for more info).
So even with no action in getContent handler response bodies are retrieved to DevTools layer from Chrome networking layer and becomes available for later inspection.
Sadly there are some fast network events described in Imperfections section and even such automation can not retrieve response bodies in case of these events.

@devegied

Thanks a lot.
I was using network capture for debug.
This extension will improve the quality of my development life by 2%.