diff --git a/mozilla/docshell/base/nsWebShell.cpp b/mozilla/docshell/base/nsWebShell.cpp index 8a306eaa00a..780124893f0 100644 --- a/mozilla/docshell/base/nsWebShell.cpp +++ b/mozilla/docshell/base/nsWebShell.cpp @@ -1211,7 +1211,7 @@ nsWebShell::AddChild(nsIWebShell* aChild) } mChildren.AppendElement(aChild); aChild->SetParent(this); - aChild->SetDefaultCharacterSet(mDefaultCharacterSet); + aChild->SetDefaultCharacterSet(mDefaultCharacterSet.GetUnicode()); NS_ADDREF(aChild); return NS_OK; diff --git a/mozilla/webshell/src/nsWebShell.cpp b/mozilla/webshell/src/nsWebShell.cpp index 8a306eaa00a..780124893f0 100644 --- a/mozilla/webshell/src/nsWebShell.cpp +++ b/mozilla/webshell/src/nsWebShell.cpp @@ -1211,7 +1211,7 @@ nsWebShell::AddChild(nsIWebShell* aChild) } mChildren.AppendElement(aChild); aChild->SetParent(this); - aChild->SetDefaultCharacterSet(mDefaultCharacterSet); + aChild->SetDefaultCharacterSet(mDefaultCharacterSet.GetUnicode()); NS_ADDREF(aChild); return NS_OK;