-
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.
Cherry-pick 265870.403@safari-7616-branch (43c01fe). https://bugs.web…
…kit.org/show_bug.cgi?id=260100 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): Canonical link: https://commits.webkit.org/265870.403@safari-7616-branch
- Loading branch information
Showing
3 changed files
with
141 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