Bug 1332783 - Null out privateWin and testBrowser. r=ehsan, a=test-only
authorMichael Layzell <michael@thelayzells.com>
Thu, 09 Feb 2017 11:07:11 -0500
changeset 376510 2849745ef5cdd537d943c7d775366122eb9403e9
parent 376509 59871db49bcdfe5c9586ff9cc644fb0126b47daa
child 376511 136a88ba8ecbad268fcb8bec294749844710b847
push id6996
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 20:48:21 +0000
treeherdermozilla-beta@d89512dab048 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersehsan, test-only
bugs1332783
milestone53.0a2
Bug 1332783 - Null out privateWin and testBrowser. r=ehsan, a=test-only MozReview-Commit-ID: KVi1okXUqGV
dom/html/test/browser_bug1108547.js
--- a/dom/html/test/browser_bug1108547.js
+++ b/dom/html/test/browser_bug1108547.js
@@ -100,11 +100,14 @@ function runPass(getterFile, finishedCal
   function onNewTabLoaded2(result) {
     // Now, ensure that the normal tab doesn't have access to the cookie set in private mode.
     is(result, "", "Shouldn't have access to the cookies");
 
     // Remove both of the tabs opened here.
     gBrowser.removeCurrentTab();
     gBrowser.removeCurrentTab();
 
+    privateWin = null;
+    testBrowser = null;
+
     finishedCallback();
   }
 }