<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>170128</bug_id>
          
          <creation_ts>2017-03-27 12:48:12 -0700</creation_ts>
          <short_desc>_top, _self named browsing context should not be case-sensitive</short_desc>
          <delta_ts>2017-04-04 20:13:38 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>OS X 10.11</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>169747</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=169747</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=169748</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Lyza Gardner">lyza</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>beidson</cc>
    
    <cc>cdumez</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1291569</commentid>
    <comment_count>0</comment_count>
    <who name="Lyza Gardner">lyza</who>
    <bug_when>2017-03-27 12:48:12 -0700</bug_when>
    <thetext>Per section 7.1.5 Named Browsing Contexts[1] of the WHATWG HTML specification:

&gt; A valid browsing context name or keyword is any string that is either a valid browsing context name or that is an ASCII case-insensitive match for one of: _blank, _self, _parent, or _top.

However, the behavior observed is that case-mixed variants of `_top` and `_self` are treated as non-keyword browsing context names. To reproduce, e.g.:

1. `window.open` into `_tOP`
or
1. `window.open` into `_seLF`

Expected result[2]:

For `_tOP`, browser should re-use top-level browsing context, or current if top
For `_seLF`, browser should re-use current browsing context


Actual result:

Browser opens document in new browsing context, treating `_tOP` and `_seLF` as new, named contexts

Similar to:

https://bugs.webkit.org/show_bug.cgi?id=169748 (_parent)
and
https://bugs.webkit.org/show_bug.cgi?id=169747 (_blank)

Relevant web-platform-tests: https://github.com/w3c/web-platform-tests/pull/5233

[1] https://html.spec.whatwg.org/#browsing-context-names
[2] https://html.spec.whatwg.org/#valid-browsing-context-name-or-keyword</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1294339</commentid>
    <comment_count>1</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2017-04-04 20:13:38 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 169747 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>