From c0b75ea89eaecc858ccc16b45bc81a75d4e716a7 Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Fri, 3 May 2019 11:40:15 +0200 Subject: [PATCH] Remove noopener/noreferrer from tokenizedFeatures Otherwise CSSOM will assume it's more than a new window and treat it like a popup or some such. Helps with #1902. Tests: https://github.com/web-platform-tests/wpt/pull/16330 & https://github.com/web-platform-tests/wpt/pull/16658. --- source | 36 +++++++++++++++++++++++++++--------- 1 file changed, 27 insertions(+), 9 deletions(-) diff --git a/source b/source index 9cf4924bd24..44a306d85f7 100644 --- a/source +++ b/source @@ -78670,15 +78670,33 @@ dictionary WindowPostMessageOptions : PostMessageOptions
  • Let noopener and noreferrer be false.

  • -
  • If tokenizedFeatures contains an entry with - the key "noopener", then set noopener to the result of parsing - tokenizedFeatures["noopener"] as a boolean feature.

  • - -
  • If tokenizedFeatures contains an entry with - the key "noreferrer", then set noreferrer to the result of - parsing - tokenizedFeatures["noreferrer"] as a boolean feature.

  • +
  • +

    If tokenizedFeatures["noopener"] exists, then:

    + +
      +
    1. Set noopener to the result of parsing tokenizedFeatures["noopener"] as a boolean feature.

    2. + +
    3. Remove tokenizedFeatures["noopener"].

    4. +
    +
  • + +
  • +

    If tokenizedFeatures["noreferrer"] exists, then:

    + +
      +
    1. Set noreferrer to the result of parsing tokenizedFeatures["noreferrer"] as a boolean feature.

    2. + +
    3. Remove tokenizedFeatures["noreferrer"].

    4. +
    +
  • If noreferrer is true, then set noopener to true.