-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check CSP and X-Frame-Options for subframe AppSSO
https://bugs.webkit.org/show_bug.cgi?id=260100 rdar://108625087 Reviewed by Alex Christensen. Before this patch, AppSSO unconditionally sets cookies whenever a session occurs without considering the headers in the response. This patch starts considering CSP and X-Frame-Options for AppSSO responses. Added API tests for this behavior. * Source/WebKit/UIProcess/API/APIFrameInfo.h: * Source/WebKit/UIProcess/Cocoa/SOAuthorization/SOAuthorizationSession.h: * Source/WebKit/UIProcess/Cocoa/SOAuthorization/SOAuthorizationSession.mm: (WebKit::SOAuthorizationSession::complete): (WebKit::SOAuthorizationSession::shouldInterruptLoadForXFrameOptions): (WebKit::SOAuthorizationSession::shouldInterruptLoadForCSPFrameAncestorsOrXFrameOptions): (): Deleted. * Tools/TestWebKitAPI/Tests/WebKitCocoa/SOAuthorizationTests.mm: (TestWebKitAPI::TEST): Originally-landed-as: 265870.403@safari-7616-branch (43c01fe). rdar://117809541 Canonical link: https://commits.webkit.org/270141@main
- Loading branch information
1 parent
9507587
commit 70c1251
Showing
3 changed files
with
142 additions
and
3 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