diff --git a/embedding/browser/powerplant/source/CBrowserShell.cpp b/embedding/browser/powerplant/source/CBrowserShell.cpp index ae5151213c52..ad7f1504485b 100644 --- a/embedding/browser/powerplant/source/CBrowserShell.cpp +++ b/embedding/browser/powerplant/source/CBrowserShell.cpp @@ -171,9 +171,9 @@ NS_IMETHODIMP CBrowserShellProgressListener::OnStateChange(nsIWebProgress *aWebP { nsCOMPtr channel(do_QueryInterface(aRequest)); NS_ENSURE_TRUE(channel, NS_ERROR_FAILURE); - nsXPIDLCString contentType; - channel->GetContentType(getter_Copies(contentType)); - if (strcmp(contentType.get(), "text/html")) + nsCAutoString contentType; + channel->GetContentType(contentType); + if (contentType.Equals(NS_LITERAL_CSTRING("text/html"))) mUseRealProgFlag = true; }