mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
b5c61ef822
commit
8c368b6d82
@ -56,7 +56,7 @@ CreatePushPermissionStatus(JSContext* aCx,
|
||||
}
|
||||
|
||||
if (permission.mUserVisible) {
|
||||
aRv.Throw(NS_ERROR_UNEXPECTED);
|
||||
aRv.Throw(NS_ERROR_NOT_IMPLEMENTED);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user