зеркало из https://github.com/mozilla/gecko-dev.git
Bug 570132 - e10s: Chrome process crash at shutdown if connection error exists. r=dwitte
--HG-- extra : rebase_source : 99ec43a08997c37689152c6462670d6754247821
This commit is contained in:
Родитель
44bb0d7533
Коммит
10d3aff445
|
@ -316,13 +316,15 @@ ContentProcessParent::Observe(nsISupports* aSubject,
|
|||
if (!strcmp(aTopic, "nsPref:changed")) {
|
||||
// We know prefs are ASCII here.
|
||||
NS_LossyConvertUTF16toASCII strData(aData);
|
||||
SendNotifyRemotePrefObserver(strData);
|
||||
if (mIsAlive)
|
||||
SendNotifyRemotePrefObserver(strData);
|
||||
}
|
||||
|
||||
if (!strcmp(aTopic, NS_IPC_IOSERVICE_SET_OFFLINE_TOPIC) && mSubprocess) {
|
||||
NS_ConvertUTF16toUTF8 dataStr(aData);
|
||||
const char *offline = dataStr.get();
|
||||
SendSetOffline(!strcmp(offline, "true") ? true : false);
|
||||
if (mIsAlive)
|
||||
SendSetOffline(!strcmp(offline, "true") ? true : false);
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче