Bug 1141418 - Fix index after calling splice while iterating remoteFrames array. r=jgriffin

This commit is contained in:
Ting-Yu Chou 2015-05-18 12:04:26 +08:00
parent 4a4b0bbb98
commit c644d94180

View File

@ -134,7 +134,7 @@ FrameManager.prototype = {
frameMessageManager.sendAsyncMessage("aliveCheck", {});
} catch (e) {
if (e.result == Components.results.NS_ERROR_NOT_INITIALIZED) {
remoteFrames.splice(i, 1);
remoteFrames.splice(i--, 1);
continue;
}
}