Bug 570132 - e10s: Chrome process crash at shutdown if connection error exists. r=dwitte

--HG--
extra : rebase_source : 99ec43a08997c37689152c6462670d6754247821
This commit is contained in:
Josh Matthews 2010-07-02 20:56:51 -04:00
Родитель 44bb0d7533
Коммит 10d3aff445
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -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;
}