зеркало из https://github.com/mozilla/pjs.git
Bug 337970: don't pass null to RequestCharset, r+sr=bzbarsky
This commit is contained in:
Родитель
2af06842c2
Коммит
7401f9b206
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче