Skip to content

Commit

Permalink
HTML: fix incorrect test for U+000C in window.open() features
Browse files Browse the repository at this point in the history
Found by cdumez in #5306 (comment).
  • Loading branch information
zcorpan authored and annevk committed Apr 27, 2017
1 parent 757a633 commit bb6db50
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
'noopener,=',
'noopener foo', // => ('noopener', ''), ('foo', '')
'foo noopener=1', // => ('foo', ''), ('noopener', '1')
'foo=\u000Cnoopener' // => ('foo', ''), ('noopener', '')
'foo=\u000Cbar\u000Cnoopener' // => ('foo', 'bar'), ('noopener', '')
];
featureVariants.forEach(feature => {
var win = window.open(windowURL, '', feature);
Expand Down Expand Up @@ -140,6 +140,7 @@
'no,opener', // => ('no', ''), ('opener', '')
'\0noopener', // => ('\0noopener', '')
'noopener\u0000=yes' // => ('noopener\0', 'yes')
'foo=\u000Cnoopener' // => ('foo', 'noopener')
];
invalidFeatureVariants.forEach(feature => {
var win = window.open(windowURL, '', feature);
Expand Down

0 comments on commit bb6db50

Please sign in to comment.