From 7bf58098f692b54406280698b4efda1599d9184a Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Sat, 16 Dec 2017 12:25:49 -0600 Subject: [PATCH] Remove noopener/noreferrer from tokenizedFeatures Otherwise CSSOM will assume it's more than a new window. Helps with #1902. Tests: ... --- source | 36 +++++++++++++++++++++++++++--------- 1 file changed, 27 insertions(+), 9 deletions(-) diff --git a/source b/source index db94df2be03..7cea734cb2f 100644 --- a/source +++ b/source @@ -78656,15 +78656,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.