Bug 822480 - Add in the Resource Timing API. r=honzab, r=jst
This commit is contained in:
@@ -6818,14 +6818,6 @@ nsDocShell::OnRedirectStateChange(nsIChannel* aOldChannel,
|
||||
}
|
||||
}
|
||||
|
||||
// On session restore we get a redirect from page to itself. Don't count it.
|
||||
bool equals = false;
|
||||
if (mTiming &&
|
||||
!(mLoadType == LOAD_HISTORY &&
|
||||
NS_SUCCEEDED(newURI->Equals(oldURI, &equals)) && equals)) {
|
||||
mTiming->NotifyRedirect(oldURI, newURI);
|
||||
}
|
||||
|
||||
// Below a URI visit is saved (see AddURIVisit method doc).
|
||||
// The visit chain looks something like:
|
||||
// ...
|
||||
@@ -10033,6 +10025,9 @@ nsDocShell::DoURILoad(nsIURI * aURI,
|
||||
nsCOMPtr<nsITimedChannel> timedChannel(do_QueryInterface(channel));
|
||||
if (timedChannel) {
|
||||
timedChannel->SetTimingEnabled(true);
|
||||
if (IsFrame()) {
|
||||
timedChannel->SetInitiatorType(NS_LITERAL_STRING("subdocument"));
|
||||
}
|
||||
}
|
||||
|
||||
rv = DoChannelLoad(channel, uriLoader, aBypassClassifier);
|
||||
|
||||
Reference in New Issue
Block a user