If you download the HAR file, you’ll see that the nav-timing metrics are all 0. It seems to happen sporadically as I have seen successful IE-11 results from Dulles, VA.
Yeah, I need to take a look at the IE side of the code that collects the post-test DOM metrics to see if there is a race condition or something. I’m pretty sure you’re seeing the same bug.
Pat, I think IE isn’t the only culprit. I have a case with Chrome as well – http://www.webpagetest.org/result/140801_1R_15EA/. The nav-timing events are all 0. I managed to get this on Chrome only after changing the connection type to DSL.
I don’t have a proof, but I think the issue is timing – it seems like the request to collectStats (both on IE’s BHO and Chrome’s extension) are being sent too soon. Is it possible that we are asking the extension to dump these metrics even before the actual event is fired (in this case DOMContentLoaded and OnLoad)?
The good thing however is that, I think we have a consistent reproducible case which is to run it with a dial-up connection.
You’re right. This issue is indeed confined to IE. However, the question still remains, I guess. Is it possible that we are sending the request to dump the nav-timings a tad sooner to IE’s BHO. May be that causes the metrics to be returned as 0 as the corresponding events might not even have fired.
We’re not sending the request sooner, the same code runs the sequencing in both browsers but there’s a chance that there is something timing related with actually running the in-browser JS code because that’s all browser-specific (and a royal pain to do in IE from C++).
I am seeing the same issue on a private instance and with IE 11. It is intermittently reproducible for the sites mlb.com and espn.com.
What is happening on my machine is that for certain sites another BHO is being installed on a second, blank browser window. This occurs shortly before the “collectstats” message is sent, so the BHO attempt to collect stats on the blank window but the window->execScript() call fails. I know this is the 127.0.0.1:8888/blank.html window only by debugging — it is not visible on the agent machine.
A hacky workaround is to not set the global_wpt pointer during install unless global_wpt is NULL. This essentially ignores any BHO install after the first. Since the Wpt destructor already sets global_wpt back to NULL, it will leave everything in a good state to run the next test if all goes well.
However this doesn’t fix the underlying issue that two BHO installs are occurring and I haven’t been able to discover why this is happening.
I just pushed a 193 build of wptdriver that prevents double-hooking in case it happens. Not sure that it will solve all of the cases but it’s worth trying.