Changeset 280933 in webkit
- Timestamp:
- Aug 11, 2021 3:21:57 PM (11 months ago)
- Location:
- trunk
- Files:
-
- 5 edited
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/html/semantics/links/links-created-by-a-and-area-elements/target_blank_implicit_noopener-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/html/semantics/links/links-created-by-a-and-area-elements/target_blank_implicit_noopener_base-expected.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/html/HTMLAnchorElement.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r280924 r280933 1 2021-08-11 Chris Dumez <cdumez@apple.com> 2 3 <a rel="opener noopener" target="_blank"> should create a window without opener 4 https://bugs.webkit.org/show_bug.cgi?id=229011 5 6 Reviewed by Alex Christensen. 7 8 Rebaseline WPT tests that are now passing. 9 10 * web-platform-tests/html/semantics/links/links-created-by-a-and-area-elements/target_blank_implicit_noopener-expected.txt: 11 * web-platform-tests/html/semantics/links/links-created-by-a-and-area-elements/target_blank_implicit_noopener_base-expected.txt: 12 1 13 2021-08-11 Chris Dumez <cdumez@apple.com> 2 14 -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/links/links-created-by-a-and-area-elements/target_blank_implicit_noopener-expected.txt
r279971 r280933 4 4 PASS Anchor element with target=_blank with rel=opener 5 5 PASS Anchor element with target=_blank with implicit rel=noopener 6 FAIL Anchor element with target=_blank with rel=opener+noopener assert_equals: expected false but got true 7 FAIL Anchor element with target=_blank with rel=noopener+opener assert_equals: expected false but got true 6 PASS Anchor element with target=_blank with rel=opener+noopener 7 PASS Anchor element with target=_blank with rel=noopener+opener 8 8 PASS Anchor element with target=_blank with rel=noreferrer 9 FAIL Anchor element with target=_blank with rel=opener+noreferrer assert_equals: expected false but got true 10 FAIL Anchor element with target=_blank with rel=noopener+opener+noreferrer assert_equals: expected false but got true 9 PASS Anchor element with target=_blank with rel=opener+noreferrer 10 PASS Anchor element with target=_blank with rel=noopener+opener+noreferrer 11 11 PASS Area element with target=_blank with rel=noopener 12 12 PASS Area element with target=_blank with rel=opener 13 13 PASS Area element with target=_blank with implicit rel=noopener 14 FAIL Area element with target=_blank with rel=opener+noopener assert_equals: expected false but got true 15 FAIL Area element with target=_blank with rel=noopener+opener assert_equals: expected false but got true 14 PASS Area element with target=_blank with rel=opener+noopener 15 PASS Area element with target=_blank with rel=noopener+opener 16 16 -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/links/links-created-by-a-and-area-elements/target_blank_implicit_noopener_base-expected.txt
r279971 r280933 4 4 PASS Anchor element with base target=_blank with rel=opener 5 5 PASS Anchor element with base target=_blank with implicit rel=noopener 6 FAIL Anchor element with base target=_blank with rel=opener+noopener assert_equals: expected false but got true 7 FAIL Anchor element with base target=_blank with rel=noopener+opener assert_equals: expected false but got true 6 PASS Anchor element with base target=_blank with rel=opener+noopener 7 PASS Anchor element with base target=_blank with rel=noopener+opener 8 8 PASS Anchor element with base target=_blank with rel=noreferrer 9 FAIL Anchor element with base target=_blank with rel=opener+noreferrer assert_equals: expected false but got true 10 FAIL Anchor element with base target=_blank with rel=noopener+opener+noreferrer assert_equals: expected false but got true 9 PASS Anchor element with base target=_blank with rel=opener+noreferrer 10 PASS Anchor element with base target=_blank with rel=noopener+opener+noreferrer 11 11 PASS Area element with base target=_blank with rel=noopener 12 12 PASS Area element with base target=_blank with rel=opener 13 13 PASS Area element with base target=_blank with implicit rel=noopener 14 FAIL Area element with base target=_blank with rel=opener+noopener assert_equals: expected false but got true 15 FAIL Area element with base target=_blank with rel=noopener+opener assert_equals: expected false but got true 14 PASS Area element with base target=_blank with rel=opener+noopener 15 PASS Area element with base target=_blank with rel=noopener+opener 16 16 -
trunk/Source/WebCore/ChangeLog
r280931 r280933 1 2021-08-11 Chris Dumez <cdumez@apple.com> 2 3 <a rel="opener noopener" target="_blank"> should create a window without opener 4 https://bugs.webkit.org/show_bug.cgi?id=229011 5 6 Reviewed by Alex Christensen. 7 8 <a rel="opener noopener" target="_blank"> should create a window without opener, as per: 9 - https://html.spec.whatwg.org/#get-an-element's-noopener (noopener is checked *before* opener). 10 11 Firefox and Chrome match the specification. 12 13 No new tests, rebaselined existing tests. 14 15 * html/HTMLAnchorElement.cpp: 16 (WebCore::HTMLAnchorElement::handleClick): 17 1 18 2021-08-11 Alex Christensen <achristensen@webkit.org> 2 19 -
trunk/Source/WebCore/html/HTMLAnchorElement.cpp
r279760 r280933 518 518 519 519 auto effectiveTarget = this->effectiveTarget(); 520 std::optional<NewFrameOpenerPolicy> newFrameOpenerPolicy; 521 if (hasRel(Relation::Opener)) 522 newFrameOpenerPolicy = NewFrameOpenerPolicy::Allow; 523 else if (hasRel(Relation::NoOpener) || (document().settings().blankAnchorTargetImpliesNoOpenerEnabled() && equalIgnoringASCIICase(effectiveTarget, "_blank"))) 520 NewFrameOpenerPolicy newFrameOpenerPolicy = NewFrameOpenerPolicy::Allow; 521 if (hasRel(Relation::NoOpener) || hasRel(Relation::NoReferrer) || (!hasRel(Relation::Opener) && document().settings().blankAnchorTargetImpliesNoOpenerEnabled() && equalIgnoringASCIICase(effectiveTarget, "_blank"))) 524 522 newFrameOpenerPolicy = NewFrameOpenerPolicy::Suppress; 525 523
Note: See TracChangeset
for help on using the changeset viewer.