Skip to content

Commit a9bbaa7

Browse files
committed
1 parent dee86de commit a9bbaa7

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed

LayoutTests/imported/w3c/web-platform-tests/x-frame-options/get-decode-split-expected.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,8 @@ PASS `,SAMEORIGIN,,DENY,` blocks same-origin framing
33
PASS `,SAMEORIGIN,,DENY,` blocks cross-origin framing
44
PASS ` SAMEORIGIN, DENY` blocks same-origin framing
55
PASS ` SAMEORIGIN, DENY` blocks cross-origin framing
6+
PASS ` DENY` allows same-origin framing
7+
PASS ` DENY` allows cross-origin framing
8+
PASS ` DENY` allows same-origin framing
9+
PASS ` DENY` allows cross-origin framing
610

LayoutTests/imported/w3c/web-platform-tests/x-frame-options/get-decode-split.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,16 @@
2020
sameOriginAllowed: false,
2121
crossOriginAllowed: false
2222
});
23+
24+
xfo_simple_tests({
25+
headerValue: `\x0BDENY`,
26+
sameOriginAllowed: true,
27+
crossOriginAllowed: true
28+
});
29+
30+
xfo_simple_tests({
31+
headerValue: `\x0CDENY`,
32+
sameOriginAllowed: true,
33+
crossOriginAllowed: true
34+
});
2335
</script>

LayoutTests/platform/win/TestExpectations

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1992,6 +1992,9 @@ imported/w3c/web-platform-tests/event-timing/interaction-count-tap.html [ Crash
19921992
imported/w3c/web-platform-tests/event-timing/interaction-count-click.html [ Skip ]
19931993
imported/w3c/web-platform-tests/event-timing/interaction-count-press-key.html [ Skip ]
19941994

1995+
# Incorrect whitespace stripping might happen at the network layer?
1996+
imported/w3c/web-platform-tests/x-frame-options/get-decode-split.html [ Skip ]
1997+
19951998
# Timeout:
19961999
webkit.org/b/301110 imported/w3c/web-platform-tests/event-timing/gap-keydown-keyup.html [ Skip ]
19972000
webkit.org/b/301110 imported/w3c/web-platform-tests/event-timing/gap-pointerdown-pointerup.html [ Skip ]

Source/WebCore/platform/network/HTTPParsers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ XFrameOptionsDisposition parseXFrameOptionsHeader(StringView header)
565565
return result;
566566

567567
for (auto currentHeader : header.splitAllowingEmptyEntries(',')) {
568-
currentHeader = currentHeader.trim(isUnicodeCompatibleASCIIWhitespace<char16_t>);
568+
currentHeader = currentHeader.trim(isTabOrSpace<char16_t>);
569569
XFrameOptionsDisposition currentValue = XFrameOptionsDisposition::None;
570570
if (equalLettersIgnoringASCIICase(currentHeader, "deny"_s))
571571
currentValue = XFrameOptionsDisposition::Deny;

0 commit comments

Comments
 (0)