зеркало из https://github.com/mozilla/gecko-dev.git
Bug 967228 - Avoid exception in DOMIdentity.jsm (r=MattN)
This commit is contained in:
Родитель
56dbbf4031
Коммит
1aa677b6af
|
@ -221,6 +221,10 @@ this.DOMIdentity = {
|
|||
return this._serviceContexts.get(this._mmContexts.get(targetMM));
|
||||
},
|
||||
|
||||
hasContextForMM: function(targetMM) {
|
||||
return this._mmContexts.has(targetMM);
|
||||
},
|
||||
|
||||
/*
|
||||
* Delete the RPWatchContext object for a given message manager. Removes the
|
||||
* mapping both from _serviceContexts and _mmContexts.
|
||||
|
@ -344,6 +348,10 @@ this.DOMIdentity = {
|
|||
},
|
||||
|
||||
_childProcessShutdown: function DOMIdentity__childProcessShutdown(targetMM) {
|
||||
if (!this.hasContextForMM(targetMM)) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.getContextForMM(targetMM).RP.childProcessShutdown(targetMM);
|
||||
this.deleteContextForMM(targetMM);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче