mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 00:35:44 +00:00
Do setTimeout twice so I don't break tests that do a setTimeout. Followup to bug 369319.
This commit is contained in:
parent
bc6d59da44
commit
006225b9ff
@ -196,7 +196,11 @@ function IFrameToKey()
|
|||||||
|
|
||||||
function OnDocumentLoad()
|
function OnDocumentLoad()
|
||||||
{
|
{
|
||||||
setTimeout(DocumentLoaded, 0);
|
// Since we can't use a bubbling-phase load listener from chrome,
|
||||||
|
// this is a capturing phase listener. So do setTimeout twice, the
|
||||||
|
// first to get us after the onload has fired in the content, and
|
||||||
|
// the second to get us after any setTimeout(foo, 0) in the content.
|
||||||
|
setTimeout(setTimeout, 0, DocumentLoaded, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
function DocumentLoaded()
|
function DocumentLoaded()
|
||||||
|
Loading…
Reference in New Issue
Block a user