-
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.
Align some internal URL concepts with the URL Standard
https://bugs.webkit.org/show_bug.cgi?id=259245 rdar://112326744 Reviewed by Alex Christensen. This is a minor refactoring to align with URL Standard changes: * Rename cannotBeABaseURL to hasOpaquePath. * Remove isHierarchical and friends as they are the same as hasOpaquePath. * As an opaque path implies a null host, a null host check suffices. Also add a FIXME to CSP as it does not appear to follow the specification for reporting URLs. * Source/WTF/wtf/URL.cpp: (WTF::URL::invalidate): (WTF::URL::isHierarchical const): Deleted. * Source/WTF/wtf/URL.h: (WTF::URL::hasOpaquePath const): (WTF::URL::canSetHostOrPort const): Deleted. (WTF::URL::canSetPathname const): Deleted. (WTF::URL::cannotBeABaseURL const): Deleted. * Source/WTF/wtf/URLParser.cpp: (WTF::URLParser::URLParser): (WTF::URLParser::parse): (WTF::URLParser::allValuesEqual): * Source/WebCore/html/URLDecomposition.cpp: (WebCore::URLDecomposition::setUsername): (WebCore::URLDecomposition::setPassword): (WebCore::URLDecomposition::setHost): (WebCore::URLDecomposition::setHostname): (WebCore::URLDecomposition::setPort): (WebCore::URLDecomposition::setPathname): * Source/WebCore/page/csp/ContentSecurityPolicy.cpp: (WebCore::shouldReportProtocolOnly): Canonical link: https://commits.webkit.org/266090@main
- Loading branch information
Showing
5 changed files
with
26 additions
and
39 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