Bug 965143 - Dispatching an error event instead of throwing an exception in network selection api. r=hsinyi