diff --git a/mozilla/htmlparser/robot/nsDebugRobot.cpp b/mozilla/htmlparser/robot/nsDebugRobot.cpp index 34a0645a9e1..e2b4ad79e27 100644 --- a/mozilla/htmlparser/robot/nsDebugRobot.cpp +++ b/mozilla/htmlparser/robot/nsDebugRobot.cpp @@ -253,7 +253,8 @@ extern "C" NS_EXPORT int DebugRobot( ww->SetObserver(pl); const char* spec; (void)url->GetSpec(&spec); - ww->LoadURL(nsString(spec));/* XXX hook up stream listener here! */ + nsAutoString theSpec(spec); + ww->LoadURL(theSpec.GetUnicode());/* XXX hook up stream listener here! */ while (!g_bReadyForNextUrl) { if (yieldProc != NULL) { const char* spec; diff --git a/mozilla/parser/htmlparser/robot/nsDebugRobot.cpp b/mozilla/parser/htmlparser/robot/nsDebugRobot.cpp index 34a0645a9e1..e2b4ad79e27 100644 --- a/mozilla/parser/htmlparser/robot/nsDebugRobot.cpp +++ b/mozilla/parser/htmlparser/robot/nsDebugRobot.cpp @@ -253,7 +253,8 @@ extern "C" NS_EXPORT int DebugRobot( ww->SetObserver(pl); const char* spec; (void)url->GetSpec(&spec); - ww->LoadURL(nsString(spec));/* XXX hook up stream listener here! */ + nsAutoString theSpec(spec); + ww->LoadURL(theSpec.GetUnicode());/* XXX hook up stream listener here! */ while (!g_bReadyForNextUrl) { if (yieldProc != NULL) { const char* spec;