 +
 +      var gcliterm = new GcliTerm(context, tc.gcliParent, aConsole);
 +    }
-
+ 
      // TODO: injection of additional functionality needs re-thinking/api
      // see bug 559748
-   },
-
-   /**
-    * Passed a HUDId, the corresponding window is returned
-    *
-@@ -3147,17 +3164,22 @@ function HeadsUpDisplay(aConfig)
-
-   // create a panel dynamically and attach to the parentNode
-   this.createHUD();
-
-   this.HUDBox.lastTimestamp = 0;
+@@ -3156,7 +3173,12 @@
    // create the JSTerm input element
    try {
      this.createConsoleInput(this.contentWindow, this.consoleWrap, this.outputNode);

# User Joe Walker <jwalker@mozilla.com>
# Date 1306500542 -3600
# Node ID 5461e667a7350ce8040d8ad4b7a296a2a68bee53
# Parent e02b0c16a5330e8b5dccb973818d39e0f92acaba
Bug 656666 - Update HudService.jsm to allow GCLI integration

diff --git a/toolkit/components/console/hudservice/HUDService.jsm b/toolkit/components/console/hudservice/HUDService.jsm
--- a/toolkit/components/console/hudservice/HUDService.jsm
+++ b/toolkit/components/console/hudservice/HUDService.jsm
@@ -22,16 +22,17 @@
  *
  * Contributor(s):
  *   David Dahl <ddahl@mozilla.com> (original author)
  *   Rob Campbell <rcampbell@mozilla.com>
  *   Johnathan Nightingale <jnightingale@mozilla.com>
  *   Patrick Walton <pcwalton@mozilla.com>
  *   Julian Viereck <jviereck@mozilla.com>
  *   Mihai Șucan <mihai.sucan@gmail.com>

+    if (typeof aBody != "string" && aClipboardText == null) {
+      aClipboardText = aBody.innerText;
     }
 
     // Make the icon container, which is a vertical box. Its purpose is to
@@ -5568,8 +5620,13 @@
     aClipboardText = aClipboardText ||
                      (aBody + (aSourceURL ? " @ " + aSourceURL : "") +
                               (aSourceLine ? ":" + aSourceLine : ""));
