Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

navtiming fallbacks for firefox bug 691547 #30

Merged
merged 1 commit into from

2 participants

Philip Tellis Marcel Duran
Philip Tellis

fallback to using unloadEventStart or fetchStart in firefox 7 and 8 to counter bug 691547.

Marcel Duran marcelduran merged commit 43b2e27 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 31, 2012
  1. Philip Tellis
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 0 deletions.
  1. +5 −0 boomerang.js
5 boomerang.js
View
@@ -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");
Something went wrong with that request. Please try again.