Ignore load events for subframes. More followup to bug 369319.

This commit is contained in:
dbaron%dbaron.org 2007-02-13 00:34:58 +00:00
Родитель 0a42ffc9a3
Коммит 9267a8dfa5
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -194,8 +194,12 @@ function IFrameToKey()
return gCanvas.toDataURL();
}
function OnDocumentLoad()
function OnDocumentLoad(event)
{
if (event.target != gBrowser.contentDocument)
// Ignore load events for subframes.
return;
// 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