      }
      else {
        throw new Error("Unsupported Gecko Application");
-     }
-   },
- 
-   /**
-    * Re-attaches a console when the contentWindow is recreated
-@@ -3513,16 +3569,18 @@ HeadsUpDisplay.prototype = {
- 
-     if (!this.jsterm) {
-       this.createConsoleInput(this.contentWindow, this.consoleWrap, this.outputNode);
-     }
-     else {
+@@ -3535,6 +3591,8 @@
        this.jsterm.context = Cu.getWeakReference(this.contentWindow);
        this.jsterm.console = this.console;
        this.jsterm.createSandbox();

   }
   catch (ex) {
     Cu.reportError(ex);
   }
 
   // A cache for tracking repeated CSS Nodes.
   this.cssNodes = {};
 }
@@ -3262,18 +3284,23 @@ HeadsUpDisplay.prototype = {
 
       panel.setAttribute("height", height);
 
       // Scroll the outputNode back to the last location.
       if (lastIndex > -1 && lastIndex < this.outputNode.getRowCount()) {
         this.outputNode.ensureIndexIsVisible(lastIndex);
       }
 

diff --git a/toolkit/components/console/hudservice/tests/browser/Makefile.in b/toolkit/components/console/hudservice/tests/browser/Makefile.in
--- a/toolkit/components/console/hudservice/tests/browser/Makefile.in
+++ b/toolkit/components/console/hudservice/tests/browser/Makefile.in
@@ -111,6 +111,7 @@
 	browser_webconsole_bug_601177_log_levels.js \
 	browser_webconsole_bug_597460_filter_scroll.js \
 	browser_webconsole_gcli_require.js \
