From bdecbb22adb7fa027090582e77a257d804a05fdc Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Thu, 3 Jan 2019 11:11:27 +0100 Subject: [PATCH] Cross-origin WindowProxy's [[GetOwnProperty]] cannot return undefined Callers do not anticipate it returning undefined in this case and browsers already throw. Tests: will be added as part of https://bugzilla.mozilla.org/show_bug.cgi?id=1363208. Fixes #4252. --- source | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/source b/source index e79a2c96a00..f34233bbf04 100644 --- a/source +++ b/source @@ -79345,7 +79345,16 @@ interface BarProp { -
  • If value is undefined, then return undefined.

  • +
  • +

    If value is undefined, then:

    + +
      +
    1. If ! IsPlatformObjectSameOrigin(W) is true, then return + undefined.

    2. + +
    3. Throw a "SecurityError" DOMException.

    4. +
    +
  • Return PropertyDescriptor{ [[Value]]: value, @@ -81885,7 +81894,7 @@ interface Location { // but see also SecurityError" DOMException.