Bug 337970: don't pass null to RequestCharset, r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@196537 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -571,10 +571,11 @@ nsHTMLDocument::TryBookmarkCharset(nsIDocShell* aDocShell,
|
||||
PRBool wantCharset; // ignored for now
|
||||
nsCAutoString charset;
|
||||
nsCOMPtr<nsIWebNavigation> webNav(do_QueryInterface(aDocShell));
|
||||
nsCOMPtr<nsISupports> closure;
|
||||
nsresult rv = bookmarksResolver->RequestCharset(webNav,
|
||||
aChannel,
|
||||
&wantCharset,
|
||||
nsnull,
|
||||
getter_AddRefs(closure),
|
||||
charset);
|
||||
if (NS_SUCCEEDED(rv) && !charset.IsEmpty()) {
|
||||
aCharset = charset;
|
||||
|
||||
Reference in New Issue
Block a user