mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backout bug 851445 for test failure
--HG-- extra : rebase_source : 3314e6679f15134324d5de09334be14e17aa0790
This commit is contained in:
parent
9c134ee172
commit
d9afc6d714
@ -147,8 +147,6 @@ MOCHITEST_FILES = \
|
||||
file_bug842853.html \
|
||||
test_bug849219.html \
|
||||
test_bug851485.html \
|
||||
test_bug851445.html \
|
||||
bug851445_helper.html \
|
||||
$(NULL)
|
||||
|
||||
# Tests for bugs 441782, 467672 and 570378 don't pass reliably on Windows, because of bug 469208
|
||||
|
@ -1,11 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body style="height:1000px">
|
||||
<script>
|
||||
var docElement = document.documentElement;
|
||||
docElement.style.display = 'none';
|
||||
docElement.offsetTop;
|
||||
docElement.style.display = '';
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
@ -1,34 +0,0 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<!--
|
||||
https://bugzilla.mozilla.org/show_bug.cgi?id=851445
|
||||
-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Test for Bug 851445</title>
|
||||
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
|
||||
</head>
|
||||
<body>
|
||||
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=851445">Mozilla Bug 851445</a>
|
||||
<p id="display"></p>
|
||||
<iframe id="f" style="width:400px; height:400px;"></iframe>
|
||||
<script>
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
|
||||
function handleLoad() {
|
||||
f.contentWindow.scrollTo(0,100);
|
||||
function handleLoad2() {
|
||||
// Verify that the scroll position was retained
|
||||
is(f.contentWindow.scrollY, 100);
|
||||
SimpleTest.finish();
|
||||
}
|
||||
f.onload = handleLoad2;
|
||||
f.contentWindow.location.reload();
|
||||
}
|
||||
|
||||
f.src = "bug851445_helper.html?" + Math.random();
|
||||
f.onload = handleLoad;
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
@ -3888,12 +3888,7 @@ nsGfxScrollFrameInner::SaveState()
|
||||
}
|
||||
|
||||
nsPresState* state = new nsPresState();
|
||||
// Save mRestorePos instead of our actual current scroll position, if it's
|
||||
// valid. This ensures if a reframe occurs while we're in the process
|
||||
// of loading content to scroll to a restored position, we'll keep trying
|
||||
// after the reframe.
|
||||
nsPoint pt = mRestorePos.y == -1 ? GetLogicalScrollPosition() : mRestorePos;
|
||||
state->SetScrollState(pt);
|
||||
state->SetScrollState(GetLogicalScrollPosition());
|
||||
return state;
|
||||
}
|
||||
|
||||
@ -3901,6 +3896,8 @@ void
|
||||
nsGfxScrollFrameInner::RestoreState(nsPresState* aState)
|
||||
{
|
||||
mRestorePos = aState->GetScrollState();
|
||||
mLastPos.x = -1;
|
||||
mLastPos.y = -1;
|
||||
mDidHistoryRestore = true;
|
||||
mLastPos = mScrolledFrame ? GetLogicalScrollPosition() : nsPoint(0,0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user