From 09b27eb5fffd843cdfffcdfd1f5d77d3f20acadd Mon Sep 17 00:00:00 2001 From: "Nicolas B. Pierron" Date: Thu, 29 Jun 2017 00:48:55 +0000 Subject: [PATCH] Bug 1376634 - Fix telemetry reports to report cacheable scripts instead of only small scripts. r=mrbkap --- dom/script/ScriptLoader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom/script/ScriptLoader.cpp b/dom/script/ScriptLoader.cpp index 4b207022d52b..9a637f0a872f 100644 --- a/dom/script/ScriptLoader.cpp +++ b/dom/script/ScriptLoader.cpp @@ -2161,7 +2161,7 @@ ScriptLoader::EvaluateScript(ScriptLoadRequest* aRequest) TimeStamp start; if (Telemetry::CanRecordExtended()) { // Only record telemetry for scripts which are above the threshold. - if (aRequest->mCacheInfo && aRequest->mScriptText.length() < 1024) { + if (aRequest->mCacheInfo && aRequest->mScriptText.length() >= 1024) { start = TimeStamp::Now(); } }