diff --git a/source b/source index a02b4f19405..5e641c27f19 100644 --- a/source +++ b/source @@ -79482,48 +79482,19 @@ callback FrameRequestCallback = void (DOMHighResTimeStamp -
- -

The domain attribute's getter must run - these steps:

+

To relax the same-origin restriction for a Document activeDocument and a string inputDomain, the user agent must run these steps:

    -
  1. If this Document object does not have a browsing context, then return the empty string. - -

  2. Let effectiveDomain be this Document's origin's effective domain. - -

  3. If effectiveDomain is an opaque - origin, then return the empty string.

  4. - -
  5. Return effectiveDomain, serialized.

  6. -
- -

The domain attribute's setter must run these - steps:

- -
    -
  1. If this Document object has no browsing - context, then throw a "SecurityError" - DOMException.

  2. - -
  3. If this Document object's active sandboxing flag set has its - sandboxed document.domain browsing context - flag set, then throw a "SecurityError" - DOMException.

  4. - -
  5. If the given value is the empty string, then throw a +

  6. If inputDomain is the empty string, then throw a "SecurityError" DOMException.

  7. -
  8. Let host be the result of parsing the given - value.

  9. +
  10. Let host be the result of parsing the + inputDomain.

  11. If host is failure, then throw a "SecurityError" DOMException.

  12. -
  13. Let effectiveDomain be this Document object's +

  14. Let effectiveDomain be activeDocument's origin's effective domain.

  15. @@ -79556,6 +79527,45 @@ callback FrameRequestCallback = void (DOMHighResTimeStamp +
  16. Return host.

  17. +
+ +
+ +

The domain attribute's getter must run + these steps:

+ +
    +
  1. If this Document object does not have a browsing context, then return the empty string. + +

  2. Let effectiveDomain be this Document's origin's effective domain. + +

  3. If effectiveDomain is an opaque + origin, then return the empty string.

  4. + +
  5. Return effectiveDomain, serialized.

  6. +
+ +

The domain attribute's setter must run these + steps:

+ +
    +
  1. If this Document object has no browsing + context, then throw a "SecurityError" + DOMException.

  2. + +
  3. If this Document object's active sandboxing flag set has its + sandboxed document.domain browsing context + flag set, then throw a "SecurityError" + DOMException.

  4. + +
  5. Let host be the result of + relaxing the same-origin restriction with this Document object as + activeDocument and the given value as inputDomain.

  6. +
  7. Set this Document object's origin's domain to host.

@@ -119631,6 +119641,7 @@ INSERT INTERFACES HERE Ivan Enderlin, Ivo Emanuel Gonçalves, J. King, + J.C. Jones, Jackson Ray Hamilton, Jacob Davies, Jacques Distler,