Bug 960903 - Fix browser_bug817947.js test failure on a CLOSED TREE
authorTim Taubert <ttaubert@mozilla.com>
Fri, 24 Jan 2014 21:09:47 +0100
changeset 181135 166b7998065e295f4abf9f00bfc387291cfa1975
parent 181134 e0cd2d1ff7b79cabb7f31beedc4c1afc7e629146
child 181136 a12c7d7ac590402510356d33fc6acd4f5e9c1b1a
push id3343
push userffxbld
push dateMon, 17 Mar 2014 21:55:32 +0000
treeherdermozilla-beta@2f7d3415f79f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs960903, 817947
milestone29.0a1
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
Bug 960903 - Fix browser_bug817947.js test failure on a CLOSED TREE From b68e6edbb3836e79f7dcd6635b0a9327df76c89f Mon Sep 17 00:00:00 2001
browser/base/content/test/general/browser_bug817947.js
--- a/browser/base/content/test/general/browser_bug817947.js
+++ b/browser/base/content/test/general/browser_bug817947.js
@@ -29,22 +29,22 @@ function test() {
     });
   });
 }
 
 function preparePendingTab(aCallback) {
   let tab = gBrowser.addTab(URL);
 
   whenLoaded(tab.linkedBrowser, function () {
-    let state = SessionStore.getTabState(tab);
     gBrowser.removeTab(tab);
+    let [{state}] = JSON.parse(SessionStore.getClosedTabData(window));
 
     tab = gBrowser.addTab("about:blank");
     whenLoaded(tab.linkedBrowser, function () {
-      SessionStore.setTabState(tab, state);
+      SessionStore.setTabState(tab, JSON.stringify(state));
       ok(tab.hasAttribute("pending"), "tab should be pending");
       aCallback(tab);
     });
   });
 }
 
 function whenLoaded(aElement, aCallback) {
   aElement.addEventListener("load", function onLoad() {