diff --git a/mozilla/htmlparser/src/nsExpatTokenizer.cpp b/mozilla/htmlparser/src/nsExpatTokenizer.cpp index ad45d5bb29c..fec75a95654 100644 --- a/mozilla/htmlparser/src/nsExpatTokenizer.cpp +++ b/mozilla/htmlparser/src/nsExpatTokenizer.cpp @@ -35,6 +35,10 @@ #include "nsINetService.h" #include "nsIServiceManager.h" +#ifdef NECKO +#include "nsNeckoUtil.h" +#endif + /************************************************************************ And now for the main class -- nsExpatTokenizer... ************************************************************************/ @@ -490,6 +494,7 @@ nsExpatTokenizer::OpenInputStream(nsString2& aURLStr, nsIInputStream*& in) #else // NECKO nsIURI* uri; + ret = NS_NewURI(&uri, aURLStr); if (NS_FAILED(ret)) return ret; diff --git a/mozilla/parser/htmlparser/src/nsExpatTokenizer.cpp b/mozilla/parser/htmlparser/src/nsExpatTokenizer.cpp index ad45d5bb29c..fec75a95654 100644 --- a/mozilla/parser/htmlparser/src/nsExpatTokenizer.cpp +++ b/mozilla/parser/htmlparser/src/nsExpatTokenizer.cpp @@ -35,6 +35,10 @@ #include "nsINetService.h" #include "nsIServiceManager.h" +#ifdef NECKO +#include "nsNeckoUtil.h" +#endif + /************************************************************************ And now for the main class -- nsExpatTokenizer... ************************************************************************/ @@ -490,6 +494,7 @@ nsExpatTokenizer::OpenInputStream(nsString2& aURLStr, nsIInputStream*& in) #else // NECKO nsIURI* uri; + ret = NS_NewURI(&uri, aURLStr); if (NS_FAILED(ret)) return ret;