### Eclipse Workspace Patch 1.0 #P org.eclipse.atf.mozilla.ide.ui Index: src/org/eclipse/atf/mozilla/ide/ui/netmon/MozNetworkMonitorAdapter.java =================================================================== RCS file: /cvsroot/tools/org.eclipse.atf/components/plugins/org.eclipse.atf.mozilla.ide.ui/src/org/eclipse/atf/mozilla/ide/ui/netmon/MozNetworkMonitorAdapter.java,v retrieving revision 1.4 diff -u -r1.4 MozNetworkMonitorAdapter.java --- src/org/eclipse/atf/mozilla/ide/ui/netmon/MozNetworkMonitorAdapter.java 20 Aug 2009 12:37:51 -0000 1.4 +++ src/org/eclipse/atf/mozilla/ide/ui/netmon/MozNetworkMonitorAdapter.java 26 Aug 2009 12:50:21 -0000 @@ -73,7 +73,7 @@ protected class XHRHandler implements nsIDOMEventListener { // Mozilla XHR object - protected nsIXMLHttpRequest xhr = null; + protected nsIXMLHttpRequest xhr; public XHRHandler(nsIXMLHttpRequest xhr) { // cache the xhr to be able to query on ready-state changes @@ -82,7 +82,7 @@ nsIDOMEventTarget eventListener = (nsIDOMEventTarget) xhr.queryInterface(nsIDOMEventTarget.NS_IDOMEVENTTARGET_IID); eventListener.addEventListener(ERROR_TYPE, this, false); eventListener.addEventListener(LOAD_TYPE, this, false); - eventListener.addEventListener(READYSTATE_TYPE, this, false); + //eventListener.addEventListener(READYSTATE_TYPE, this, false); } protected final static int COMPLETE_READYSTATE = 4; @@ -253,7 +253,7 @@ * This means that I can QI to nsIXMLHTTPRequest */ nsIInterfaceRequestor intReq = httpChannel.getNotificationCallbacks(); - nsIXMLHttpRequest xhr = (nsIXMLHttpRequest) intReq.queryInterface(nsIXMLHttpRequest.NS_IXMLHTTPREQUEST_IID); + nsIXMLHttpRequest xhr = (nsIXMLHttpRequest) intReq.getInterface(nsIXMLHttpRequest.NS_IXMLHTTPREQUEST_IID); handleXHRRequest(xhr); @@ -273,7 +273,7 @@ callList.add(call, request); return; } catch (Exception e) { - + MozIDEUIPlugin.log(e); } } @@ -304,7 +304,7 @@ nsIInterfaceRequestor intReq = httpChannel.getNotificationCallbacks(); // can we QI to XHR? - intReq.queryInterface(nsIXMLHttpRequest.NS_IXMLHTTPREQUEST_IID); + intReq.getInterface(nsIXMLHttpRequest.NS_IXMLHTTPREQUEST_IID); return; } catch (XPCOMException e) {