зеркало из https://github.com/mozilla/gecko-dev.git
Ignore load events for subframes. More followup to bug 369319.
This commit is contained in:
Родитель
0a42ffc9a3
Коммит
9267a8dfa5
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче