mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 715204 - Non-ascii titles are displayed as garbage during session restore. r=bnicholson
This commit is contained in:
parent
8abeaa91a6
commit
31f19bf8b7
@ -939,7 +939,7 @@ SessionStore.prototype = {
|
|||||||
|
|
||||||
// Read session state file into a string and let observers modify the state before it's being used
|
// Read session state file into a string and let observers modify the state before it's being used
|
||||||
let state = Cc["@mozilla.org/supports-string;1"].createInstance(Ci.nsISupportsString);
|
let state = Cc["@mozilla.org/supports-string;1"].createInstance(Ci.nsISupportsString);
|
||||||
state.data = NetUtil.readInputStreamToString(aStream, aStream.available()) || "";
|
state.data = NetUtil.readInputStreamToString(aStream, aStream.available(), { charset : "UTF-8" }) || "";
|
||||||
aStream.close();
|
aStream.close();
|
||||||
|
|
||||||
Services.obs.notifyObservers(state, "sessionstore-state-read", "");
|
Services.obs.notifyObservers(state, "sessionstore-state-read", "");
|
||||||
|
@ -731,7 +731,7 @@ SessionStore.prototype = {
|
|||||||
|
|
||||||
// Read session state file into a string and let observers modify the state before it's being used
|
// Read session state file into a string and let observers modify the state before it's being used
|
||||||
let state = Cc["@mozilla.org/supports-string;1"].createInstance(Ci.nsISupportsString);
|
let state = Cc["@mozilla.org/supports-string;1"].createInstance(Ci.nsISupportsString);
|
||||||
state.data = NetUtil.readInputStreamToString(aStream, aStream.available()) || "";
|
state.data = NetUtil.readInputStreamToString(aStream, aStream.available(), { charset : "UTF-8" }) || "";
|
||||||
aStream.close();
|
aStream.close();
|
||||||
|
|
||||||
Services.obs.notifyObservers(state, "sessionstore-state-read", "");
|
Services.obs.notifyObservers(state, "sessionstore-state-read", "");
|
||||||
|
Loading…
Reference in New Issue
Block a user