Backed out changeset a84ec98ccaab (bug 1151421)
authorSebastian Hengst <archaeopteryx@coole-files.de>
Tue, 14 Mar 2017 18:45:06 +0100
changeset 395680 486692b1d1792d304deeb10ca2d657cba790aa9c
parent 395679 5d32870dc04459028f304c107900efcf88f0aff4
child 395681 0bf31f0819dc20a0736803b814d4f88f95609031
push id7391
push usermtabara@mozilla.com
push dateMon, 12 Jun 2017 13:08:53 +0000
treeherdermozilla-beta@2191d7f87e2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1151421
milestone55.0a1
backs outa84ec98ccaabd854a38d9d33b632b39f500ef7e8
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Backed out changeset a84ec98ccaab (bug 1151421)
docshell/test/file_bug1151421.html
docshell/test/mochitest.ini
docshell/test/test_bug1151421.html
deleted file mode 100644
--- a/docshell/test/file_bug1151421.html
+++ /dev/null
@@ -1,19 +0,0 @@
-<html>
-<head>
-<style>
-body, html {
-    height: 100%;
-}
-.spacer {
-    height: 80%;
-}
-</style>
-</head>
-<body onload='(parent || opener).childLoad()'>
-
-<div class="spacer"></div>
-<div id="content">content</div>
-<div class="spacer"></div>
-
-</body>
-</html>
--- a/docshell/test/mochitest.ini
+++ b/docshell/test/mochitest.ini
@@ -28,17 +28,16 @@ support-files =
   file_bug653741.html
   file_bug660404
   file_bug660404^headers^
   file_bug662170.html
   file_bug669671.sjs
   file_bug680257.html
   file_bug703855.html
   file_bug728939.html
-  file_bug1151421.html
   file_pushState_after_document_open.html
   historyframes.html
 
 [test_anchor_scroll_after_document_open.html]
 [test_bfcache_plus_hash.html]
 [test_bug123696.html]
 [test_bug369814.html]
 [test_bug384014.html]
@@ -82,17 +81,16 @@ support-files = file_bug668513.html
 [test_bug691547.html]
 [test_bug694612.html]
 [test_bug703855.html]
 [test_bug713825.html]
 [test_bug728939.html]
 [test_bug797909.html]
 [test_bug1045096.html]
 [test_bug1121701.html]
-[test_bug1151421.html]
 [test_bug1186774.html]
 [test_forceinheritprincipal_overrule_owner.html]
 [test_framedhistoryframes.html]
 skip-if = toolkit == 'android' # bug 784321
 support-files = file_framedhistoryframes.html
 [test_pushState_after_document_open.html]
 [test_windowedhistoryframes.html]
 [test_triggeringprincipal_location_seturi.html]
deleted file mode 100644
--- a/docshell/test/test_bug1151421.html
+++ /dev/null
@@ -1,61 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<!--
-https://bugzilla.mozilla.org/show_bug.cgi?id=1151421
--->
-<head>
-  <title>Test for Bug 1151421</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=1151421">Mozilla Bug 1151421</a>
-
-<script type="application/javascript">
-
-/** Test for Bug 1151421 **/
-SimpleTest.waitForExplicitFinish();
-
-function childLoad() {
-  // Spin the event loop so we leave the onload handler.
-  SimpleTest.executeSoon(childLoad2);
-}
-
-function childLoad2() {
-  let cw = iframe.contentWindow;
-  let content = cw.document.getElementById("content");
-
-  // Create a function to calculate an invariant.
-  let topPlusOffset = function()
-  {
-    return (content.getBoundingClientRect().top + cw.pageYOffset);
-  }
-
-  let initialTPO = topPlusOffset();
-
-  // Scroll the iframe to various positions, and check the TPO.
-  // Scrolling down to the bottom will adjust the page offset by a fractional amount.
-  let positions = [-100, 0, 1.5, 1000, 10000000];
-
-  // Run some tests with scrollTo() and ensure we have the same invariant after scrolling.
-  positions.forEach(function(pos) {
-    cw.scrollTo(0, pos);
-    is(topPlusOffset(), initialTPO, 'top plus offset should remain invariant across scrolling.');
-  });
-
-  positions.reverse().forEach(function(pos) {
-    cw.scrollTo(0, pos);
-    is(topPlusOffset(), initialTPO, '(reverse) top plus offset should remain invariant across scrolling.');
-  });
-
-  SimpleTest.finish();
-}
-
-</script>
-
-<!-- When the iframe loads, it calls childLoad(). -->
-<br>
-<iframe height='100px' id='iframe' src='file_bug1151421.html'></iframe>
-
-</body>
-</html>