Bug 1719449 - Store fragment URL after we're sure we've scrolled. r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D119582
This commit is contained in:
Matt Woodrow 2021-07-13 22:11:24 +00:00
Родитель d46be492d2
Коммит 677adecb5d
1 изменённых файлов: 4 добавлений и 4 удалений

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

@ -62,15 +62,15 @@
waitForNextPaint(nextTest);
yield undefined;
// Store the fragment url for later comparison.
var fragmentUrl = TestWindow.getBrowser().currentURI.spec;
var fragDocLocation = TestWindow.getDocument().location.href;
// Verify we're no longer at the top of the page.
waitForTrue(function() {
return TestWindow.getWindow().scrollY > 0;
}, nextTest, 20);
yield undefined;
// Store the fragment url for later comparison.
var fragmentUrl = TestWindow.getBrowser().currentURI.spec;
var fragDocLocation = TestWindow.getDocument().location.href;
// Now navigate to any other page
var expectedPageTitle = "bug360511 case " + i;