Bug 1065933 - Use custom error code when frames close unexpectedly. r=jgriffin

This commit is contained in:
Malini Das 2014-10-13 04:09:00 +02:00
parent 7e72d5075d
commit b39a1f5aed

View File

@ -407,7 +407,7 @@ MarionetteServerConnection.prototype = {
if (e.target.id == self.oopFrameId) {
curWindow.removeEventListener('mozbrowserclose', self.mozBrowserClose, true);
self.switchToGlobalMessageManager();
self.sendError("The frame closed during the " + action + ", recovering to allow further communications", 500, null, self.command_id);
self.sendError("The frame closed during the " + action + ", recovering to allow further communications", 55, null, self.command_id);
}
};
curWindow.addEventListener('mozbrowserclose', this.mozBrowserClose, true);