Bug 422850 - "txCompileObserver::startLoad doesn't pass correct object to asyncOpen ("listener" is unused)" [p=sciguyryan@gmail.com (Ryan Jones) r+sr=sicking a1.9=beltzner]
authorreed@reedloden.com
Tue, 18 Mar 2008 12:42:31 -0700
changeset 13253 d3119f5384b424190bdd4163f9f39913b77ce2c0
parent 13252 15bb92774d2375e449b3858c57f0564e5bc35b77
child 13254 69dffc9a65eb07d491da78b63cf63ad1e4f7d4de
push idunknown
push userunknown
push dateunknown
bugs422850
milestone1.9b5pre
Bug 422850 - "txCompileObserver::startLoad doesn't pass correct object to asyncOpen ("listener" is unused)" [p=sciguyryan@gmail.com (Ryan Jones) r+sr=sicking a1.9=beltzner]
content/xslt/src/xslt/txMozillaStylesheetCompiler.cpp
--- a/content/xslt/src/xslt/txMozillaStylesheetCompiler.cpp
+++ b/content/xslt/src/xslt/txMozillaStylesheetCompiler.cpp
@@ -538,17 +538,17 @@ txCompileObserver::startLoad(nsIURI* aUr
     parser->Parse(aUri);
 
     // Always install in case of redirects
     nsCOMPtr<nsIStreamListener> listener =
         new nsCrossSiteListenerProxy(sink, aReferrerPrincipal, channel, &rv);
     NS_ENSURE_TRUE(listener, NS_ERROR_OUT_OF_MEMORY);
     NS_ENSURE_SUCCESS(rv, rv);
 
-    return channel->AsyncOpen(sink, parser);
+    return channel->AsyncOpen(listener, parser);
 }
 
 nsresult
 TX_LoadSheet(nsIURI* aUri, txMozillaXSLTProcessor* aProcessor,
              nsILoadGroup* aLoadGroup, nsIPrincipal* aCallerPrincipal)
 {
     nsCAutoString spec;
     aUri->GetSpec(spec);