Commit 9de24d2d authored by ajschult%verizon.net's avatar ajschult%verizon.net
Browse files

Bug 331674: Replace QI call in nsBrowserStatusHandler with instanceof. patch...

Bug 331674: Replace QI call in nsBrowserStatusHandler with instanceof.  patch by Alex Vincent <ajvincent@gmail.com>, r=jag, sr=neil, branch181=neil
parent 4e91f794
Loading
Loading
Loading
Loading
+2 −8
Original line number Diff line number Diff line
@@ -210,14 +210,8 @@ nsBrowserStatusHandler.prototype =
      if (aRequest) {
        var msg = "";
        // Get the channel if the request is a channel
        var channel;
        try {
          channel = aRequest.QueryInterface(nsIChannel);
        }
        catch(e) { };

        if (channel) {
          var location = channel.URI.spec;
        if (aRequest instanceof nsIChannel) {
          var location = aRequest.URI.spec;
          if (location != "about:blank") {
            const kErrorBindingAborted = 0x804B0002;
            const kErrorNetTimeout = 0x804B000E;