<html>
<head>
<base href="https://bugs.webkit.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - _top, _self named browsing context should not be case-sensitive"
href="https://bugs.webkit.org/show_bug.cgi?id=170128">170128</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>_top, _self named browsing context should not be case-sensitive
</td>
</tr>
<tr>
<th>Product</th>
<td>WebKit
</td>
</tr>
<tr>
<th>Version</th>
<td>WebKit Nightly Build
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Unspecified
</td>
</tr>
<tr>
<th>OS</th>
<td>OS X 10.11
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>Normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P2
</td>
</tr>
<tr>
<th>Component</th>
<td>New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>webkit-unassigned@lists.webkit.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>lyza@lyza.com
</td>
</tr></table>
<p>
<div>
<pre>Per section 7.1.5 Named Browsing Contexts[1] of the WHATWG HTML specification:
<span class="quote">> 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.</span >
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:
<a class="bz_bug_link
bz_status_NEW "
title="NEW - _parent named browsing context should not be case-sensitive"
href="show_bug.cgi?id=169748">https://bugs.webkit.org/show_bug.cgi?id=169748</a> (_parent)
and
<a class="bz_bug_link
bz_status_NEW "
title="NEW - _blank named browsing context should not be case-sensitive"
href="show_bug.cgi?id=169747">https://bugs.webkit.org/show_bug.cgi?id=169747</a> (_blank)
Relevant web-platform-tests: <a href="https://github.com/w3c/web-platform-tests/pull/5233">https://github.com/w3c/web-platform-tests/pull/5233</a>
[1] <a href="https://html.spec.whatwg.org/#browsing-context-names">https://html.spec.whatwg.org/#browsing-context-names</a>
[2] <a href="https://html.spec.whatwg.org/#valid-browsing-context-name-or-keyword">https://html.spec.whatwg.org/#valid-browsing-context-name-or-keyword</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>