Commit 9c15f4a7 authored by Mike Perry's avatar Mike Perry
Browse files

Remove some JavaScript Debugger exception spam.

parent 71aa3e36
Loading
Loading
Loading
Loading
+14 −4
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@ const kExternalInterfaces = ["nsIObserver", "nsIMIMEService",
                             
const kREAL_DRAG_CID = "{8b5314bb-db01-11d2-96ce-0060b0fb9956}";
const kDragInterfaces = ["nsIDragService"];
                        //, "nsIDragSession"];

const Cr = Components.results;
const Cc = Components.classes;
@@ -81,13 +82,22 @@ ExternalWrapper.prototype =
      return this;
    }

    /* We perform this explicit check first because otherwise
     * the JSD exception logs are full of noise */
    if (iid.equals(Components.interfaces.nsIDragService)
        || iid.equals(Components.interfaces.nsIDragSession)) {
      var drag = this._drag().QueryInterface(iid);
      this.copyMethods(drag);
    } else {
      try {
        var external = this._external().QueryInterface(iid);
        this.copyMethods(external);
      } catch(e) {
        this.logger.log(3, "Drag+drop QI: "+iid);
        var drag = this._drag().QueryInterface(iid);
        this.copyMethods(drag);
      }
    }
    return this;
  },