Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

navtiming fallbacks for firefox bug 691547 #30

Merged
merged 1 commit into from Jan 31, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions boomerang.js
Expand Up @@ -538,6 +538,11 @@ var impl = {
BOOMR.addVar("rt.start", "navigation");
this.navigationStart = ti.navigationStart || undefined;
this.responseStart = ti.responseStart || undefined;

// bug in Firefox 7 & 8 https://bugzilla.mozilla.org/show_bug.cgi?id=691547
if(navigator.userAgent.match(/Firefox\/[78]\./)) {
this.navigationStart = ti.unloadEventStart || ti.fetchStart || undefined;
}
}
else {
BOOMR.warn("This browser doesn't support the WebTiming API", "rt");
Expand Down