Revert the debugging patches for bug 968200
authorEhsan Akhgari <ehsan@mozilla.com>
Wed, 12 Mar 2014 09:51:00 -0400
changeset 191419 5ef71c50623d50aaa6c869b0f6fbdd30d7a619d2
parent 191418 e9bf2f094cb233295ce0deb41a1dce730a058b5d
child 191420 5e03967817fab89135cf9f92d768bf50675357bc
push id474
push userasasaki@mozilla.com
push dateMon, 02 Jun 2014 21:01:02 +0000
treeherdermozilla-release@967f4cf1b31c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs968200
milestone30.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
Revert the debugging patches for bug 968200
uriloader/exthandler/tests/mochitest/test_unsafeBidiChars.xhtml
--- a/uriloader/exthandler/tests/mochitest/test_unsafeBidiChars.xhtml
+++ b/uriloader/exthandler/tests/mochitest/test_unsafeBidiChars.xhtml
@@ -43,32 +43,26 @@ function make_test(param, expected) {
     param: param,
     expected: expected,
   });
 }
 
 SimpleTest.waitForExplicitFinish();
 
 function load() {
-  info("Started the load handler");
   var iframe = document.getElementById("test");
   var gCallback = null;
   function run_test(test, cb) {
     var url = "unsafeBidiFileName.sjs?name=" + encodeURIComponent(test.param);
-    info("Loading test " + gCounter + " (" + test.param + ") from " + url);
-    iframe.onload = function() {
-      ok(false, "Received an unexpected load event from the iframe");
-    };
     gCallback = cb;
     iframe.src = url;
   }
 
   var gCounter = -1;
   function run_next_test() {
-    info("run_next_test called, gCounter = " + gCounter);
     if (++gCounter == gTests.length)
       finish_test();
     else
       run_test(gTests[gCounter], run_next_test);
   }
 
   netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
 
@@ -79,56 +73,50 @@ function load() {
     getService(SpecialPowers.Ci.nsIUUIDGenerator).generateUUID();
 
   function HelperAppLauncherDialog() {}
   HelperAppLauncherDialog.prototype = {
     REASON_CANTHANDLE: 0,
     REASON_SERVERREQUEST: 1,
     REASON_TYPESNIFFED: 2,
     show: function(aLauncher, aWindowContext, aReason) {
-      info("show() called");
       netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
       var test = gTests[gCounter];
       is(aLauncher.suggestedFileName, test.expected,
          "The filename should be correctly sanitized");
       gCallback();
     },
     promptForSaveToFile: function(aLauncher, aWindowContext, aDefaultFileName, aSuggestedFileExtension, aForcePrompt) {
-      info("promptForSaveToFile called");
       return null;
     },
     QueryInterface: function(aIID) {
-      info("QueryInterface called");
       netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
       if (aIID.equals(SpecialPowers.Ci.nsISupports) ||
           aIID.equals(SpecialPowers.Ci.nsIHelperAppLauncherDialog))
         return this;
       throw SpecialPowers.Cr.NS_ERROR_NO_INTERFACE;
     }
   };
 
   var factory = {
     createInstance: function(aOuter, aIID) {
-      info("createInstance called");
       netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
       if (aOuter != null)
         throw SpecialPowers.Cr.NS_ERROR_NO_AGGREGATION;
       return new HelperAppLauncherDialog().QueryInterface(aIID);
     }
   };
 
-  info("RegisterFactory...\n");
   SpecialPowers.wrap(SpecialPowers.Components).manager
             .QueryInterface(SpecialPowers.Ci.nsIComponentRegistrar)
             .registerFactory(FAKE_CID, "",
                              HELPERAPP_DIALOG_CONTRACT,
                              factory);
 
   function finish_test() {
-    info("UnregisterFactory...\n");
     SpecialPowers.wrap(SpecialPowers.Components).manager
               .QueryInterface(SpecialPowers.Ci.nsIComponentRegistrar)
               .registerFactory(HELPERAPP_DIALOG_CID, "",
                                HELPERAPP_DIALOG_CONTRACT,
                                null);
     SimpleTest.finish();
   }