From 486709e246c5b7ffeb65e87f5631edfbb188a5ff 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 db3830ad097..9aca4856608 100644 --- a/source +++ b/source @@ -79242,7 +79242,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, @@ -81782,7 +81791,7 @@ interface Location { // but see also SecurityError" DOMException.