Bug 518090: Extension manager throws an unknown result. r=robstrong

This commit is contained in:
Dave Townsend 2009-09-22 18:45:44 +01:00
parent 66101db8a2
commit c34de6ab3a

View File

@ -5390,7 +5390,7 @@ ExtensionManager.prototype = {
removeInstallListenerAt: function EM_removeInstallListenerAt(index) {
if (index < 0 || index >= this._installListeners.length)
throw Cr.NS_ERROR_INVALID_ARGUMENT;
throw Cr.NS_ERROR_INVALID_ARG;
this._installListeners[index] = null;
while (this._installListeners[this._installListeners.length - 1] === null)