WebPagetest Forums
Logic for intercepting the requests and responses in Firefox Addon - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: Web Performance (/forumdisplay.php?fid=3)
+--- Forum: Testing Tools/Services (/forumdisplay.php?fid=6)
+--- Thread: Logic for intercepting the requests and responses in Firefox Addon (/showthread.php?tid=11976)



Logic for intercepting the requests and responses in Firefox Addon - Jigar - 01-11-2013 05:44 PM

Hi,

There is a Firefox addon in the profile directory agents/templates/Firefox.
Where is the logic for calculating Time to first byte, content Download, Server IP etc for embedded content.

I see that nsIWebProgressListener has been used but I am not able to find the code for calculating above.

Thanks.


RE: Logic for intercepting the requests and responses in Firefox Addon - pmeenan - 01-12-2013 12:58 AM

Moved out of the WPT Monitor area...

The timings are not recorded from the extension. The extensions are only used to drive the browser navigation, interact with the DOM and get notifications when the page load is complete.

The core of webpagetest's logic is in wpthook.dll which is injected into the browser process and intercepts the networking API calls.


RE: Logic for intercepting the requests and responses in Firefox Addon - Jigar - 01-12-2013 08:01 PM

Thanks Patrick.