fix what seems to be a typo in browser_394759_privatebrowsing.js
authorDão Gottwald <dao@mozilla.com>
Thu, 23 Apr 2009 12:00:40 +0200
changeset 27672 f9e5c69f3a93feb6a30adb76aefca1aa9877efd0
parent 27671 207f0f6317771d6587829e152aa5e54232070cb9
child 27673 37ab6b8906371cddeae167c0c4b37d0720923067
push id6684
push userdgottwald@mozilla.com
push dateThu, 23 Apr 2009 10:01:02 +0000
treeherdermozilla-central@f9e5c69f3a93 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
milestone1.9.2a1pre
fix what seems to be a typo in browser_394759_privatebrowsing.js
browser/components/sessionstore/test/browser/browser_394759_privatebrowsing.js
--- a/browser/components/sessionstore/test/browser/browser_394759_privatebrowsing.js
+++ b/browser/components/sessionstore/test/browser/browser_394759_privatebrowsing.js
@@ -119,20 +119,20 @@ function test() {
         is(ss.getClosedWindowData(), "[]",
            "Recently Closed Windows data is cleared when entering Private Browsing");
 
         // open another window in PB
         let pbWin = openDialog(location, "_blank", "chrome,all,dialog=no", testURL_B);
         pbWin.addEventListener("load", function(aEvent) {
           pbWin.gBrowser.addEventListener("load", function(aEvent) {
             executeSoon(function() {
-              gBrowser.removeEventListener("load", arguments.callee, true);
+              pbWin.gBrowser.removeEventListener("load", arguments.callee, true);
 
               // Add another tab, though it's not strictly needed
-              gBrowser.addTab();
+              pbWin.gBrowser.addTab();
 
               // mark the window with some unique data to be restored later on
               ss.setWindowValue(pbWin, uniqueKey_B, uniqueValue_B);
 
               pbWin.close();
 
               // ensure we added window to undo list
               let data = JSON.parse(ss.getClosedWindowData())[0];