Bug 1715321 - [profiler, netwerk] Reorder some parameters of profiler_add_network_marker r=necko-reviewers,gerald,valentin
This moves optional redirect-related parameters to the end, so that it's easier to use in non-redirect cases. Differential Revision: https://phabricator.services.mozilla.com/D117680
This commit is contained in:
@@ -622,7 +622,7 @@ InterceptedHttpChannel::ResetInterception(void) {
|
||||
mURI, requestMethod, priority, mChannelId,
|
||||
NetworkLoadType::LOAD_REDIRECT, mAsyncOpenTime, TimeStamp::Now(), size,
|
||||
kCacheUnknown, mLoadInfo->GetInnerWindowID(), &mTransactionTimings,
|
||||
mURI, std::move(mSource), Some(nsDependentCString(contentType.get())));
|
||||
std::move(mSource), Some(nsDependentCString(contentType.get())), mURI);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -1121,8 +1121,8 @@ InterceptedHttpChannel::OnStopRequest(nsIRequest* aRequest, nsresult aStatus) {
|
||||
profiler_add_network_marker(
|
||||
mURI, requestMethod, priority, mChannelId, NetworkLoadType::LOAD_STOP,
|
||||
mAsyncOpenTime, TimeStamp::Now(), size, kCacheUnknown,
|
||||
mLoadInfo->GetInnerWindowID(), &mTransactionTimings, nullptr,
|
||||
std::move(mSource), Some(nsDependentCString(contentType.get())));
|
||||
mLoadInfo->GetInnerWindowID(), &mTransactionTimings, std::move(mSource),
|
||||
Some(nsDependentCString(contentType.get())));
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user