Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

navtiming fallbacks for firefox bug 691547 #30

Merged
merged 1 commit into from

2 participants

@bluesmoon

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

@marcelduran marcelduran merged commit 43b2e27 into yahoo:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 31, 2012
  1. @bluesmoon
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 0 deletions.
  1. +5 −0 boomerang.js
View
5 boomerang.js
@@ -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.