Bug 1368675 - Add multiple heuristics to trigger the JS bytecode cache encoding. r=mrbkap
This commit is contained in:
@@ -363,7 +363,7 @@ ScriptLoadHandler::OnStreamComplete(nsIIncrementalStreamLoader* aLoader,
|
||||
// Everything went well, keep the CacheInfoChannel alive such that we can
|
||||
// later save the bytecode on the cache entry.
|
||||
if (NS_SUCCEEDED(rv) && mRequest->IsSource() &&
|
||||
ScriptLoader::IsBytecodeCacheEnabled()) {
|
||||
nsContentUtils::IsBytecodeCacheEnabled()) {
|
||||
mRequest->mCacheInfo = do_QueryInterface(channelRequest);
|
||||
LOG(("ScriptLoadRequest (%p): nsICacheInfoChannel = %p",
|
||||
mRequest.get(), mRequest->mCacheInfo.get()));
|
||||
|
||||
Reference in New Issue
Block a user