Bug 1221104 - Throw NS_ERROR_NOT_IMPLEMENTED instead of NS_ERROR_UNEXPECTED for PushPermissionDescriptor.userVisible. r=baku

This is merely for clarity. The spec does not require a TypeError to be thrown here.
This commit is contained in:
Birunthan Mohanathas 2015-12-18 15:02:50 +02:00
parent b5c61ef822
commit 8c368b6d82

View File

@ -56,7 +56,7 @@ CreatePushPermissionStatus(JSContext* aCx,
}
if (permission.mUserVisible) {
aRv.Throw(NS_ERROR_UNEXPECTED);
aRv.Throw(NS_ERROR_NOT_IMPLEMENTED);
return nullptr;
}