Bug 798345 - Fix the comm-central perma-orange introduced by bug 794606; r=jdm
authorEhsan Akhgari <ehsan@mozilla.com>
Fri, 05 Oct 2012 11:12:15 -0400
changeset 109379 b41fe9617b577f5761c5232adcb73ba51cc8cc67
parent 109378 739aff49b8bb7ab8971c874c8212f5d62a8bcd45
child 109380 1a0c29c18fa77e1caaa58a314be342f84df9a549
push id16001
push usereakhgari@mozilla.com
push dateFri, 05 Oct 2012 15:12:22 +0000
treeherdermozilla-inbound@b41fe9617b57 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjdm
bugs798345, 794606
milestone18.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 798345 - Fix the comm-central perma-orange introduced by bug 794606; r=jdm
toolkit/components/downloads/test/unit/test_private_resume.js
--- a/toolkit/components/downloads/test/unit/test_private_resume.js
+++ b/toolkit/components/downloads/test/unit/test_private_resume.js
@@ -11,16 +11,21 @@ this.__defineGetter__("pb", function () 
   return this.pb = null;
 });
 
 // Public request gets times=0 cookie, completes
 // Private request gets times=1 cookie, canceled
 // Private resumed request sends times=1 cookie, completes
 
 function run_test() {
+  // Don't run the test where the PB service is not available
+  if (!pb) {
+    return;
+  }
+
   do_test_pending();
   let httpserv = new HttpServer();
 
   Services.prefs.setBoolPref("browser.privatebrowsing.keep_current_session", true);
 
   let times = 0;
   httpserv.registerPathHandler("/head_download_manager.js", function (meta, response) {
     response.setHeader("Content-Type", "text/plain", false);