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
Add ReferrerPolicy to the PolicyContainer
https://bugs.webkit.org/show_bug.cgi?id=244561 Reviewed by Brent Fulgham. The HTML spec calls for ReferrerPolicy to be in the PolicyContainer struct.[1] This adds the ReferrerPolicy enum to the PolicyContainer struct to keep our implementation more in line with the spec. This also shuffles around the virtual referrerPolicy getter so the SecurityContext can construct a PolicyContainer given the implementation from its subclasses. No new tests, ReferrerPolicy already covered by existing tests. [1] https://html.spec.whatwg.org/multipage/origin.html#policy-containers * Source/WebCore/dom/ScriptExecutionContext.h: * Source/WebCore/dom/SecurityContext.cpp: (WebCore::SecurityContext::policyContainer const): * Source/WebCore/dom/SecurityContext.h: * Source/WebCore/loader/PolicyContainer.h: (WebCore::PolicyContainer::isolatedCopy const): (WebCore::PolicyContainer::isolatedCopy): (WebCore::operator==): (WebCore::PolicyContainer::encode const): (WebCore::PolicyContainer::decode): Canonical link: https://commits.webkit.org/254003@main
- Loading branch information
Showing
4 changed files
with
18 additions
and
10 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