Backed out changeset b194f4fb6731 (bug 874533)
authorSebastian Hengst <archaeopteryx@coole-files.de>
Tue, 18 Jul 2017 18:21:40 +0200
changeset 418163 462ef83227d51df19bf541532cfc1f457a097703
parent 418162 004315dd0d8f89ba13536e362a142b3f12042a51
child 418164 6542a177cd648b30394821f1055e548af7b3ae1a
push id7566
push usermtabara@mozilla.com
push dateWed, 02 Aug 2017 08:25:16 +0000
treeherdermozilla-beta@86913f512c3c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs874533
milestone56.0a1
backs outb194f4fb673102e0606b347a4bc19a201657173f
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 b194f4fb6731 (bug 874533)
browser/components/sessionstore/test/browser.ini
browser/components/sessionstore/test/browser_speculative_connect.html
browser/components/sessionstore/test/browser_speculative_connect.js
--- a/browser/components/sessionstore/test/browser.ini
+++ b/browser/components/sessionstore/test/browser.ini
@@ -30,17 +30,16 @@ support-files =
   browser_pageStyle_sample.html
   browser_pageStyle_sample_nested.html
   browser_sessionHistory_slow.sjs
   browser_scrollPositions_sample.html
   browser_scrollPositions_sample2.html
   browser_scrollPositions_sample_frameset.html
   browser_scrollPositions_readerModeArticle.html
   browser_sessionStorage.html
-  browser_speculative_connect.html
   browser_248970_b_sample.html
   browser_339445_sample.html
   browser_423132_sample.html
   browser_447951_sample.html
   browser_454908_sample.html
   browser_456342_sample.xhtml
   browser_463205_sample.html
   browser_463206_sample.html
@@ -259,10 +258,8 @@ skip-if = !e10s # GroupedSHistory is e10
 [browser_closed_objects_changed_notifications_windows.js]
 [browser_duplicate_history.js]
 [browser_tabicon_after_bg_tab_crash.js]
 skip-if = !e10s # Tabs can't crash without e10s
 
 [browser_cookies.js]
 [browser_cookies_legacy.js]
 [browser_cookies_privacy.js]
-[browser_speculative_connect.js]
-
deleted file mode 100644
--- a/browser/components/sessionstore/test/browser_speculative_connect.html
+++ /dev/null
@@ -1,8 +0,0 @@
-<html>
-<header>
-  <title>Dummy html page to test speculative connect</title>
-</header>
-<body>
-  Hello Speculative Connect
-</body>
-</html>
\ No newline at end of file
deleted file mode 100644
--- a/browser/components/sessionstore/test/browser_speculative_connect.js
+++ /dev/null
@@ -1,96 +0,0 @@
-const TEST_URLS = [
-  "about:buildconfig",
-  "http://mochi.test:8888/browser/browser/components/sessionstore/test/browser_speculative_connect.html",
-  ""
-];
-
-/**
- * This will open tabs in browser. This will also make the last tab
- * inserted to be the selected tab.
- */
-async function openTabs(win) {
-  for (let i = 0; i < TEST_URLS.length; ++i) {
-    await BrowserTestUtils.openNewForegroundTab(win.gBrowser, TEST_URLS[i]);
-  }
-};
-
-add_task(async function speculative_connect_restore_on_demand() {
-  Services.prefs.setBoolPref("browser.sessionstore.restore_on_demand", true);
-  is(Services.prefs.getBoolPref("browser.sessionstore.restore_on_demand"), true, "We're restoring on demand");
-  forgetClosedWindows();
-
-  // Open a new window and populate with tabs.
-  let win = await promiseNewWindowLoaded();
-  await openTabs(win);
-
-  // Close the window.
-  await BrowserTestUtils.closeWindow(win);
-
-  // Reopen a window.
-  let newWin = undoCloseWindow(0);
-  // Make sure we wait until this window is restored.
-  await BrowserTestUtils.waitForEvent(newWin, "load");
-  await BrowserTestUtils.waitForEvent(newWin.gBrowser.tabContainer, "SSTabRestored");
-
-  let tabs = newWin.gBrowser.tabs;
-  is(tabs.length, TEST_URLS.length + 1, "Restored right number of tabs");
-
-  let e = new MouseEvent('mouseover');
-
-  // First tab should be ignore, since it's the default blank tab when we open a new window.
-
-  // Trigger a mouse enter on second tab.
-  tabs[1].dispatchEvent(e);
-  is(tabs[1].__test_connection_prepared, false, "Second tab doesn't have a connection prepared");
-  is(tabs[1].__test_connection_url, TEST_URLS[0], "Second tab has correct url");
-
-  // Trigger a mouse enter on third tab.
-  tabs[2].dispatchEvent(e);
-  is(tabs[2].__test_connection_prepared, true, "Third tab has a connection prepared");
-  is(tabs[2].__test_connection_url, TEST_URLS[1], "Third tab has correct url");
-
-  // Last tab is the previously selected tab.
-  tabs[3].dispatchEvent(e);
-  is(tabs[3].__test_connection_prepared, undefined, "Previous selected tab should not have a connection prepared");
-  is(tabs[3].__test_connection_url, undefined, "Previous selected tab should not have a connection prepared");
-
-  await BrowserTestUtils.closeWindow(newWin);
-});
-
-add_task(async function speculative_connect_restore_automatically() {
-  Services.prefs.setBoolPref("browser.sessionstore.restore_on_demand", false);
-  is(Services.prefs.getBoolPref("browser.sessionstore.restore_on_demand"), false, "We're restoring automatically");
-  forgetClosedWindows();
-
-  // Open a new window and populate with tabs.
-  let win = await promiseNewWindowLoaded();
-  await openTabs(win);
-
-  // Close the window.
-  await BrowserTestUtils.closeWindow(win);
-
-  // Reopen a window.
-  let newWin = undoCloseWindow(0);
-  // Make sure we wait until this window is restored.
-  await BrowserTestUtils.waitForEvent(newWin, "load");
-  await BrowserTestUtils.waitForEvent(newWin.gBrowser.tabContainer, "SSTabRestored");
-
-  let tabs = newWin.gBrowser.tabs;
-  is(tabs.length, TEST_URLS.length + 1, "Restored right number of tabs");
-
-  // First tab is ignore, since it's the default tab open when we open new window
-
-  // Second tab.
-  is(tabs[1].__test_connection_prepared, false, "Second tab doesn't have a connection prepared");
-  is(tabs[1].__test_connection_url, TEST_URLS[0], "Second tab has correct host url");
-
-  // Third tab.
-  is(tabs[2].__test_connection_prepared, true, "Third tab has a connection prepared");
-  is(tabs[2].__test_connection_url, TEST_URLS[1], "Third tab has correct host url");
-
-  // Last tab is the previously selected tab.
-  is(tabs[3].__test_connection_prepared, undefined, "Selected tab should not have a connection prepared");
-  is(tabs[3].__test_connection_url, undefined, "Selected tab should not have a connection prepared");
-
-  await BrowserTestUtils.closeWindow(newWin);
-});