diff --git a/notifications.bs b/notifications.bs index d8d500c..b6c4d45 100644 --- a/notifications.bs +++ b/notifications.bs @@ -792,9 +792,12 @@ constructor steps are:
Run these steps in parallel:
If the result of getting the notifications permission state is not
- "granted", then queue a task to fire an event named
- error on this, and abort these steps.
+
If this's relevant settings object's
+ origin is not same origin with this's
+ relevant settings object's top-level origin or the result of
+ getting the notifications permission state is not "granted", then
+ queue a task to fire an event named error on this, and abort
+ these steps.
Run the notification show steps for notification.
Run these steps in parallel:
Let permissionState be the result of
- requesting permission to use "notifications".
+
Let permissionState be "denied".
+
+
If this's relevant settings object's
+ origin is same origin with this's
+ relevant settings object's top-level origin, then set
+ permissionState to the result of requesting permission to use
+ "notifications".
Queue a global task on the DOM manipulation task source given global