Bug 900784 part 1.5 - Encode JS bytecode when no more scripts are executed. r=mrbkap
This commit is contained in:
@@ -1082,6 +1082,12 @@ nsDocumentViewer::LoadComplete(nsresult aStatus)
|
||||
}
|
||||
}
|
||||
|
||||
// Release the JS bytecode cache from its wait on the load event, and
|
||||
// potentially dispatch the encoding of the bytecode.
|
||||
if (mDocument && mDocument->ScriptLoader()) {
|
||||
mDocument->ScriptLoader()->LoadEventFired();
|
||||
}
|
||||
|
||||
nsJSContext::LoadEnd();
|
||||
|
||||
// It's probably a good idea to GC soon since we have finished loading.
|
||||
|
||||
Reference in New Issue
Block a user