Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Form navigations with target=_blank should not have an opener
https://bugs.webkit.org/show_bug.cgi?id=232243 Reviewed by Sam Weinig. LayoutTests/imported/w3c: Merge web-platform-tests/wpt#31368 from upstream WPT to fix outdated expectations in WPT tests. * web-platform-tests/content-security-policy/form-action/form-action-self-allowed-target-blank.html: * web-platform-tests/content-security-policy/form-action/form-action-src-allowed-target-blank.sub.html: * web-platform-tests/content-security-policy/form-action/form-action-src-redirect-allowed-target-blank.sub.html: * web-platform-tests/html/semantics/forms/form-submission-target/resources/reltester.js: (formUsesTargetBlank): (relTester): Source/WebCore: Form navigations with target=_blank should not have an opener (unless rel="opener" is specified on the <form>), similarly to link navigations. This is a bit better for security as Web developers may not realize that popups opened via target=_blank get an opener link by default and do things like post messages to their opener, or navigate it. Not having an opener relationship also enables us to process-swap in more cases for better site isolation. This behavior is behind the same experimental feature flag as the behavior for anchors with target=_blank since WebKit is the only engine implementing this at the moment (despite this behavior having been standardized). No new tests, updated existing tests. * html/HTMLFormElement.cpp: (WebCore::parseFormRelAttributes): (WebCore::HTMLFormElement::submit): Canonical link: https://commits.webkit.org/243513@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@284821 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
11 changed files
with
72 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters