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:

    -
  1. 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. +

  2. 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.

  3. Run the notification show steps for notification.

@@ -838,8 +841,13 @@ method steps are:

Run these steps in parallel:

    -
  1. Let permissionState be the result of - requesting permission to use "notifications". +

  2. Let permissionState be "denied". + +

  3. 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".

  4. Queue a global task on the DOM manipulation task source given global