Bug 1609475 - Expand on the comment about special behaviour in docshell/test/navigation/file_bug1609475.html, r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D64426

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Anny Gakhokidze 2020-02-26 21:39:42 +00:00
Родитель 3cfeb5574f
Коммит 29dd301b29
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -30,7 +30,8 @@
// Replace load listener to catch page loads from the session history.
ifr.onload = loadListener;
// Need to use setTimeout, because triggering loads inside
// load event listener has special behavior.
// load event listener has special behavior since at the moment
// the docshell keeps track of whether it is executing a load handler or not.
setTimeout(resolve);
}
ifr.contentWindow.location.href = "frame2.html";