haikuwebkit/Source/WTF/wtf/PlatformMac.cmake

113 lines
2.7 KiB
CMake
Raw Permalink Normal View History

find_library(COCOA_LIBRARY Cocoa)
find_library(COREFOUNDATION_LIBRARY CoreFoundation)
find_library(READLINE_LIBRARY Readline)
list(APPEND WTF_LIBRARIES
${COREFOUNDATION_LIBRARY}
${COCOA_LIBRARY}
${READLINE_LIBRARY}
)
list(APPEND WTF_PUBLIC_HEADERS
WeakObjCPtr.h
Move URL from WebCore to WTF https://bugs.webkit.org/show_bug.cgi?id=190234 Patch by Alex Christensen <achristensen@webkit.org> on 2018-11-30 Reviewed by Keith Miller. Source/WebCore: A URL is a low-level concept that does not depend on other classes in WebCore. We are starting to use URLs in JavaScriptCore for modules. I need URL and URLParser in a place with fewer dependencies for rdar://problem/44119696 * Modules/applepay/ApplePaySession.h: * Modules/applepay/ApplePayValidateMerchantEvent.h: * Modules/applepay/PaymentCoordinator.cpp: * Modules/applepay/PaymentCoordinator.h: * Modules/applepay/PaymentCoordinatorClient.h: * Modules/applepay/PaymentSession.h: * Modules/applicationmanifest/ApplicationManifest.h: * Modules/beacon/NavigatorBeacon.cpp: * Modules/cache/DOMCache.cpp: * Modules/fetch/FetchLoader.h: * Modules/mediasession/MediaSessionMetadata.h: * Modules/mediasource/MediaSourceRegistry.cpp: * Modules/mediasource/MediaSourceRegistry.h: * Modules/mediastream/MediaStream.cpp: * Modules/mediastream/MediaStreamRegistry.cpp: * Modules/mediastream/MediaStreamRegistry.h: * Modules/navigatorcontentutils/NavigatorContentUtilsClient.h: * Modules/notifications/Notification.h: * Modules/paymentrequest/MerchantValidationEvent.h: * Modules/paymentrequest/PaymentRequest.h: * Modules/plugins/PluginReplacement.h: * Modules/webaudio/AudioContext.h: * Modules/websockets/ThreadableWebSocketChannel.h: * Modules/websockets/WebSocket.h: * Modules/websockets/WebSocketHandshake.cpp: * Modules/websockets/WebSocketHandshake.h: * Modules/websockets/WorkerThreadableWebSocketChannel.h: * PlatformMac.cmake: * PlatformWin.cmake: * Sources.txt: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * bindings/js/CachedModuleScriptLoader.h: * bindings/js/CachedScriptFetcher.h: * bindings/js/ScriptController.cpp: (WebCore::ScriptController::executeIfJavaScriptURL): * bindings/js/ScriptController.h: * bindings/js/ScriptModuleLoader.h: * bindings/js/ScriptSourceCode.h: * bindings/scripts/CodeGeneratorJS.pm: (GenerateImplementation): * bindings/scripts/test/JS/JSInterfaceName.cpp: * bindings/scripts/test/JS/JSMapLike.cpp: * bindings/scripts/test/JS/JSReadOnlyMapLike.cpp: * bindings/scripts/test/JS/JSTestActiveDOMObject.cpp: * bindings/scripts/test/JS/JSTestCEReactions.cpp: * bindings/scripts/test/JS/JSTestCEReactionsStringifier.cpp: * bindings/scripts/test/JS/JSTestCallTracer.cpp: * bindings/scripts/test/JS/JSTestClassWithJSBuiltinConstructor.cpp: * bindings/scripts/test/JS/JSTestCustomConstructorWithNoInterfaceObject.cpp: * bindings/scripts/test/JS/JSTestDOMJIT.cpp: * bindings/scripts/test/JS/JSTestEnabledBySetting.cpp: * bindings/scripts/test/JS/JSTestEventConstructor.cpp: * bindings/scripts/test/JS/JSTestEventTarget.cpp: * bindings/scripts/test/JS/JSTestException.cpp: * bindings/scripts/test/JS/JSTestGenerateIsReachable.cpp: * bindings/scripts/test/JS/JSTestGlobalObject.cpp: * bindings/scripts/test/JS/JSTestIndexedSetterNoIdentifier.cpp: * bindings/scripts/test/JS/JSTestIndexedSetterThrowingException.cpp: * bindings/scripts/test/JS/JSTestIndexedSetterWithIdentifier.cpp: * bindings/scripts/test/JS/JSTestInterface.cpp: * bindings/scripts/test/JS/JSTestInterfaceLeadingUnderscore.cpp: * bindings/scripts/test/JS/JSTestIterable.cpp: * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp: * bindings/scripts/test/JS/JSTestNamedAndIndexedSetterNoIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedAndIndexedSetterThrowingException.cpp: * bindings/scripts/test/JS/JSTestNamedAndIndexedSetterWithIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedConstructor.cpp: * bindings/scripts/test/JS/JSTestNamedDeleterNoIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedDeleterThrowingException.cpp: * bindings/scripts/test/JS/JSTestNamedDeleterWithIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedDeleterWithIndexedGetter.cpp: * bindings/scripts/test/JS/JSTestNamedGetterCallWith.cpp: * bindings/scripts/test/JS/JSTestNamedGetterNoIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedGetterWithIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedSetterNoIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedSetterThrowingException.cpp: * bindings/scripts/test/JS/JSTestNamedSetterWithIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedSetterWithIndexedGetter.cpp: * bindings/scripts/test/JS/JSTestNamedSetterWithIndexedGetterAndSetter.cpp: * bindings/scripts/test/JS/JSTestNamedSetterWithOverrideBuiltins.cpp: * bindings/scripts/test/JS/JSTestNamedSetterWithUnforgableProperties.cpp: * bindings/scripts/test/JS/JSTestNamedSetterWithUnforgablePropertiesAndOverrideBuiltins.cpp: * bindings/scripts/test/JS/JSTestNode.cpp: * bindings/scripts/test/JS/JSTestObj.cpp: * bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp: * bindings/scripts/test/JS/JSTestOverloadedConstructorsWithSequence.cpp: * bindings/scripts/test/JS/JSTestOverrideBuiltins.cpp: * bindings/scripts/test/JS/JSTestPluginInterface.cpp: * bindings/scripts/test/JS/JSTestPromiseRejectionEvent.cpp: * bindings/scripts/test/JS/JSTestSerialization.cpp: * bindings/scripts/test/JS/JSTestSerializationIndirectInheritance.cpp: * bindings/scripts/test/JS/JSTestSerializationInherit.cpp: * bindings/scripts/test/JS/JSTestSerializationInheritFinal.cpp: * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp: * bindings/scripts/test/JS/JSTestStringifier.cpp: * bindings/scripts/test/JS/JSTestStringifierAnonymousOperation.cpp: * bindings/scripts/test/JS/JSTestStringifierNamedOperation.cpp: * bindings/scripts/test/JS/JSTestStringifierOperationImplementedAs.cpp: * bindings/scripts/test/JS/JSTestStringifierOperationNamedToString.cpp: * bindings/scripts/test/JS/JSTestStringifierReadOnlyAttribute.cpp: * bindings/scripts/test/JS/JSTestStringifierReadWriteAttribute.cpp: * bindings/scripts/test/JS/JSTestTypedefs.cpp: * contentextensions/ContentExtensionsBackend.cpp: (WebCore::ContentExtensions::ContentExtensionsBackend::processContentExtensionRulesForLoad): (WebCore::ContentExtensions::ContentExtensionsBackend::processContentExtensionRulesForPingLoad): (WebCore::ContentExtensions::applyBlockedStatusToRequest): * contentextensions/ContentExtensionsBackend.h: * css/CSSValue.h: * css/StyleProperties.h: * css/StyleResolver.h: * css/StyleSheet.h: * css/StyleSheetContents.h: * css/parser/CSSParserContext.h: (WebCore::CSSParserContextHash::hash): (WTF::HashTraits<WebCore::CSSParserContext>::constructDeletedValue): * css/parser/CSSParserIdioms.h: * dom/DataTransfer.cpp: (WebCore::DataTransfer::setDataFromItemList): * dom/Document.cpp: (WebCore::Document::setURL): (WebCore::Document::processHttpEquiv): (WebCore::Document::completeURL const): (WebCore::Document::ensureTemplateDocument): * dom/Document.h: (WebCore::Document::urlForBindings const): * dom/Element.cpp: (WebCore::Element::isJavaScriptURLAttribute const): * dom/InlineStyleSheetOwner.cpp: (WebCore::parserContextForElement): * dom/Node.cpp: (WebCore::Node::baseURI const): * dom/Node.h: * dom/ScriptElement.h: * dom/ScriptExecutionContext.h: * dom/SecurityContext.h: * editing/Editor.cpp: (WebCore::Editor::pasteboardWriterURL): * editing/Editor.h: * editing/MarkupAccumulator.cpp: (WebCore::MarkupAccumulator::appendQuotedURLAttributeValue): * editing/cocoa/DataDetection.h: * editing/cocoa/EditorCocoa.mm: (WebCore::Editor::userVisibleString): * editing/cocoa/WebContentReaderCocoa.mm: (WebCore::replaceRichContentWithAttachments): (WebCore::WebContentReader::readWebArchive): * editing/mac/EditorMac.mm: (WebCore::Editor::plainTextFromPasteboard): (WebCore::Editor::writeImageToPasteboard): * editing/markup.cpp: (WebCore::removeSubresourceURLAttributes): (WebCore::createFragmentFromMarkup): * editing/markup.h: * fileapi/AsyncFileStream.cpp: * fileapi/AsyncFileStream.h: * fileapi/Blob.h: * fileapi/BlobURL.cpp: * fileapi/BlobURL.h: * fileapi/File.h: * fileapi/FileReaderLoader.h: * fileapi/ThreadableBlobRegistry.h: * history/CachedFrame.h: * history/HistoryItem.h: * html/DOMURL.cpp: (WebCore::DOMURL::create): * html/DOMURL.h: * html/HTMLAttachmentElement.cpp: (WebCore::HTMLAttachmentElement::archiveResourceURL): * html/HTMLFrameElementBase.cpp: (WebCore::HTMLFrameElementBase::isURLAllowed const): (WebCore::HTMLFrameElementBase::openURL): (WebCore::HTMLFrameElementBase::setLocation): * html/HTMLInputElement.h: * html/HTMLLinkElement.h: * html/HTMLMediaElement.cpp: (WTF::LogArgument<URL>::toString): (WTF::LogArgument<WebCore::URL>::toString): Deleted. * html/HTMLPlugInImageElement.cpp: (WebCore::HTMLPlugInImageElement::allowedToLoadFrameURL): * html/ImageBitmap.h: * html/MediaFragmentURIParser.h: * html/PublicURLManager.cpp: * html/PublicURLManager.h: * html/URLInputType.cpp: * html/URLRegistry.h: * html/URLSearchParams.cpp: (WebCore::URLSearchParams::URLSearchParams): (WebCore::URLSearchParams::toString const): (WebCore::URLSearchParams::updateURL): (WebCore::URLSearchParams::updateFromAssociatedURL): * html/URLUtils.h: (WebCore::URLUtils<T>::setHost): (WebCore::URLUtils<T>::setPort): * html/canvas/CanvasRenderingContext.cpp: * html/canvas/CanvasRenderingContext.h: * html/parser/HTMLParserIdioms.cpp: * html/parser/XSSAuditor.cpp: (WebCore::semicolonSeparatedValueContainsJavaScriptURL): (WebCore::XSSAuditor::filterScriptToken): (WebCore::XSSAuditor::filterObjectToken): (WebCore::XSSAuditor::filterParamToken): (WebCore::XSSAuditor::filterEmbedToken): (WebCore::XSSAuditor::filterFormToken): (WebCore::XSSAuditor::filterInputToken): (WebCore::XSSAuditor::filterButtonToken): (WebCore::XSSAuditor::eraseDangerousAttributesIfInjected): (WebCore::XSSAuditor::isLikelySafeResource): * html/parser/XSSAuditor.h: * html/parser/XSSAuditorDelegate.h: * inspector/InspectorFrontendHost.cpp: (WebCore::InspectorFrontendHost::openInNewTab): * inspector/InspectorInstrumentation.h: * inspector/agents/InspectorNetworkAgent.cpp: * inspector/agents/InspectorNetworkAgent.h: * inspector/agents/InspectorPageAgent.h: * inspector/agents/InspectorWorkerAgent.h: * loader/ApplicationManifestLoader.h: * loader/CookieJar.h: * loader/CrossOriginAccessControl.h: * loader/CrossOriginPreflightResultCache.h: * loader/DocumentLoader.cpp: (WebCore::DocumentLoader::willSendRequest): (WebCore::DocumentLoader::maybeLoadEmpty): * loader/DocumentLoader.h: (WebCore::DocumentLoader::serverRedirectSourceForHistory const): * loader/DocumentWriter.h: * loader/FormSubmission.h: * loader/FrameLoader.cpp: (WebCore::FrameLoader::submitForm): (WebCore::FrameLoader::receivedFirstData): (WebCore::FrameLoader::loadWithDocumentLoader): (WebCore::FrameLoader::continueLoadAfterNavigationPolicy): (WebCore::createWindow): * loader/FrameLoaderClient.h: * loader/HistoryController.cpp: (WebCore::HistoryController::currentItemShouldBeReplaced const): (WebCore::HistoryController::initializeItem): * loader/LinkLoader.h: * loader/LoadTiming.h: * loader/LoaderStrategy.h: * loader/MixedContentChecker.cpp: (WebCore::MixedContentChecker::checkFormForMixedContent const): * loader/MixedContentChecker.h: * loader/NavigationScheduler.cpp: (WebCore::NavigationScheduler::shouldScheduleNavigation const): * loader/NavigationScheduler.h: * loader/PingLoader.h: * loader/PolicyChecker.cpp: (WebCore::PolicyChecker::checkNavigationPolicy): * loader/ResourceLoadInfo.h: * loader/ResourceLoadObserver.cpp: (WebCore::ResourceLoadObserver::requestStorageAccessUnderOpener): * loader/ResourceLoadObserver.h: * loader/ResourceLoadStatistics.h: * loader/ResourceLoader.h: * loader/ResourceTiming.h: * loader/SubframeLoader.cpp: (WebCore::SubframeLoader::requestFrame): * loader/SubframeLoader.h: * loader/SubstituteData.h: * loader/appcache/ApplicationCache.h: * loader/appcache/ApplicationCacheGroup.h: * loader/appcache/ApplicationCacheHost.h: * loader/appcache/ApplicationCacheStorage.cpp: * loader/appcache/ApplicationCacheStorage.h: * loader/appcache/ManifestParser.cpp: * loader/appcache/ManifestParser.h: * loader/archive/ArchiveResourceCollection.h: * loader/archive/cf/LegacyWebArchive.cpp: (WebCore::LegacyWebArchive::createFromSelection): * loader/cache/CachedResource.cpp: * loader/cache/CachedResourceLoader.h: * loader/cache/CachedStyleSheetClient.h: * loader/cache/MemoryCache.h: * loader/icon/IconLoader.h: * loader/mac/LoaderNSURLExtras.mm: * page/CaptionUserPreferencesMediaAF.cpp: * page/ChromeClient.h: * page/ClientOrigin.h: * page/ContextMenuClient.h: * page/ContextMenuController.cpp: (WebCore::ContextMenuController::checkOrEnableIfNeeded const): * page/DOMWindow.cpp: (WebCore::DOMWindow::isInsecureScriptAccess): * page/DragController.cpp: (WebCore::DragController::startDrag): * page/DragController.h: * page/EventSource.h: * page/Frame.h: * page/FrameView.h: * page/History.h: * page/Location.cpp: (WebCore::Location::url const): (WebCore::Location::reload): * page/Location.h: * page/Page.h: * page/PageSerializer.h: * page/Performance.h: * page/PerformanceResourceTiming.cpp: * page/SecurityOrigin.cpp: (WebCore::SecurityOrigin::SecurityOrigin): (WebCore::SecurityOrigin::create): * page/SecurityOrigin.h: * page/SecurityOriginData.h: * page/SecurityOriginHash.h: * page/SecurityPolicy.cpp: (WebCore::SecurityPolicy::shouldInheritSecurityOriginFromOwner): * page/SecurityPolicy.h: * page/SettingsBase.h: * page/ShareData.h: * page/SocketProvider.h: * page/UserContentProvider.h: * page/UserContentURLPattern.cpp: * page/UserContentURLPattern.h: * page/UserScript.h: * page/UserStyleSheet.h: * page/VisitedLinkStore.h: * page/csp/ContentSecurityPolicy.h: * page/csp/ContentSecurityPolicyClient.h: * page/csp/ContentSecurityPolicyDirectiveList.h: * page/csp/ContentSecurityPolicySource.cpp: (WebCore::ContentSecurityPolicySource::portMatches const): * page/csp/ContentSecurityPolicySource.h: * page/csp/ContentSecurityPolicySourceList.cpp: * page/csp/ContentSecurityPolicySourceList.h: * page/csp/ContentSecurityPolicySourceListDirective.cpp: * platform/ContentFilterUnblockHandler.h: * platform/ContextMenuItem.h: * platform/Cookie.h: * platform/CookiesStrategy.h: * platform/DragData.h: * platform/DragImage.h: * platform/FileStream.h: * platform/LinkIcon.h: * platform/Pasteboard.cpp: (WebCore::Pasteboard::canExposeURLToDOMWhenPasteboardContainsFiles): * platform/Pasteboard.h: * platform/PasteboardStrategy.h: * platform/PasteboardWriterData.cpp: (WebCore::PasteboardWriterData::setURLData): (WebCore::PasteboardWriterData::setURL): Deleted. * platform/PasteboardWriterData.h: * platform/PlatformPasteboard.h: * platform/PromisedAttachmentInfo.h: * platform/SSLKeyGenerator.h: * platform/SchemeRegistry.cpp: (WebCore::SchemeRegistry::isBuiltinScheme): * platform/SharedBuffer.h: * platform/SharedStringHash.cpp: * platform/SharedStringHash.h: * platform/SourcesSoup.txt: * platform/UserAgent.h: * platform/UserAgentQuirks.cpp: * platform/UserAgentQuirks.h: * platform/cocoa/NetworkExtensionContentFilter.h: * platform/cocoa/NetworkExtensionContentFilter.mm: (WebCore::NetworkExtensionContentFilter::willSendRequest): * platform/glib/SSLKeyGeneratorGLib.cpp: Copied from Source/WebCore/page/ShareData.h. (WebCore::getSupportedKeySizes): (WebCore::signedPublicKeyAndChallengeString): * platform/glib/UserAgentGLib.cpp: * platform/graphics/GraphicsContext.h: * platform/graphics/Image.cpp: * platform/graphics/Image.h: * platform/graphics/ImageObserver.h: * platform/graphics/ImageSource.cpp: * platform/graphics/ImageSource.h: * platform/graphics/MediaPlayer.h: * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp: * platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp: * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: * platform/graphics/cg/GraphicsContextCG.cpp: * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp: * platform/graphics/gstreamer/mse/MediaPlayerPrivateGStreamerMSE.cpp: * platform/graphics/gstreamer/mse/WebKitMediaSourceGStreamer.cpp: (webKitMediaSrcSetUri): * platform/graphics/iso/ISOVTTCue.cpp: * platform/graphics/win/GraphicsContextDirect2D.cpp: * platform/gtk/DragImageGtk.cpp: * platform/gtk/PasteboardGtk.cpp: * platform/gtk/PlatformPasteboardGtk.cpp: * platform/gtk/SelectionData.h: * platform/ios/PasteboardIOS.mm: * platform/ios/PlatformPasteboardIOS.mm: (WebCore::PlatformPasteboard::write): * platform/ios/QuickLook.h: * platform/mac/DragDataMac.mm: (WebCore::DragData::asPlainText const): * platform/mac/DragImageMac.mm: * platform/mac/FileSystemMac.mm: (WebCore::FileSystem::setMetadataURL): * platform/mac/PasteboardMac.mm: * platform/mac/PasteboardWriter.mm: (WebCore::createPasteboardWriter): * platform/mac/PlatformPasteboardMac.mm: * platform/mac/PublicSuffixMac.mm: (WebCore::decodeHostName): * platform/mac/SSLKeyGeneratorMac.mm: * platform/mac/WebCoreNSURLExtras.h: * platform/mac/WebCoreNSURLExtras.mm: (WebCore::isArmenianLookalikeCharacter): Deleted. (WebCore::isArmenianScriptCharacter): Deleted. (WebCore::isASCIIDigitOrValidHostCharacter): Deleted. (WebCore::isLookalikeCharacter): Deleted. (WebCore::whiteListIDNScript): Deleted. (WebCore::readIDNScriptWhiteListFile): Deleted. (WebCore::allCharactersInIDNScriptWhiteList): Deleted. (WebCore::isSecondLevelDomainNameAllowedByTLDRules): Deleted. (WebCore::isRussianDomainNameCharacter): Deleted. (WebCore::allCharactersAllowedByTLDRules): Deleted. (WebCore::mapHostNameWithRange): Deleted. (WebCore::hostNameNeedsDecodingWithRange): Deleted. (WebCore::hostNameNeedsEncodingWithRange): Deleted. (WebCore::decodeHostNameWithRange): Deleted. (WebCore::encodeHostNameWithRange): Deleted. (WebCore::decodeHostName): Deleted. (WebCore::encodeHostName): Deleted. (WebCore::collectRangesThatNeedMapping): Deleted. (WebCore::collectRangesThatNeedEncoding): Deleted. (WebCore::collectRangesThatNeedDecoding): Deleted. (WebCore::applyHostNameFunctionToMailToURLString): Deleted. (WebCore::applyHostNameFunctionToURLString): Deleted. (WebCore::mapHostNames): Deleted. (WebCore::stringByTrimmingWhitespace): Deleted. (WebCore::URLByTruncatingOneCharacterBeforeComponent): Deleted. (WebCore::URLByRemovingResourceSpecifier): Deleted. (WebCore::URLWithData): Deleted. (WebCore::dataWithUserTypedString): Deleted. (WebCore::URLWithUserTypedString): Deleted. (WebCore::URLWithUserTypedStringDeprecated): Deleted. (WebCore::hasQuestionMarkOnlyQueryString): Deleted. (WebCore::dataForURLComponentType): Deleted. (WebCore::URLByRemovingComponentAndSubsequentCharacter): Deleted. (WebCore::URLByRemovingUserInfo): Deleted. (WebCore::originalURLData): Deleted. (WebCore::createStringWithEscapedUnsafeCharacters): Deleted. (WebCore::userVisibleString): Deleted. (WebCore::isUserVisibleURL): Deleted. (WebCore::rangeOfURLScheme): Deleted. (WebCore::looksLikeAbsoluteURL): Deleted. * platform/mediastream/MediaEndpointConfiguration.h: * platform/network/BlobPart.h: * platform/network/BlobRegistry.h: * platform/network/BlobRegistryImpl.h: * platform/network/BlobResourceHandle.cpp: * platform/network/CookieRequestHeaderFieldProxy.h: * platform/network/CredentialStorage.cpp: * platform/network/CredentialStorage.h: * platform/network/DataURLDecoder.cpp: * platform/network/DataURLDecoder.h: * platform/network/FormData.h: * platform/network/ProxyServer.h: * platform/network/ResourceErrorBase.h: * platform/network/ResourceHandle.cpp: (WebCore::ResourceHandle::didReceiveResponse): * platform/network/ResourceHandle.h: * platform/network/ResourceHandleClient.h: * platform/network/ResourceRequestBase.cpp: (WebCore::ResourceRequestBase::redirectedRequest const): * platform/network/ResourceRequestBase.h: * platform/network/ResourceResponseBase.h: * platform/network/SocketStreamHandle.h: * platform/network/cf/DNSResolveQueueCFNet.cpp: * platform/network/cf/NetworkStorageSessionCFNet.cpp: * platform/network/cf/ProxyServerCFNet.cpp: * platform/network/cf/ResourceErrorCF.cpp: * platform/network/cocoa/NetworkStorageSessionCocoa.mm: * platform/network/curl/CookieJarCurlDatabase.cpp: Added. (WebCore::cookiesForSession): (WebCore::CookieJarCurlDatabase::setCookiesFromDOM const): (WebCore::CookieJarCurlDatabase::setCookiesFromHTTPResponse const): (WebCore::CookieJarCurlDatabase::cookiesForDOM const): (WebCore::CookieJarCurlDatabase::cookieRequestHeaderFieldValue const): (WebCore::CookieJarCurlDatabase::cookiesEnabled const): (WebCore::CookieJarCurlDatabase::getRawCookies const): (WebCore::CookieJarCurlDatabase::deleteCookie const): (WebCore::CookieJarCurlDatabase::getHostnamesWithCookies const): (WebCore::CookieJarCurlDatabase::deleteCookiesForHostnames const): (WebCore::CookieJarCurlDatabase::deleteAllCookies const): (WebCore::CookieJarCurlDatabase::deleteAllCookiesModifiedSince const): * platform/network/curl/CookieJarDB.cpp: * platform/network/curl/CookieUtil.h: * platform/network/curl/CurlContext.h: * platform/network/curl/CurlProxySettings.h: * platform/network/curl/CurlResponse.h: * platform/network/curl/NetworkStorageSessionCurl.cpp: * platform/network/curl/ProxyServerCurl.cpp: * platform/network/curl/SocketStreamHandleImplCurl.cpp: * platform/network/mac/ResourceErrorMac.mm: * platform/network/soup/NetworkStorageSessionSoup.cpp: * platform/network/soup/ProxyServerSoup.cpp: * platform/network/soup/ResourceHandleSoup.cpp: * platform/network/soup/ResourceRequest.h: * platform/network/soup/ResourceRequestSoup.cpp: * platform/network/soup/SocketStreamHandleImplSoup.cpp: * platform/network/soup/SoupNetworkSession.cpp: * platform/network/soup/SoupNetworkSession.h: * platform/text/TextEncoding.h: * platform/win/BString.cpp: * platform/win/BString.h: * platform/win/ClipboardUtilitiesWin.cpp: (WebCore::markupToCFHTML): * platform/win/ClipboardUtilitiesWin.h: * platform/win/DragImageWin.cpp: * platform/win/PasteboardWin.cpp: * plugins/PluginData.h: * rendering/HitTestResult.h: * rendering/RenderAttachment.cpp: * svg/SVGImageLoader.cpp: (WebCore::SVGImageLoader::sourceURI const): * svg/SVGURIReference.cpp: * svg/graphics/SVGImage.h: * svg/graphics/SVGImageCache.h: * svg/graphics/SVGImageForContainer.h: * testing/Internals.cpp: (WebCore::Internals::resetToConsistentState): * testing/Internals.mm: (WebCore::Internals::userVisibleString): * testing/MockContentFilter.cpp: (WebCore::MockContentFilter::willSendRequest): * testing/MockPaymentCoordinator.cpp: * testing/js/WebCoreTestSupport.cpp: * workers/AbstractWorker.h: * workers/WorkerGlobalScope.h: * workers/WorkerGlobalScopeProxy.h: * workers/WorkerInspectorProxy.h: * workers/WorkerLocation.h: * workers/WorkerScriptLoader.h: * workers/WorkerThread.cpp: * workers/WorkerThread.h: * workers/service/ServiceWorker.h: * workers/service/ServiceWorkerClientData.h: * workers/service/ServiceWorkerContainer.cpp: * workers/service/ServiceWorkerContextData.h: * workers/service/ServiceWorkerData.h: * workers/service/ServiceWorkerJobData.h: * workers/service/ServiceWorkerRegistrationKey.cpp: * workers/service/ServiceWorkerRegistrationKey.h: (WTF::HashTraits<WebCore::ServiceWorkerRegistrationKey>::constructDeletedValue): * worklets/WorkletGlobalScope.h: * xml/XMLHttpRequest.h: Source/WebKit: * NetworkProcess/Cookies/WebCookieManager.cpp: * NetworkProcess/Cookies/WebCookieManager.h: * NetworkProcess/Cookies/WebCookieManager.messages.in: * NetworkProcess/CustomProtocols/Cocoa/LegacyCustomProtocolManagerCocoa.mm: * NetworkProcess/Downloads/Download.h: * NetworkProcess/Downloads/DownloadManager.cpp: (WebKit::DownloadManager::publishDownloadProgress): * NetworkProcess/Downloads/DownloadManager.h: * NetworkProcess/Downloads/PendingDownload.cpp: (WebKit::PendingDownload::publishProgress): * NetworkProcess/Downloads/PendingDownload.h: * NetworkProcess/Downloads/cocoa/DownloadCocoa.mm: (WebKit::Download::publishProgress): * NetworkProcess/FileAPI/NetworkBlobRegistry.cpp: (WebKit::NetworkBlobRegistry::registerBlobURL): (WebKit::NetworkBlobRegistry::registerBlobURLForSlice): (WebKit::NetworkBlobRegistry::unregisterBlobURL): (WebKit::NetworkBlobRegistry::blobSize): (WebKit::NetworkBlobRegistry::filesInBlob): * NetworkProcess/FileAPI/NetworkBlobRegistry.h: * NetworkProcess/NetworkConnectionToWebProcess.h: * NetworkProcess/NetworkConnectionToWebProcess.messages.in: * NetworkProcess/NetworkDataTask.cpp: (WebKit::NetworkDataTask::didReceiveResponse): * NetworkProcess/NetworkDataTaskBlob.cpp: * NetworkProcess/NetworkLoadChecker.h: (WebKit::NetworkLoadChecker::setContentExtensionController): (WebKit::NetworkLoadChecker::url const): * NetworkProcess/NetworkProcess.cpp: (WebKit::NetworkProcess::writeBlobToFilePath): (WebKit::NetworkProcess::publishDownloadProgress): (WebKit::NetworkProcess::preconnectTo): * NetworkProcess/NetworkProcess.h: * NetworkProcess/NetworkProcess.messages.in: * NetworkProcess/NetworkResourceLoadParameters.h: * NetworkProcess/NetworkResourceLoader.cpp: (WebKit::logBlockedCookieInformation): (WebKit::logCookieInformationInternal): * NetworkProcess/NetworkResourceLoader.h: * NetworkProcess/NetworkSocketStream.cpp: (WebKit::NetworkSocketStream::create): * NetworkProcess/NetworkSocketStream.h: * NetworkProcess/PingLoad.h: * NetworkProcess/ServiceWorker/WebSWServerConnection.h: * NetworkProcess/ServiceWorker/WebSWServerConnection.messages.in: * NetworkProcess/ServiceWorker/WebSWServerToContextConnection.messages.in: * NetworkProcess/cache/CacheStorageEngine.cpp: (WebKit::CacheStorage::Engine::retrieveRecords): * NetworkProcess/cache/CacheStorageEngine.h: * NetworkProcess/cache/CacheStorageEngineCache.h: * NetworkProcess/cache/CacheStorageEngineConnection.cpp: (WebKit::CacheStorageEngineConnection::retrieveRecords): * NetworkProcess/cache/CacheStorageEngineConnection.h: * NetworkProcess/cache/CacheStorageEngineConnection.messages.in: * NetworkProcess/cache/NetworkCache.h: * NetworkProcess/cache/NetworkCacheStatistics.cpp: (WebKit::NetworkCache::Statistics::recordRetrievedCachedEntry): (WebKit::NetworkCache::Statistics::recordRevalidationSuccess): * NetworkProcess/cache/NetworkCacheSubresourcesEntry.h: (WebKit::NetworkCache::SubresourceInfo::firstPartyForCookies const): * NetworkProcess/capture/NetworkCaptureEvent.cpp: (WebKit::NetworkCapture::Request::operator WebCore::ResourceRequest const): (WebKit::NetworkCapture::Response::operator WebCore::ResourceResponse const): (WebKit::NetworkCapture::Error::operator WebCore::ResourceError const): * NetworkProcess/capture/NetworkCaptureManager.cpp: (WebKit::NetworkCapture::Manager::findBestFuzzyMatch): (WebKit::NetworkCapture::Manager::fuzzyMatchURLs): (WebKit::NetworkCapture::Manager::urlIdentifyingCommonDomain): * NetworkProcess/capture/NetworkCaptureManager.h: * NetworkProcess/capture/NetworkCaptureResource.cpp: (WebKit::NetworkCapture::Resource::url): (WebKit::NetworkCapture::Resource::queryParameters): * NetworkProcess/capture/NetworkCaptureResource.h: * NetworkProcess/cocoa/NetworkDataTaskCocoa.mm: (WebKit::NetworkDataTaskCocoa::willPerformHTTPRedirection): * NetworkProcess/cocoa/NetworkProcessCocoa.mm: (WebKit::NetworkProcess::deleteHSTSCacheForHostNames): * NetworkProcess/cocoa/NetworkSessionCocoa.mm: (-[WKNetworkSessionDelegate URLSession:task:didReceiveChallenge:completionHandler:]): * PluginProcess/mac/PluginProcessMac.mm: (WebKit::openCFURLRef): (WebKit::replacedNSWorkspace_launchApplicationAtURL_options_configuration_error): * Shared/API/APIURL.h: (API::URL::create): (API::URL::equals): (API::URL::URL): (API::URL::url const): (API::URL::parseURLIfNecessary const): * Shared/API/APIUserContentURLPattern.h: (API::UserContentURLPattern::matchesURL const): * Shared/API/c/WKURLRequest.cpp: * Shared/API/c/WKURLResponse.cpp: * Shared/API/c/cf/WKURLCF.mm: (WKURLCreateWithCFURL): (WKURLCopyCFURL): * Shared/API/glib/WebKitURIRequest.cpp: * Shared/API/glib/WebKitURIResponse.cpp: * Shared/APIWebArchiveResource.mm: (API::WebArchiveResource::WebArchiveResource): * Shared/AssistedNodeInformation.h: * Shared/Cocoa/WKNSURLExtras.mm: (-[NSURL _web_originalDataAsWTFString]): (): Deleted. * Shared/SessionState.h: * Shared/WebBackForwardListItem.cpp: (WebKit::WebBackForwardListItem::itemIsInSameDocument const): * Shared/WebCoreArgumentCoders.cpp: * Shared/WebCoreArgumentCoders.h: * Shared/WebErrors.h: * Shared/WebHitTestResultData.cpp: * Shared/cf/ArgumentCodersCF.cpp: (IPC::encode): (IPC::decode): * Shared/gtk/WebErrorsGtk.cpp: * Shared/ios/InteractionInformationAtPosition.h: * UIProcess/API/APIHTTPCookieStore.h: * UIProcess/API/APINavigation.cpp: (API::Navigation::appendRedirectionURL): * UIProcess/API/APINavigation.h: (API::Navigation::takeRedirectChain): * UIProcess/API/APINavigationAction.h: * UIProcess/API/APINavigationClient.h: (API::NavigationClient::signedPublicKeyAndChallengeString): (API::NavigationClient::contentRuleListNotification): (API::NavigationClient::webGLLoadPolicy const): (API::NavigationClient::resolveWebGLLoadPolicy const): * UIProcess/API/APIUIClient.h: (API::UIClient::saveDataToFileInDownloadsFolder): * UIProcess/API/APIUserScript.cpp: (API::UserScript::generateUniqueURL): * UIProcess/API/APIUserScript.h: * UIProcess/API/APIUserStyleSheet.cpp: (API::UserStyleSheet::generateUniqueURL): * UIProcess/API/APIUserStyleSheet.h: * UIProcess/API/C/WKOpenPanelResultListener.cpp: (filePathsFromFileURLs): * UIProcess/API/C/WKPage.cpp: (WKPageLoadPlainTextStringWithUserData): (WKPageSetPageUIClient): (WKPageSetPageNavigationClient): * UIProcess/API/C/WKPageGroup.cpp: (WKPageGroupAddUserStyleSheet): (WKPageGroupAddUserScript): * UIProcess/API/C/WKWebsiteDataStoreRef.cpp: (WKWebsiteDataStoreSetResourceLoadStatisticsPrevalentResourceForDebugMode): (WKWebsiteDataStoreSetStatisticsLastSeen): (WKWebsiteDataStoreSetStatisticsPrevalentResource): (WKWebsiteDataStoreSetStatisticsVeryPrevalentResource): (WKWebsiteDataStoreIsStatisticsPrevalentResource): (WKWebsiteDataStoreIsStatisticsVeryPrevalentResource): (WKWebsiteDataStoreIsStatisticsRegisteredAsSubresourceUnder): (WKWebsiteDataStoreIsStatisticsRegisteredAsSubFrameUnder): (WKWebsiteDataStoreIsStatisticsRegisteredAsRedirectingTo): (WKWebsiteDataStoreSetStatisticsHasHadUserInteraction): (WKWebsiteDataStoreIsStatisticsHasHadUserInteraction): (WKWebsiteDataStoreSetStatisticsGrandfathered): (WKWebsiteDataStoreIsStatisticsGrandfathered): (WKWebsiteDataStoreSetStatisticsSubframeUnderTopFrameOrigin): (WKWebsiteDataStoreSetStatisticsSubresourceUnderTopFrameOrigin): (WKWebsiteDataStoreSetStatisticsSubresourceUniqueRedirectTo): (WKWebsiteDataStoreSetStatisticsSubresourceUniqueRedirectFrom): (WKWebsiteDataStoreSetStatisticsTopFrameUniqueRedirectTo): (WKWebsiteDataStoreSetStatisticsTopFrameUniqueRedirectFrom): * UIProcess/API/Cocoa/WKHTTPCookieStore.mm: * UIProcess/API/Cocoa/WKUserScript.mm: (-[WKUserScript _initWithSource:injectionTime:forMainFrameOnly:legacyWhitelist:legacyBlacklist:associatedURL:userContentWorld:]): * UIProcess/API/Cocoa/WKWebView.mm: (-[WKWebView _showSafeBrowsingWarning:completionHandler:]): (-[WKWebView _showSafeBrowsingWarningWithTitle:warning:details:completionHandler:]): * UIProcess/API/Cocoa/WKWebViewConfiguration.mm: (-[WKWebViewConfiguration setURLSchemeHandler:forURLScheme:]): (-[WKWebViewConfiguration urlSchemeHandlerForURLScheme:]): * UIProcess/API/Cocoa/WKWebViewInternal.h: * UIProcess/API/Cocoa/WKWebsiteDataStore.mm: * UIProcess/API/Cocoa/_WKApplicationManifest.mm: (-[_WKApplicationManifest initWithCoder:]): (+[_WKApplicationManifest applicationManifestFromJSON:manifestURL:documentURL:]): * UIProcess/API/Cocoa/_WKUserStyleSheet.mm: (-[_WKUserStyleSheet initWithSource:forMainFrameOnly:legacyWhitelist:legacyBlacklist:baseURL:userContentWorld:]): * UIProcess/API/glib/IconDatabase.cpp: * UIProcess/API/glib/WebKitCookieManager.cpp: (webkit_cookie_manager_get_cookies): * UIProcess/API/glib/WebKitFileChooserRequest.cpp: * UIProcess/API/glib/WebKitSecurityOrigin.cpp: (webkit_security_origin_new_for_uri): * UIProcess/API/glib/WebKitUIClient.cpp: * UIProcess/API/glib/WebKitURISchemeRequest.cpp: * UIProcess/API/glib/WebKitWebView.cpp: (webkit_web_view_load_plain_text): * UIProcess/API/gtk/WebKitRemoteInspectorProtocolHandler.cpp: * UIProcess/ApplePay/WebPaymentCoordinatorProxy.cpp: (WebKit::WebPaymentCoordinatorProxy::showPaymentUI): (WebKit::WebPaymentCoordinatorProxy::validateMerchant): * UIProcess/ApplePay/WebPaymentCoordinatorProxy.h: * UIProcess/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.h: * UIProcess/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm: (WebKit::toPKPaymentRequest): * UIProcess/ApplePay/ios/WebPaymentCoordinatorProxyIOS.mm: (WebKit::WebPaymentCoordinatorProxy::platformShowPaymentUI): * UIProcess/ApplePay/mac/WebPaymentCoordinatorProxyMac.mm: (WebKit::WebPaymentCoordinatorProxy::platformShowPaymentUI): * UIProcess/Automation/WebAutomationSession.cpp: (WebKit::WebAutomationSession::navigateBrowsingContext): (WebKit::domainByAddingDotPrefixIfNeeded): (WebKit::WebAutomationSession::addSingleCookie): (WebKit::WebAutomationSession::deleteAllCookies): * UIProcess/Cocoa/DownloadClient.mm: (WebKit::DownloadClient::didFinish): * UIProcess/Cocoa/NavigationState.h: * UIProcess/Cocoa/NavigationState.mm: (WebKit::NavigationState::NavigationClient::webGLLoadPolicy const): (WebKit::NavigationState::NavigationClient::resolveWebGLLoadPolicy const): (WebKit::NavigationState::NavigationClient::contentRuleListNotification): (WebKit::NavigationState::NavigationClient::willPerformClientRedirect): (WebKit::NavigationState::NavigationClient::didPerformClientRedirect): (WebKit::NavigationState::NavigationClient::signedPublicKeyAndChallengeString): * UIProcess/Cocoa/SafeBrowsingResultCocoa.mm: Copied from Source/WebKit/WebProcess/Network/WebSocketProvider.h. (WebKit::SafeBrowsingResult::SafeBrowsingResult): * UIProcess/Cocoa/SafeBrowsingWarningCocoa.mm: (WebKit::reportAnErrorURL): (WebKit::malwareDetailsURL): (WebKit::safeBrowsingDetailsText): (WebKit::SafeBrowsingWarning::SafeBrowsingWarning): * UIProcess/Cocoa/SystemPreviewControllerCocoa.mm: (-[_WKPreviewControllerDataSource finish:]): (WebKit::SystemPreviewController::finish): * UIProcess/Cocoa/UIDelegate.h: * UIProcess/Cocoa/UIDelegate.mm: (WebKit::UIDelegate::UIClient::createNewPage): (WebKit::UIDelegate::UIClient::saveDataToFileInDownloadsFolder): (WebKit::requestUserMediaAuthorizationForDevices): (WebKit::UIDelegate::UIClient::checkUserMediaPermissionForOrigin): * UIProcess/Cocoa/WKReloadFrameErrorRecoveryAttempter.mm: (-[WKReloadFrameErrorRecoveryAttempter attemptRecovery]): * UIProcess/Cocoa/WKSafeBrowsingWarning.h: * UIProcess/Cocoa/WKSafeBrowsingWarning.mm: (-[WKSafeBrowsingWarning initWithFrame:safeBrowsingWarning:completionHandler:]): * UIProcess/Cocoa/WebPasteboardProxyCocoa.mm: * UIProcess/Cocoa/WebViewImpl.h: * UIProcess/Cocoa/WebViewImpl.mm: (WebKit::WebViewImpl::showSafeBrowsingWarning): (WebKit::WebViewImpl::writeToURLForFilePromiseProvider): * UIProcess/Downloads/DownloadProxy.cpp: (WebKit::DownloadProxy::publishProgress): * UIProcess/Downloads/DownloadProxy.h: (WebKit::DownloadProxy::setRedirectChain): (WebKit::DownloadProxy::redirectChain const): * UIProcess/FrameLoadState.cpp: (WebKit::FrameLoadState::didStartProvisionalLoad): (WebKit::FrameLoadState::didReceiveServerRedirectForProvisionalLoad): (WebKit::FrameLoadState::didSameDocumentNotification): (WebKit::FrameLoadState::setUnreachableURL): * UIProcess/FrameLoadState.h: (WebKit::FrameLoadState::url const): (WebKit::FrameLoadState::setURL): (WebKit::FrameLoadState::provisionalURL const): (WebKit::FrameLoadState::unreachableURL const): * UIProcess/Network/NetworkProcessProxy.cpp: (WebKit::NetworkProcessProxy::writeBlobToFilePath): * UIProcess/Network/NetworkProcessProxy.h: * UIProcess/PageClient.h: (WebKit::PageClient::showSafeBrowsingWarning): * UIProcess/PageLoadState.cpp: (WebKit::PageLoadState::hasOnlySecureContent): * UIProcess/Plugins/PluginInfoStore.cpp: * UIProcess/Plugins/PluginInfoStore.h: * UIProcess/Plugins/mac/PluginProcessProxyMac.mm: * UIProcess/SafeBrowsingResult.h: Copied from Source/WebKit/UIProcess/SystemPreviewController.h. (WebKit::SafeBrowsingResult::create): (WebKit::SafeBrowsingResult::url const): (WebKit::SafeBrowsingResult::provider const): (WebKit::SafeBrowsingResult::isPhishing const): (WebKit::SafeBrowsingResult::isMalware const): (WebKit::SafeBrowsingResult::isUnwantedSoftware const): (WebKit::SafeBrowsingResult::isKnownToBeUnsafe const): * UIProcess/SafeBrowsingWarning.h: (WebKit::SafeBrowsingWarning::create): * UIProcess/SuspendedPageProxy.cpp: * UIProcess/SystemPreviewController.h: * UIProcess/WebCookieManagerProxy.h: * UIProcess/WebFrameProxy.h: (WebKit::WebFrameProxy::url const): (WebKit::WebFrameProxy::provisionalURL const): (WebKit::WebFrameProxy::unreachableURL const): * UIProcess/WebInspectorProxy.h: * UIProcess/WebOpenPanelResultListenerProxy.cpp: * UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::loadDataWithNavigation): (WebKit::WebPageProxy::loadAlternateHTML): (WebKit::WebPageProxy::loadWebArchiveData): (WebKit::WebPageProxy::navigateToPDFLinkWithSimulatedClick): (WebKit::WebPageProxy::continueNavigationInNewProcess): (WebKit::WebPageProxy::didStartProvisionalLoadForFrame): (WebKit::WebPageProxy::didChangeProvisionalURLForFrame): (WebKit::WebPageProxy::didSameDocumentNavigationForFrame): (WebKit::WebPageProxy::contentRuleListNotification): (WebKit::WebPageProxy::processDidTerminate): (WebKit::WebPageProxy::signedPublicKeyAndChallengeString): (WebKit::WebPageProxy::setURLSchemeHandlerForScheme): * UIProcess/WebPageProxy.h: * UIProcess/WebPageProxy.messages.in: * UIProcess/WebProcessPool.cpp: (WebKit::WebProcessPool::tryPrewarmWithDomainInformation): * UIProcess/WebProcessPool.h: * UIProcess/WebProcessProxy.cpp: (WebKit::WebProcessProxy::processDidTerminateOrFailedToLaunch): * UIProcess/WebProcessProxy.h: * UIProcess/WebResourceLoadStatisticsStore.cpp: (WebKit::WebResourceLoadStatisticsStore::setPrevalentResourceForDebugMode): (WebKit::WebResourceLoadStatisticsStore::logFrameNavigation): * UIProcess/WebResourceLoadStatisticsStore.h: * UIProcess/ios/DragDropInteractionState.h: * UIProcess/ios/PageClientImplIOS.h: * UIProcess/ios/PageClientImplIOS.mm: (WebKit::PageClientImpl::showSafeBrowsingWarning): * UIProcess/ios/WKActionSheetAssistant.mm: (-[WKActionSheetAssistant _createSheetWithElementActions:showLinkTitle:]): * UIProcess/ios/WKContentViewInteraction.mm: (-[WKContentView actionSheetAssistant:shareElementWithURL:rect:]): (-[WKContentView _presentedViewControllerForPreviewItemController:]): * UIProcess/ios/WKGeolocationProviderIOS.mm: (-[WKGeolocationProviderIOS geolocationAuthorizationGranted]): * UIProcess/ios/WKLegacyPDFView.mm: (-[WKLegacyPDFView actionSheetAssistant:shareElementWithURL:rect:]): * UIProcess/ios/WKPDFView.mm: (-[WKPDFView actionSheetAssistant:shareElementWithURL:rect:]): * UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm: (-[WKFullScreenWindowController _updateLocationInfo]): * UIProcess/mac/LegacySessionStateCoding.cpp: (WebKit::decodeLegacySessionState): * UIProcess/mac/PageClientImplMac.h: * UIProcess/mac/PageClientImplMac.mm: (WebKit::PageClientImpl::showSafeBrowsingWarning): * UIProcess/mac/WKImmediateActionController.mm: (-[WKImmediateActionController _defaultAnimationController]): * UIProcess/win/WebInspectorProxyWin.cpp: * WebProcess/ApplePay/WebPaymentCoordinator.cpp: (WebKit::WebPaymentCoordinator::showPaymentUI): (WebKit::WebPaymentCoordinator::validateMerchant): * WebProcess/ApplePay/WebPaymentCoordinator.h: * WebProcess/Cache/WebCacheStorageConnection.cpp: (WebKit::WebCacheStorageConnection::doRetrieveRecords): * WebProcess/Cache/WebCacheStorageConnection.h: * WebProcess/FileAPI/BlobRegistryProxy.cpp: (WebKit::BlobRegistryProxy::registerFileBlobURL): * WebProcess/FileAPI/BlobRegistryProxy.h: * WebProcess/InjectedBundle/API/APIInjectedBundlePageLoaderClient.h: (API::InjectedBundle::PageLoaderClient::willLoadDataRequest): (API::InjectedBundle::PageLoaderClient::userAgentForURL const): * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp: (WKBundleFrameAllowsFollowingLink): (WKBundleFrameCopySuggestedFilenameForResourceWithURL): (WKBundleFrameCopyMIMETypeForResourceWithURL): * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp: (WKBundlePageHasLocalDataForURL): * WebProcess/InjectedBundle/API/gtk/DOM/ConvertToUTF8String.cpp: (convertToUTF8String): * WebProcess/InjectedBundle/API/gtk/DOM/ConvertToUTF8String.h: * WebProcess/InjectedBundle/InjectedBundleHitTestResult.cpp: * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h: * WebProcess/MediaCache/WebMediaKeyStorageManager.cpp: * WebProcess/Network/WebLoaderStrategy.cpp: (WebKit::WebLoaderStrategy::preconnectTo): * WebProcess/Network/WebLoaderStrategy.h: * WebProcess/Network/WebSocketProvider.h: * WebProcess/Network/WebSocketStream.cpp: (WebKit::WebSocketStream::WebSocketStream): * WebProcess/Network/WebSocketStream.h: * WebProcess/Plugins/Netscape/NetscapePlugin.cpp: * WebProcess/Plugins/Netscape/NetscapePlugin.h: * WebProcess/Plugins/Netscape/NetscapePluginStream.h: * WebProcess/Plugins/PDF/PDFPlugin.h: * WebProcess/Plugins/PDF/PDFPlugin.mm: (WebKit::PDFPlugin::clickedLink): * WebProcess/Plugins/Plugin.h: * WebProcess/Plugins/PluginController.h: * WebProcess/Plugins/PluginProxy.h: * WebProcess/Plugins/PluginView.cpp: (WebKit::PluginView::performURLRequest): (WebKit::PluginView::performJavaScriptURLRequest): * WebProcess/Plugins/WebPluginInfoProvider.cpp: (WebKit::WebPluginInfoProvider::webVisiblePluginInfo): * WebProcess/Plugins/WebPluginInfoProvider.h: * WebProcess/Storage/WebSWClientConnection.h: * WebProcess/Storage/WebSWContextManagerConnection.h: * WebProcess/UserContent/WebUserContentController.h: * WebProcess/WebCoreSupport/WebChromeClient.cpp: (WebKit::WebChromeClient::signedPublicKeyAndChallengeString const): * WebProcess/WebCoreSupport/WebChromeClient.h: * WebProcess/WebCoreSupport/WebContextMenuClient.h: * WebProcess/WebCoreSupport/WebDragClient.h: * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp: (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForResponse): (WebKit::WebFrameLoaderClient::shouldForceUniversalAccessFromLocalURL): * WebProcess/WebCoreSupport/WebFrameLoaderClient.h: * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp: (WebKit::WebPlatformStrategies::readURLFromPasteboard): * WebProcess/WebCoreSupport/WebPlatformStrategies.h: * WebProcess/WebCoreSupport/mac/WebDragClientMac.mm: (WebKit::WebDragClient::declareAndWriteDragImage): * WebProcess/WebCoreSupport/mac/WebEditorClientMac.mm: * WebProcess/WebPage/VisitedLinkTableController.h: * WebProcess/WebPage/WebFrame.cpp: (WebKit::WebFrame::allowsFollowingLink const): * WebProcess/WebPage/WebFrame.h: * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::loadURLInFrame): (WebKit::WebPage::loadData): (WebKit::WebPage::loadAlternateHTML): (WebKit::WebPage::dumpHistoryForTesting): (WebKit::WebPage::sendCSPViolationReport): (WebKit::WebPage::addUserScript): (WebKit::WebPage::addUserStyleSheet): * WebProcess/WebPage/WebPage.h: * WebProcess/WebPage/WebPage.messages.in: * WebProcess/WebPage/gtk/WebPrintOperationGtk.cpp: (WebKit::WebPrintOperationGtk::frameURL const): * WebProcess/WebPage/gtk/WebPrintOperationGtk.h: * WebProcess/WebProcess.cpp: (WebKit::WebProcess::sendPrewarmInformation): * WebProcess/WebProcess.h: * WebProcess/cocoa/WebProcessCocoa.mm: (WebKit::activePagesOrigins): Source/WebKitLegacy: * WebCoreSupport/WebResourceLoadScheduler.cpp: * WebCoreSupport/WebResourceLoadScheduler.h: Source/WebKitLegacy/mac: * DOM/DOMAttr.mm: * DOM/DOMBlob.mm: * DOM/DOMCSSCharsetRule.mm: * DOM/DOMCSSImportRule.mm: * DOM/DOMCSSMediaRule.mm: * DOM/DOMCSSPageRule.mm: * DOM/DOMCSSPrimitiveValue.mm: * DOM/DOMCSSRule.mm: * DOM/DOMCSSStyleDeclaration.mm: * DOM/DOMCSSStyleRule.mm: * DOM/DOMCSSStyleSheet.mm: * DOM/DOMCSSValue.mm: * DOM/DOMCharacterData.mm: * DOM/DOMCounter.mm: * DOM/DOMDocument.mm: * DOM/DOMDocumentFragment.mm: * DOM/DOMDocumentType.mm: * DOM/DOMEvent.mm: * DOM/DOMFile.mm: * DOM/DOMHTMLAnchorElement.mm: * DOM/DOMHTMLAppletElement.mm: * DOM/DOMHTMLAreaElement.mm: * DOM/DOMHTMLBRElement.mm: * DOM/DOMHTMLBaseElement.mm: * DOM/DOMHTMLBaseFontElement.mm: * DOM/DOMHTMLBodyElement.mm: * DOM/DOMHTMLButtonElement.mm: * DOM/DOMHTMLCanvasElement.mm: * DOM/DOMHTMLCollection.mm: * DOM/DOMHTMLDivElement.mm: * DOM/DOMHTMLDocument.mm: * DOM/DOMHTMLElement.mm: * DOM/DOMHTMLEmbedElement.mm: * DOM/DOMHTMLFieldSetElement.mm: * DOM/DOMHTMLFontElement.mm: * DOM/DOMHTMLFormElement.mm: * DOM/DOMHTMLFrameElement.mm: * DOM/DOMHTMLFrameSetElement.mm: * DOM/DOMHTMLHRElement.mm: * DOM/DOMHTMLHeadElement.mm: * DOM/DOMHTMLHeadingElement.mm: * DOM/DOMHTMLHtmlElement.mm: * DOM/DOMHTMLIFrameElement.mm: * DOM/DOMHTMLImageElement.mm: * DOM/DOMHTMLInputElement.mm: * DOM/DOMHTMLLIElement.mm: * DOM/DOMHTMLLabelElement.mm: * DOM/DOMHTMLLegendElement.mm: * DOM/DOMHTMLLinkElement.mm: * DOM/DOMHTMLMapElement.mm: * DOM/DOMHTMLMarqueeElement.mm: * DOM/DOMHTMLMediaElement.mm: * DOM/DOMHTMLMetaElement.mm: * DOM/DOMHTMLModElement.mm: * DOM/DOMHTMLOListElement.mm: * DOM/DOMHTMLObjectElement.mm: * DOM/DOMHTMLOptGroupElement.mm: * DOM/DOMHTMLOptionElement.mm: * DOM/DOMHTMLOptionsCollection.mm: * DOM/DOMHTMLParagraphElement.mm: * DOM/DOMHTMLParamElement.mm: * DOM/DOMHTMLQuoteElement.mm: * DOM/DOMHTMLScriptElement.mm: * DOM/DOMHTMLSelectElement.mm: * DOM/DOMHTMLStyleElement.mm: * DOM/DOMHTMLTableCaptionElement.mm: * DOM/DOMHTMLTableCellElement.mm: * DOM/DOMHTMLTableColElement.mm: * DOM/DOMHTMLTableElement.mm: * DOM/DOMHTMLTableRowElement.mm: * DOM/DOMHTMLTableSectionElement.mm: * DOM/DOMHTMLTitleElement.mm: * DOM/DOMHTMLUListElement.mm: * DOM/DOMHTMLVideoElement.mm: * DOM/DOMKeyboardEvent.mm: * DOM/DOMMediaList.mm: * DOM/DOMMouseEvent.mm: * DOM/DOMMutationEvent.mm: * DOM/DOMNamedNodeMap.mm: * DOM/DOMProcessingInstruction.mm: * DOM/DOMRange.mm: * DOM/DOMStyleSheet.mm: * DOM/DOMText.mm: * DOM/DOMTextEvent.mm: * DOM/DOMTokenList.mm: * DOM/DOMUIEvent.mm: * DOM/DOMXPathResult.mm: * History/WebHistoryItem.mm: * Misc/WebNSURLExtras.mm: (-[NSURL _web_userVisibleString]): (-[NSURL _web_URLByRemovingUserInfo]): (-[NSURL _web_dataForURLComponentType:]): (-[NSURL _web_schemeData]): (-[NSURL _web_hostData]): * Misc/WebUserContentURLPattern.mm: * Plugins/Hosted/NetscapePluginInstanceProxy.mm: * Plugins/WebNetscapePluginStream.h: (WebNetscapePluginStream::setRequestURL): * WebCoreSupport/WebChromeClient.h: * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::signedPublicKeyAndChallengeString const): * WebCoreSupport/WebContextMenuClient.h: * WebCoreSupport/WebContextMenuClient.mm: * WebCoreSupport/WebDragClient.h: * WebCoreSupport/WebFrameLoaderClient.h: * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::updateGlobalHistory): * WebCoreSupport/WebPaymentCoordinatorClient.h: * WebCoreSupport/WebPaymentCoordinatorClient.mm: (WebPaymentCoordinatorClient::showPaymentUI): * WebCoreSupport/WebPlatformStrategies.h: * WebCoreSupport/WebPlatformStrategies.mm: (WebPlatformStrategies::readURLFromPasteboard): * WebCoreSupport/WebPluginInfoProvider.h: * WebCoreSupport/WebPluginInfoProvider.mm: (WebPluginInfoProvider::webVisiblePluginInfo): * WebCoreSupport/WebSecurityOrigin.mm: * WebCoreSupport/WebVisitedLinkStore.h: * WebView/WebDataSource.mm: * WebView/WebFrame.mm: (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]): * WebView/WebImmediateActionController.mm: (-[WebImmediateActionController _defaultAnimationController]): * WebView/WebPDFView.mm: * WebView/WebScriptDebugger.mm: * WebView/WebViewInternal.h: Source/WebKitLegacy/win: * MarshallingHelpers.cpp: * MarshallingHelpers.h: * Plugins/PluginDatabase.cpp: * Plugins/PluginDatabase.h: * Plugins/PluginDatabaseWin.cpp: * Plugins/PluginStream.h: * Plugins/PluginView.h: * WebCoreSupport/WebContextMenuClient.h: * WebCoreSupport/WebDesktopNotificationsDelegate.cpp: * WebCoreSupport/WebDesktopNotificationsDelegate.h: * WebCoreSupport/WebFrameLoaderClient.h: * WebCoreSupport/WebPlatformStrategies.h: * WebCoreSupport/WebPluginInfoProvider.cpp: (WebPluginInfoProvider::webVisiblePluginInfo): * WebCoreSupport/WebPluginInfoProvider.h: * WebCoreSupport/WebVisitedLinkStore.h: * WebDataSource.cpp: * WebDownload.h: * WebElementPropertyBag.cpp: * WebFrame.h: * WebHistory.cpp: * WebHistory.h: * WebHistoryItem.cpp: * WebResource.cpp: (WebResource::WebResource): * WebResource.h: * WebSecurityOrigin.cpp: * WebURLResponse.cpp: (WebURLResponse::createInstance): * WebUserContentURLPattern.cpp: * WebView.h: Source/WTF: * WTF.xcodeproj/project.pbxproj: * wtf/CMakeLists.txt: * wtf/Forward.h: * wtf/PlatformGTK.cmake: * wtf/PlatformMac.cmake: * wtf/PlatformWPE.cmake: * wtf/PlatformWin.cmake: * wtf/URL.cpp: Renamed from Source/WebCore/platform/URL.cpp. (WTF::URL::protocolIs): * wtf/URL.h: Renamed from Source/WebCore/platform/URL.h. * wtf/URLHash.h: Renamed from Source/WebCore/platform/URLHash.h. (WTF::URLHash::hash): (WTF::URLHash::equal): * wtf/URLParser.cpp: Renamed from Source/WebCore/platform/URLParser.cpp. (WTF::URLParser::isInUserInfoEncodeSet): (WTF::URLParser::parseAuthority): * wtf/URLParser.h: Renamed from Source/WebCore/platform/URLParser.h. (WTF::URLParser::URLParser): (WTF::URLParser::result): * wtf/cf/CFURLExtras.cpp: Renamed from Source/WebCore/platform/cf/CFURLExtras.cpp. * wtf/cf/CFURLExtras.h: Renamed from Source/WebCore/platform/cf/CFURLExtras.h. * wtf/cf/URLCF.cpp: Renamed from Source/WebCore/platform/cf/URLCF.cpp. * wtf/cocoa/NSURLExtras.h: Copied from Source/WebCore/loader/archive/ArchiveResourceCollection.h. * wtf/cocoa/NSURLExtras.mm: Copied from Source/WebCore/platform/mac/WebCoreNSURLExtras.mm. (WTF::isArmenianLookalikeCharacter): (WTF::isArmenianScriptCharacter): (WTF::isASCIIDigitOrValidHostCharacter): (WTF::isLookalikeCharacter): (WTF::whiteListIDNScript): (WTF::readIDNScriptWhiteListFile): (WTF::allCharactersInIDNScriptWhiteList): (WTF::isSecondLevelDomainNameAllowedByTLDRules): (WTF::isRussianDomainNameCharacter): (WTF::allCharactersAllowedByTLDRules): (WTF::mapHostNameWithRange): (WTF::hostNameNeedsDecodingWithRange): (WTF::hostNameNeedsEncodingWithRange): (WTF::decodeHostNameWithRange): (WTF::encodeHostNameWithRange): (WTF::decodeHostName): (WTF::encodeHostName): (WTF::collectRangesThatNeedMapping): (WTF::collectRangesThatNeedEncoding): (WTF::collectRangesThatNeedDecoding): (WTF::applyHostNameFunctionToMailToURLString): (WTF::applyHostNameFunctionToURLString): (WTF::mapHostNames): (WTF::stringByTrimmingWhitespace): (WTF::URLByTruncatingOneCharacterBeforeComponent): (WTF::URLByRemovingResourceSpecifier): (WTF::URLWithData): (WTF::dataWithUserTypedString): (WTF::URLWithUserTypedString): (WTF::URLWithUserTypedStringDeprecated): (WTF::hasQuestionMarkOnlyQueryString): (WTF::dataForURLComponentType): (WTF::URLByRemovingComponentAndSubsequentCharacter): (WTF::URLByRemovingUserInfo): (WTF::originalURLData): (WTF::createStringWithEscapedUnsafeCharacters): (WTF::userVisibleString): (WTF::isUserVisibleURL): (WTF::rangeOfURLScheme): (WTF::looksLikeAbsoluteURL): * wtf/cocoa/URLCocoa.mm: Renamed from Source/WebCore/platform/mac/URLMac.mm. (WTF::URL::URL): (WTF::URL::createCFURL const): * wtf/glib/GUniquePtrSoup.h: Renamed from Source/WebCore/platform/network/soup/GUniquePtrSoup.h. * wtf/glib/URLSoup.cpp: Renamed from Source/WebCore/platform/soup/URLSoup.cpp. Tools: * TestWebKitAPI/Tests/WebCore/ContentExtensions.cpp: * TestWebKitAPI/Tests/WebCore/SecurityOrigin.cpp: * TestWebKitAPI/Tests/WebCore/URL.cpp: (TestWebKitAPI::createURL): (TestWebKitAPI::TEST_F): * TestWebKitAPI/Tests/WebCore/URLParser.cpp: (TestWebKitAPI::checkURL): (TestWebKitAPI::checkRelativeURL): (TestWebKitAPI::checkURLDifferences): (TestWebKitAPI::checkRelativeURLDifferences): * TestWebKitAPI/Tests/WebCore/UserAgentQuirks.cpp: * TestWebKitAPI/Tests/WebCore/YouTubePluginReplacement.cpp: * TestWebKitAPI/Tests/WebCore/cocoa/URLExtras.mm: (TestWebKitAPI::originalDataAsString): (TestWebKitAPI::userVisibleString): (TestWebKitAPI::literalURL): (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/WebKitCocoa/LoadAlternateHTMLString.mm: (TEST): * TestWebKitAPI/Tests/WebKitCocoa/LoadInvalidURLRequest.mm: (literalURL): * TestWebKitAPI/Tests/WebKitGLib/TestCookieManager.cpp: * TestWebKitAPI/Tests/mac/LoadInvalidURLRequest.mm: (-[LoadInvalidURLWebFrameLoadDelegate webView:didFailProvisionalLoadWithError:forFrame:]): * TestWebKitAPI/Tests/mac/SSLKeyGenerator.mm: * TestWebKitAPI/win/PlatformUtilitiesWin.cpp: (TestWebKitAPI::Util::createURLForResource): * lldb/lldb_webkit.py: (__lldb_init_module): (WTFURL_SummaryProvider): (WTFURLProvider): (WebCoreURL_SummaryProvider): Deleted. (WebCoreURLProvider): Deleted. (WebCoreURLProvider.__init__): Deleted. (WebCoreURLProvider.to_string): Deleted. Canonical link: https://commits.webkit.org/206915@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@238771 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-12-01 03:28:36 +00:00
cf/CFURLExtras.h
cf/SpanCF.h
cf/TypeCastsCF.h
cocoa/CrashReporter.h
Don't try to allocate JIT memory if we don't have the JIT entitlement https://bugs.webkit.org/show_bug.cgi?id=182605 <rdar://problem/38271229> Patch by Tadeu Zagallo <tzagallo@apple.com> on 2018-06-07 Reviewed by Mark Lam. Source/JavaScriptCore: Check that the current process has the correct entitlements before trying to allocate JIT memory to silence warnings. * jit/ExecutableAllocator.cpp: (JSC::allowJIT): Helper that checks entitlements on iOS and returns true in other platforms (JSC::FixedVMPoolExecutableAllocator::FixedVMPoolExecutableAllocator): check allowJIT before trying to allocate Source/WebKit: Remove processHasEntitlement, which was moved into WTF and update all call sites. * Shared/mac/SandboxUtilities.h: * Shared/mac/SandboxUtilities.mm: (WebKit::processHasEntitlement): Deleted. * UIProcess/API/Cocoa/WKWebView.mm: (-[WKWebView _initializeWithConfiguration:]): * UIProcess/ApplicationStateTracker.mm: (WebKit::applicationType): * UIProcess/ios/WKActionSheetAssistant.mm: (applicationHasAppLinkEntitlements): Source/WTF: Move processHasEntitlement from Source/WebKit/Shared/mac/SandboxUtilities.h into WTF so JavaScriptCore can also use it. * WTF.xcodeproj/project.pbxproj: * wtf/PlatformMac.cmake: * wtf/cocoa/Entitlements.cpp: (WTF::processHasEntitlement): * wtf/cocoa/Entitlements.h: * wtf/spi/cocoa/SecuritySPI.h: Tools: Add the Security framework to the TestWTF target, since it's required by the new function to check the entitlements. * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: Canonical link: https://commits.webkit.org/201775@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@232604 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-06-07 23:14:04 +00:00
cocoa/Entitlements.h
Move URL from WebCore to WTF https://bugs.webkit.org/show_bug.cgi?id=190234 Patch by Alex Christensen <achristensen@webkit.org> on 2018-11-30 Reviewed by Keith Miller. Source/WebCore: A URL is a low-level concept that does not depend on other classes in WebCore. We are starting to use URLs in JavaScriptCore for modules. I need URL and URLParser in a place with fewer dependencies for rdar://problem/44119696 * Modules/applepay/ApplePaySession.h: * Modules/applepay/ApplePayValidateMerchantEvent.h: * Modules/applepay/PaymentCoordinator.cpp: * Modules/applepay/PaymentCoordinator.h: * Modules/applepay/PaymentCoordinatorClient.h: * Modules/applepay/PaymentSession.h: * Modules/applicationmanifest/ApplicationManifest.h: * Modules/beacon/NavigatorBeacon.cpp: * Modules/cache/DOMCache.cpp: * Modules/fetch/FetchLoader.h: * Modules/mediasession/MediaSessionMetadata.h: * Modules/mediasource/MediaSourceRegistry.cpp: * Modules/mediasource/MediaSourceRegistry.h: * Modules/mediastream/MediaStream.cpp: * Modules/mediastream/MediaStreamRegistry.cpp: * Modules/mediastream/MediaStreamRegistry.h: * Modules/navigatorcontentutils/NavigatorContentUtilsClient.h: * Modules/notifications/Notification.h: * Modules/paymentrequest/MerchantValidationEvent.h: * Modules/paymentrequest/PaymentRequest.h: * Modules/plugins/PluginReplacement.h: * Modules/webaudio/AudioContext.h: * Modules/websockets/ThreadableWebSocketChannel.h: * Modules/websockets/WebSocket.h: * Modules/websockets/WebSocketHandshake.cpp: * Modules/websockets/WebSocketHandshake.h: * Modules/websockets/WorkerThreadableWebSocketChannel.h: * PlatformMac.cmake: * PlatformWin.cmake: * Sources.txt: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * bindings/js/CachedModuleScriptLoader.h: * bindings/js/CachedScriptFetcher.h: * bindings/js/ScriptController.cpp: (WebCore::ScriptController::executeIfJavaScriptURL): * bindings/js/ScriptController.h: * bindings/js/ScriptModuleLoader.h: * bindings/js/ScriptSourceCode.h: * bindings/scripts/CodeGeneratorJS.pm: (GenerateImplementation): * bindings/scripts/test/JS/JSInterfaceName.cpp: * bindings/scripts/test/JS/JSMapLike.cpp: * bindings/scripts/test/JS/JSReadOnlyMapLike.cpp: * bindings/scripts/test/JS/JSTestActiveDOMObject.cpp: * bindings/scripts/test/JS/JSTestCEReactions.cpp: * bindings/scripts/test/JS/JSTestCEReactionsStringifier.cpp: * bindings/scripts/test/JS/JSTestCallTracer.cpp: * bindings/scripts/test/JS/JSTestClassWithJSBuiltinConstructor.cpp: * bindings/scripts/test/JS/JSTestCustomConstructorWithNoInterfaceObject.cpp: * bindings/scripts/test/JS/JSTestDOMJIT.cpp: * bindings/scripts/test/JS/JSTestEnabledBySetting.cpp: * bindings/scripts/test/JS/JSTestEventConstructor.cpp: * bindings/scripts/test/JS/JSTestEventTarget.cpp: * bindings/scripts/test/JS/JSTestException.cpp: * bindings/scripts/test/JS/JSTestGenerateIsReachable.cpp: * bindings/scripts/test/JS/JSTestGlobalObject.cpp: * bindings/scripts/test/JS/JSTestIndexedSetterNoIdentifier.cpp: * bindings/scripts/test/JS/JSTestIndexedSetterThrowingException.cpp: * bindings/scripts/test/JS/JSTestIndexedSetterWithIdentifier.cpp: * bindings/scripts/test/JS/JSTestInterface.cpp: * bindings/scripts/test/JS/JSTestInterfaceLeadingUnderscore.cpp: * bindings/scripts/test/JS/JSTestIterable.cpp: * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp: * bindings/scripts/test/JS/JSTestNamedAndIndexedSetterNoIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedAndIndexedSetterThrowingException.cpp: * bindings/scripts/test/JS/JSTestNamedAndIndexedSetterWithIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedConstructor.cpp: * bindings/scripts/test/JS/JSTestNamedDeleterNoIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedDeleterThrowingException.cpp: * bindings/scripts/test/JS/JSTestNamedDeleterWithIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedDeleterWithIndexedGetter.cpp: * bindings/scripts/test/JS/JSTestNamedGetterCallWith.cpp: * bindings/scripts/test/JS/JSTestNamedGetterNoIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedGetterWithIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedSetterNoIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedSetterThrowingException.cpp: * bindings/scripts/test/JS/JSTestNamedSetterWithIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedSetterWithIndexedGetter.cpp: * bindings/scripts/test/JS/JSTestNamedSetterWithIndexedGetterAndSetter.cpp: * bindings/scripts/test/JS/JSTestNamedSetterWithOverrideBuiltins.cpp: * bindings/scripts/test/JS/JSTestNamedSetterWithUnforgableProperties.cpp: * bindings/scripts/test/JS/JSTestNamedSetterWithUnforgablePropertiesAndOverrideBuiltins.cpp: * bindings/scripts/test/JS/JSTestNode.cpp: * bindings/scripts/test/JS/JSTestObj.cpp: * bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp: * bindings/scripts/test/JS/JSTestOverloadedConstructorsWithSequence.cpp: * bindings/scripts/test/JS/JSTestOverrideBuiltins.cpp: * bindings/scripts/test/JS/JSTestPluginInterface.cpp: * bindings/scripts/test/JS/JSTestPromiseRejectionEvent.cpp: * bindings/scripts/test/JS/JSTestSerialization.cpp: * bindings/scripts/test/JS/JSTestSerializationIndirectInheritance.cpp: * bindings/scripts/test/JS/JSTestSerializationInherit.cpp: * bindings/scripts/test/JS/JSTestSerializationInheritFinal.cpp: * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp: * bindings/scripts/test/JS/JSTestStringifier.cpp: * bindings/scripts/test/JS/JSTestStringifierAnonymousOperation.cpp: * bindings/scripts/test/JS/JSTestStringifierNamedOperation.cpp: * bindings/scripts/test/JS/JSTestStringifierOperationImplementedAs.cpp: * bindings/scripts/test/JS/JSTestStringifierOperationNamedToString.cpp: * bindings/scripts/test/JS/JSTestStringifierReadOnlyAttribute.cpp: * bindings/scripts/test/JS/JSTestStringifierReadWriteAttribute.cpp: * bindings/scripts/test/JS/JSTestTypedefs.cpp: * contentextensions/ContentExtensionsBackend.cpp: (WebCore::ContentExtensions::ContentExtensionsBackend::processContentExtensionRulesForLoad): (WebCore::ContentExtensions::ContentExtensionsBackend::processContentExtensionRulesForPingLoad): (WebCore::ContentExtensions::applyBlockedStatusToRequest): * contentextensions/ContentExtensionsBackend.h: * css/CSSValue.h: * css/StyleProperties.h: * css/StyleResolver.h: * css/StyleSheet.h: * css/StyleSheetContents.h: * css/parser/CSSParserContext.h: (WebCore::CSSParserContextHash::hash): (WTF::HashTraits<WebCore::CSSParserContext>::constructDeletedValue): * css/parser/CSSParserIdioms.h: * dom/DataTransfer.cpp: (WebCore::DataTransfer::setDataFromItemList): * dom/Document.cpp: (WebCore::Document::setURL): (WebCore::Document::processHttpEquiv): (WebCore::Document::completeURL const): (WebCore::Document::ensureTemplateDocument): * dom/Document.h: (WebCore::Document::urlForBindings const): * dom/Element.cpp: (WebCore::Element::isJavaScriptURLAttribute const): * dom/InlineStyleSheetOwner.cpp: (WebCore::parserContextForElement): * dom/Node.cpp: (WebCore::Node::baseURI const): * dom/Node.h: * dom/ScriptElement.h: * dom/ScriptExecutionContext.h: * dom/SecurityContext.h: * editing/Editor.cpp: (WebCore::Editor::pasteboardWriterURL): * editing/Editor.h: * editing/MarkupAccumulator.cpp: (WebCore::MarkupAccumulator::appendQuotedURLAttributeValue): * editing/cocoa/DataDetection.h: * editing/cocoa/EditorCocoa.mm: (WebCore::Editor::userVisibleString): * editing/cocoa/WebContentReaderCocoa.mm: (WebCore::replaceRichContentWithAttachments): (WebCore::WebContentReader::readWebArchive): * editing/mac/EditorMac.mm: (WebCore::Editor::plainTextFromPasteboard): (WebCore::Editor::writeImageToPasteboard): * editing/markup.cpp: (WebCore::removeSubresourceURLAttributes): (WebCore::createFragmentFromMarkup): * editing/markup.h: * fileapi/AsyncFileStream.cpp: * fileapi/AsyncFileStream.h: * fileapi/Blob.h: * fileapi/BlobURL.cpp: * fileapi/BlobURL.h: * fileapi/File.h: * fileapi/FileReaderLoader.h: * fileapi/ThreadableBlobRegistry.h: * history/CachedFrame.h: * history/HistoryItem.h: * html/DOMURL.cpp: (WebCore::DOMURL::create): * html/DOMURL.h: * html/HTMLAttachmentElement.cpp: (WebCore::HTMLAttachmentElement::archiveResourceURL): * html/HTMLFrameElementBase.cpp: (WebCore::HTMLFrameElementBase::isURLAllowed const): (WebCore::HTMLFrameElementBase::openURL): (WebCore::HTMLFrameElementBase::setLocation): * html/HTMLInputElement.h: * html/HTMLLinkElement.h: * html/HTMLMediaElement.cpp: (WTF::LogArgument<URL>::toString): (WTF::LogArgument<WebCore::URL>::toString): Deleted. * html/HTMLPlugInImageElement.cpp: (WebCore::HTMLPlugInImageElement::allowedToLoadFrameURL): * html/ImageBitmap.h: * html/MediaFragmentURIParser.h: * html/PublicURLManager.cpp: * html/PublicURLManager.h: * html/URLInputType.cpp: * html/URLRegistry.h: * html/URLSearchParams.cpp: (WebCore::URLSearchParams::URLSearchParams): (WebCore::URLSearchParams::toString const): (WebCore::URLSearchParams::updateURL): (WebCore::URLSearchParams::updateFromAssociatedURL): * html/URLUtils.h: (WebCore::URLUtils<T>::setHost): (WebCore::URLUtils<T>::setPort): * html/canvas/CanvasRenderingContext.cpp: * html/canvas/CanvasRenderingContext.h: * html/parser/HTMLParserIdioms.cpp: * html/parser/XSSAuditor.cpp: (WebCore::semicolonSeparatedValueContainsJavaScriptURL): (WebCore::XSSAuditor::filterScriptToken): (WebCore::XSSAuditor::filterObjectToken): (WebCore::XSSAuditor::filterParamToken): (WebCore::XSSAuditor::filterEmbedToken): (WebCore::XSSAuditor::filterFormToken): (WebCore::XSSAuditor::filterInputToken): (WebCore::XSSAuditor::filterButtonToken): (WebCore::XSSAuditor::eraseDangerousAttributesIfInjected): (WebCore::XSSAuditor::isLikelySafeResource): * html/parser/XSSAuditor.h: * html/parser/XSSAuditorDelegate.h: * inspector/InspectorFrontendHost.cpp: (WebCore::InspectorFrontendHost::openInNewTab): * inspector/InspectorInstrumentation.h: * inspector/agents/InspectorNetworkAgent.cpp: * inspector/agents/InspectorNetworkAgent.h: * inspector/agents/InspectorPageAgent.h: * inspector/agents/InspectorWorkerAgent.h: * loader/ApplicationManifestLoader.h: * loader/CookieJar.h: * loader/CrossOriginAccessControl.h: * loader/CrossOriginPreflightResultCache.h: * loader/DocumentLoader.cpp: (WebCore::DocumentLoader::willSendRequest): (WebCore::DocumentLoader::maybeLoadEmpty): * loader/DocumentLoader.h: (WebCore::DocumentLoader::serverRedirectSourceForHistory const): * loader/DocumentWriter.h: * loader/FormSubmission.h: * loader/FrameLoader.cpp: (WebCore::FrameLoader::submitForm): (WebCore::FrameLoader::receivedFirstData): (WebCore::FrameLoader::loadWithDocumentLoader): (WebCore::FrameLoader::continueLoadAfterNavigationPolicy): (WebCore::createWindow): * loader/FrameLoaderClient.h: * loader/HistoryController.cpp: (WebCore::HistoryController::currentItemShouldBeReplaced const): (WebCore::HistoryController::initializeItem): * loader/LinkLoader.h: * loader/LoadTiming.h: * loader/LoaderStrategy.h: * loader/MixedContentChecker.cpp: (WebCore::MixedContentChecker::checkFormForMixedContent const): * loader/MixedContentChecker.h: * loader/NavigationScheduler.cpp: (WebCore::NavigationScheduler::shouldScheduleNavigation const): * loader/NavigationScheduler.h: * loader/PingLoader.h: * loader/PolicyChecker.cpp: (WebCore::PolicyChecker::checkNavigationPolicy): * loader/ResourceLoadInfo.h: * loader/ResourceLoadObserver.cpp: (WebCore::ResourceLoadObserver::requestStorageAccessUnderOpener): * loader/ResourceLoadObserver.h: * loader/ResourceLoadStatistics.h: * loader/ResourceLoader.h: * loader/ResourceTiming.h: * loader/SubframeLoader.cpp: (WebCore::SubframeLoader::requestFrame): * loader/SubframeLoader.h: * loader/SubstituteData.h: * loader/appcache/ApplicationCache.h: * loader/appcache/ApplicationCacheGroup.h: * loader/appcache/ApplicationCacheHost.h: * loader/appcache/ApplicationCacheStorage.cpp: * loader/appcache/ApplicationCacheStorage.h: * loader/appcache/ManifestParser.cpp: * loader/appcache/ManifestParser.h: * loader/archive/ArchiveResourceCollection.h: * loader/archive/cf/LegacyWebArchive.cpp: (WebCore::LegacyWebArchive::createFromSelection): * loader/cache/CachedResource.cpp: * loader/cache/CachedResourceLoader.h: * loader/cache/CachedStyleSheetClient.h: * loader/cache/MemoryCache.h: * loader/icon/IconLoader.h: * loader/mac/LoaderNSURLExtras.mm: * page/CaptionUserPreferencesMediaAF.cpp: * page/ChromeClient.h: * page/ClientOrigin.h: * page/ContextMenuClient.h: * page/ContextMenuController.cpp: (WebCore::ContextMenuController::checkOrEnableIfNeeded const): * page/DOMWindow.cpp: (WebCore::DOMWindow::isInsecureScriptAccess): * page/DragController.cpp: (WebCore::DragController::startDrag): * page/DragController.h: * page/EventSource.h: * page/Frame.h: * page/FrameView.h: * page/History.h: * page/Location.cpp: (WebCore::Location::url const): (WebCore::Location::reload): * page/Location.h: * page/Page.h: * page/PageSerializer.h: * page/Performance.h: * page/PerformanceResourceTiming.cpp: * page/SecurityOrigin.cpp: (WebCore::SecurityOrigin::SecurityOrigin): (WebCore::SecurityOrigin::create): * page/SecurityOrigin.h: * page/SecurityOriginData.h: * page/SecurityOriginHash.h: * page/SecurityPolicy.cpp: (WebCore::SecurityPolicy::shouldInheritSecurityOriginFromOwner): * page/SecurityPolicy.h: * page/SettingsBase.h: * page/ShareData.h: * page/SocketProvider.h: * page/UserContentProvider.h: * page/UserContentURLPattern.cpp: * page/UserContentURLPattern.h: * page/UserScript.h: * page/UserStyleSheet.h: * page/VisitedLinkStore.h: * page/csp/ContentSecurityPolicy.h: * page/csp/ContentSecurityPolicyClient.h: * page/csp/ContentSecurityPolicyDirectiveList.h: * page/csp/ContentSecurityPolicySource.cpp: (WebCore::ContentSecurityPolicySource::portMatches const): * page/csp/ContentSecurityPolicySource.h: * page/csp/ContentSecurityPolicySourceList.cpp: * page/csp/ContentSecurityPolicySourceList.h: * page/csp/ContentSecurityPolicySourceListDirective.cpp: * platform/ContentFilterUnblockHandler.h: * platform/ContextMenuItem.h: * platform/Cookie.h: * platform/CookiesStrategy.h: * platform/DragData.h: * platform/DragImage.h: * platform/FileStream.h: * platform/LinkIcon.h: * platform/Pasteboard.cpp: (WebCore::Pasteboard::canExposeURLToDOMWhenPasteboardContainsFiles): * platform/Pasteboard.h: * platform/PasteboardStrategy.h: * platform/PasteboardWriterData.cpp: (WebCore::PasteboardWriterData::setURLData): (WebCore::PasteboardWriterData::setURL): Deleted. * platform/PasteboardWriterData.h: * platform/PlatformPasteboard.h: * platform/PromisedAttachmentInfo.h: * platform/SSLKeyGenerator.h: * platform/SchemeRegistry.cpp: (WebCore::SchemeRegistry::isBuiltinScheme): * platform/SharedBuffer.h: * platform/SharedStringHash.cpp: * platform/SharedStringHash.h: * platform/SourcesSoup.txt: * platform/UserAgent.h: * platform/UserAgentQuirks.cpp: * platform/UserAgentQuirks.h: * platform/cocoa/NetworkExtensionContentFilter.h: * platform/cocoa/NetworkExtensionContentFilter.mm: (WebCore::NetworkExtensionContentFilter::willSendRequest): * platform/glib/SSLKeyGeneratorGLib.cpp: Copied from Source/WebCore/page/ShareData.h. (WebCore::getSupportedKeySizes): (WebCore::signedPublicKeyAndChallengeString): * platform/glib/UserAgentGLib.cpp: * platform/graphics/GraphicsContext.h: * platform/graphics/Image.cpp: * platform/graphics/Image.h: * platform/graphics/ImageObserver.h: * platform/graphics/ImageSource.cpp: * platform/graphics/ImageSource.h: * platform/graphics/MediaPlayer.h: * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp: * platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp: * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: * platform/graphics/cg/GraphicsContextCG.cpp: * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp: * platform/graphics/gstreamer/mse/MediaPlayerPrivateGStreamerMSE.cpp: * platform/graphics/gstreamer/mse/WebKitMediaSourceGStreamer.cpp: (webKitMediaSrcSetUri): * platform/graphics/iso/ISOVTTCue.cpp: * platform/graphics/win/GraphicsContextDirect2D.cpp: * platform/gtk/DragImageGtk.cpp: * platform/gtk/PasteboardGtk.cpp: * platform/gtk/PlatformPasteboardGtk.cpp: * platform/gtk/SelectionData.h: * platform/ios/PasteboardIOS.mm: * platform/ios/PlatformPasteboardIOS.mm: (WebCore::PlatformPasteboard::write): * platform/ios/QuickLook.h: * platform/mac/DragDataMac.mm: (WebCore::DragData::asPlainText const): * platform/mac/DragImageMac.mm: * platform/mac/FileSystemMac.mm: (WebCore::FileSystem::setMetadataURL): * platform/mac/PasteboardMac.mm: * platform/mac/PasteboardWriter.mm: (WebCore::createPasteboardWriter): * platform/mac/PlatformPasteboardMac.mm: * platform/mac/PublicSuffixMac.mm: (WebCore::decodeHostName): * platform/mac/SSLKeyGeneratorMac.mm: * platform/mac/WebCoreNSURLExtras.h: * platform/mac/WebCoreNSURLExtras.mm: (WebCore::isArmenianLookalikeCharacter): Deleted. (WebCore::isArmenianScriptCharacter): Deleted. (WebCore::isASCIIDigitOrValidHostCharacter): Deleted. (WebCore::isLookalikeCharacter): Deleted. (WebCore::whiteListIDNScript): Deleted. (WebCore::readIDNScriptWhiteListFile): Deleted. (WebCore::allCharactersInIDNScriptWhiteList): Deleted. (WebCore::isSecondLevelDomainNameAllowedByTLDRules): Deleted. (WebCore::isRussianDomainNameCharacter): Deleted. (WebCore::allCharactersAllowedByTLDRules): Deleted. (WebCore::mapHostNameWithRange): Deleted. (WebCore::hostNameNeedsDecodingWithRange): Deleted. (WebCore::hostNameNeedsEncodingWithRange): Deleted. (WebCore::decodeHostNameWithRange): Deleted. (WebCore::encodeHostNameWithRange): Deleted. (WebCore::decodeHostName): Deleted. (WebCore::encodeHostName): Deleted. (WebCore::collectRangesThatNeedMapping): Deleted. (WebCore::collectRangesThatNeedEncoding): Deleted. (WebCore::collectRangesThatNeedDecoding): Deleted. (WebCore::applyHostNameFunctionToMailToURLString): Deleted. (WebCore::applyHostNameFunctionToURLString): Deleted. (WebCore::mapHostNames): Deleted. (WebCore::stringByTrimmingWhitespace): Deleted. (WebCore::URLByTruncatingOneCharacterBeforeComponent): Deleted. (WebCore::URLByRemovingResourceSpecifier): Deleted. (WebCore::URLWithData): Deleted. (WebCore::dataWithUserTypedString): Deleted. (WebCore::URLWithUserTypedString): Deleted. (WebCore::URLWithUserTypedStringDeprecated): Deleted. (WebCore::hasQuestionMarkOnlyQueryString): Deleted. (WebCore::dataForURLComponentType): Deleted. (WebCore::URLByRemovingComponentAndSubsequentCharacter): Deleted. (WebCore::URLByRemovingUserInfo): Deleted. (WebCore::originalURLData): Deleted. (WebCore::createStringWithEscapedUnsafeCharacters): Deleted. (WebCore::userVisibleString): Deleted. (WebCore::isUserVisibleURL): Deleted. (WebCore::rangeOfURLScheme): Deleted. (WebCore::looksLikeAbsoluteURL): Deleted. * platform/mediastream/MediaEndpointConfiguration.h: * platform/network/BlobPart.h: * platform/network/BlobRegistry.h: * platform/network/BlobRegistryImpl.h: * platform/network/BlobResourceHandle.cpp: * platform/network/CookieRequestHeaderFieldProxy.h: * platform/network/CredentialStorage.cpp: * platform/network/CredentialStorage.h: * platform/network/DataURLDecoder.cpp: * platform/network/DataURLDecoder.h: * platform/network/FormData.h: * platform/network/ProxyServer.h: * platform/network/ResourceErrorBase.h: * platform/network/ResourceHandle.cpp: (WebCore::ResourceHandle::didReceiveResponse): * platform/network/ResourceHandle.h: * platform/network/ResourceHandleClient.h: * platform/network/ResourceRequestBase.cpp: (WebCore::ResourceRequestBase::redirectedRequest const): * platform/network/ResourceRequestBase.h: * platform/network/ResourceResponseBase.h: * platform/network/SocketStreamHandle.h: * platform/network/cf/DNSResolveQueueCFNet.cpp: * platform/network/cf/NetworkStorageSessionCFNet.cpp: * platform/network/cf/ProxyServerCFNet.cpp: * platform/network/cf/ResourceErrorCF.cpp: * platform/network/cocoa/NetworkStorageSessionCocoa.mm: * platform/network/curl/CookieJarCurlDatabase.cpp: Added. (WebCore::cookiesForSession): (WebCore::CookieJarCurlDatabase::setCookiesFromDOM const): (WebCore::CookieJarCurlDatabase::setCookiesFromHTTPResponse const): (WebCore::CookieJarCurlDatabase::cookiesForDOM const): (WebCore::CookieJarCurlDatabase::cookieRequestHeaderFieldValue const): (WebCore::CookieJarCurlDatabase::cookiesEnabled const): (WebCore::CookieJarCurlDatabase::getRawCookies const): (WebCore::CookieJarCurlDatabase::deleteCookie const): (WebCore::CookieJarCurlDatabase::getHostnamesWithCookies const): (WebCore::CookieJarCurlDatabase::deleteCookiesForHostnames const): (WebCore::CookieJarCurlDatabase::deleteAllCookies const): (WebCore::CookieJarCurlDatabase::deleteAllCookiesModifiedSince const): * platform/network/curl/CookieJarDB.cpp: * platform/network/curl/CookieUtil.h: * platform/network/curl/CurlContext.h: * platform/network/curl/CurlProxySettings.h: * platform/network/curl/CurlResponse.h: * platform/network/curl/NetworkStorageSessionCurl.cpp: * platform/network/curl/ProxyServerCurl.cpp: * platform/network/curl/SocketStreamHandleImplCurl.cpp: * platform/network/mac/ResourceErrorMac.mm: * platform/network/soup/NetworkStorageSessionSoup.cpp: * platform/network/soup/ProxyServerSoup.cpp: * platform/network/soup/ResourceHandleSoup.cpp: * platform/network/soup/ResourceRequest.h: * platform/network/soup/ResourceRequestSoup.cpp: * platform/network/soup/SocketStreamHandleImplSoup.cpp: * platform/network/soup/SoupNetworkSession.cpp: * platform/network/soup/SoupNetworkSession.h: * platform/text/TextEncoding.h: * platform/win/BString.cpp: * platform/win/BString.h: * platform/win/ClipboardUtilitiesWin.cpp: (WebCore::markupToCFHTML): * platform/win/ClipboardUtilitiesWin.h: * platform/win/DragImageWin.cpp: * platform/win/PasteboardWin.cpp: * plugins/PluginData.h: * rendering/HitTestResult.h: * rendering/RenderAttachment.cpp: * svg/SVGImageLoader.cpp: (WebCore::SVGImageLoader::sourceURI const): * svg/SVGURIReference.cpp: * svg/graphics/SVGImage.h: * svg/graphics/SVGImageCache.h: * svg/graphics/SVGImageForContainer.h: * testing/Internals.cpp: (WebCore::Internals::resetToConsistentState): * testing/Internals.mm: (WebCore::Internals::userVisibleString): * testing/MockContentFilter.cpp: (WebCore::MockContentFilter::willSendRequest): * testing/MockPaymentCoordinator.cpp: * testing/js/WebCoreTestSupport.cpp: * workers/AbstractWorker.h: * workers/WorkerGlobalScope.h: * workers/WorkerGlobalScopeProxy.h: * workers/WorkerInspectorProxy.h: * workers/WorkerLocation.h: * workers/WorkerScriptLoader.h: * workers/WorkerThread.cpp: * workers/WorkerThread.h: * workers/service/ServiceWorker.h: * workers/service/ServiceWorkerClientData.h: * workers/service/ServiceWorkerContainer.cpp: * workers/service/ServiceWorkerContextData.h: * workers/service/ServiceWorkerData.h: * workers/service/ServiceWorkerJobData.h: * workers/service/ServiceWorkerRegistrationKey.cpp: * workers/service/ServiceWorkerRegistrationKey.h: (WTF::HashTraits<WebCore::ServiceWorkerRegistrationKey>::constructDeletedValue): * worklets/WorkletGlobalScope.h: * xml/XMLHttpRequest.h: Source/WebKit: * NetworkProcess/Cookies/WebCookieManager.cpp: * NetworkProcess/Cookies/WebCookieManager.h: * NetworkProcess/Cookies/WebCookieManager.messages.in: * NetworkProcess/CustomProtocols/Cocoa/LegacyCustomProtocolManagerCocoa.mm: * NetworkProcess/Downloads/Download.h: * NetworkProcess/Downloads/DownloadManager.cpp: (WebKit::DownloadManager::publishDownloadProgress): * NetworkProcess/Downloads/DownloadManager.h: * NetworkProcess/Downloads/PendingDownload.cpp: (WebKit::PendingDownload::publishProgress): * NetworkProcess/Downloads/PendingDownload.h: * NetworkProcess/Downloads/cocoa/DownloadCocoa.mm: (WebKit::Download::publishProgress): * NetworkProcess/FileAPI/NetworkBlobRegistry.cpp: (WebKit::NetworkBlobRegistry::registerBlobURL): (WebKit::NetworkBlobRegistry::registerBlobURLForSlice): (WebKit::NetworkBlobRegistry::unregisterBlobURL): (WebKit::NetworkBlobRegistry::blobSize): (WebKit::NetworkBlobRegistry::filesInBlob): * NetworkProcess/FileAPI/NetworkBlobRegistry.h: * NetworkProcess/NetworkConnectionToWebProcess.h: * NetworkProcess/NetworkConnectionToWebProcess.messages.in: * NetworkProcess/NetworkDataTask.cpp: (WebKit::NetworkDataTask::didReceiveResponse): * NetworkProcess/NetworkDataTaskBlob.cpp: * NetworkProcess/NetworkLoadChecker.h: (WebKit::NetworkLoadChecker::setContentExtensionController): (WebKit::NetworkLoadChecker::url const): * NetworkProcess/NetworkProcess.cpp: (WebKit::NetworkProcess::writeBlobToFilePath): (WebKit::NetworkProcess::publishDownloadProgress): (WebKit::NetworkProcess::preconnectTo): * NetworkProcess/NetworkProcess.h: * NetworkProcess/NetworkProcess.messages.in: * NetworkProcess/NetworkResourceLoadParameters.h: * NetworkProcess/NetworkResourceLoader.cpp: (WebKit::logBlockedCookieInformation): (WebKit::logCookieInformationInternal): * NetworkProcess/NetworkResourceLoader.h: * NetworkProcess/NetworkSocketStream.cpp: (WebKit::NetworkSocketStream::create): * NetworkProcess/NetworkSocketStream.h: * NetworkProcess/PingLoad.h: * NetworkProcess/ServiceWorker/WebSWServerConnection.h: * NetworkProcess/ServiceWorker/WebSWServerConnection.messages.in: * NetworkProcess/ServiceWorker/WebSWServerToContextConnection.messages.in: * NetworkProcess/cache/CacheStorageEngine.cpp: (WebKit::CacheStorage::Engine::retrieveRecords): * NetworkProcess/cache/CacheStorageEngine.h: * NetworkProcess/cache/CacheStorageEngineCache.h: * NetworkProcess/cache/CacheStorageEngineConnection.cpp: (WebKit::CacheStorageEngineConnection::retrieveRecords): * NetworkProcess/cache/CacheStorageEngineConnection.h: * NetworkProcess/cache/CacheStorageEngineConnection.messages.in: * NetworkProcess/cache/NetworkCache.h: * NetworkProcess/cache/NetworkCacheStatistics.cpp: (WebKit::NetworkCache::Statistics::recordRetrievedCachedEntry): (WebKit::NetworkCache::Statistics::recordRevalidationSuccess): * NetworkProcess/cache/NetworkCacheSubresourcesEntry.h: (WebKit::NetworkCache::SubresourceInfo::firstPartyForCookies const): * NetworkProcess/capture/NetworkCaptureEvent.cpp: (WebKit::NetworkCapture::Request::operator WebCore::ResourceRequest const): (WebKit::NetworkCapture::Response::operator WebCore::ResourceResponse const): (WebKit::NetworkCapture::Error::operator WebCore::ResourceError const): * NetworkProcess/capture/NetworkCaptureManager.cpp: (WebKit::NetworkCapture::Manager::findBestFuzzyMatch): (WebKit::NetworkCapture::Manager::fuzzyMatchURLs): (WebKit::NetworkCapture::Manager::urlIdentifyingCommonDomain): * NetworkProcess/capture/NetworkCaptureManager.h: * NetworkProcess/capture/NetworkCaptureResource.cpp: (WebKit::NetworkCapture::Resource::url): (WebKit::NetworkCapture::Resource::queryParameters): * NetworkProcess/capture/NetworkCaptureResource.h: * NetworkProcess/cocoa/NetworkDataTaskCocoa.mm: (WebKit::NetworkDataTaskCocoa::willPerformHTTPRedirection): * NetworkProcess/cocoa/NetworkProcessCocoa.mm: (WebKit::NetworkProcess::deleteHSTSCacheForHostNames): * NetworkProcess/cocoa/NetworkSessionCocoa.mm: (-[WKNetworkSessionDelegate URLSession:task:didReceiveChallenge:completionHandler:]): * PluginProcess/mac/PluginProcessMac.mm: (WebKit::openCFURLRef): (WebKit::replacedNSWorkspace_launchApplicationAtURL_options_configuration_error): * Shared/API/APIURL.h: (API::URL::create): (API::URL::equals): (API::URL::URL): (API::URL::url const): (API::URL::parseURLIfNecessary const): * Shared/API/APIUserContentURLPattern.h: (API::UserContentURLPattern::matchesURL const): * Shared/API/c/WKURLRequest.cpp: * Shared/API/c/WKURLResponse.cpp: * Shared/API/c/cf/WKURLCF.mm: (WKURLCreateWithCFURL): (WKURLCopyCFURL): * Shared/API/glib/WebKitURIRequest.cpp: * Shared/API/glib/WebKitURIResponse.cpp: * Shared/APIWebArchiveResource.mm: (API::WebArchiveResource::WebArchiveResource): * Shared/AssistedNodeInformation.h: * Shared/Cocoa/WKNSURLExtras.mm: (-[NSURL _web_originalDataAsWTFString]): (): Deleted. * Shared/SessionState.h: * Shared/WebBackForwardListItem.cpp: (WebKit::WebBackForwardListItem::itemIsInSameDocument const): * Shared/WebCoreArgumentCoders.cpp: * Shared/WebCoreArgumentCoders.h: * Shared/WebErrors.h: * Shared/WebHitTestResultData.cpp: * Shared/cf/ArgumentCodersCF.cpp: (IPC::encode): (IPC::decode): * Shared/gtk/WebErrorsGtk.cpp: * Shared/ios/InteractionInformationAtPosition.h: * UIProcess/API/APIHTTPCookieStore.h: * UIProcess/API/APINavigation.cpp: (API::Navigation::appendRedirectionURL): * UIProcess/API/APINavigation.h: (API::Navigation::takeRedirectChain): * UIProcess/API/APINavigationAction.h: * UIProcess/API/APINavigationClient.h: (API::NavigationClient::signedPublicKeyAndChallengeString): (API::NavigationClient::contentRuleListNotification): (API::NavigationClient::webGLLoadPolicy const): (API::NavigationClient::resolveWebGLLoadPolicy const): * UIProcess/API/APIUIClient.h: (API::UIClient::saveDataToFileInDownloadsFolder): * UIProcess/API/APIUserScript.cpp: (API::UserScript::generateUniqueURL): * UIProcess/API/APIUserScript.h: * UIProcess/API/APIUserStyleSheet.cpp: (API::UserStyleSheet::generateUniqueURL): * UIProcess/API/APIUserStyleSheet.h: * UIProcess/API/C/WKOpenPanelResultListener.cpp: (filePathsFromFileURLs): * UIProcess/API/C/WKPage.cpp: (WKPageLoadPlainTextStringWithUserData): (WKPageSetPageUIClient): (WKPageSetPageNavigationClient): * UIProcess/API/C/WKPageGroup.cpp: (WKPageGroupAddUserStyleSheet): (WKPageGroupAddUserScript): * UIProcess/API/C/WKWebsiteDataStoreRef.cpp: (WKWebsiteDataStoreSetResourceLoadStatisticsPrevalentResourceForDebugMode): (WKWebsiteDataStoreSetStatisticsLastSeen): (WKWebsiteDataStoreSetStatisticsPrevalentResource): (WKWebsiteDataStoreSetStatisticsVeryPrevalentResource): (WKWebsiteDataStoreIsStatisticsPrevalentResource): (WKWebsiteDataStoreIsStatisticsVeryPrevalentResource): (WKWebsiteDataStoreIsStatisticsRegisteredAsSubresourceUnder): (WKWebsiteDataStoreIsStatisticsRegisteredAsSubFrameUnder): (WKWebsiteDataStoreIsStatisticsRegisteredAsRedirectingTo): (WKWebsiteDataStoreSetStatisticsHasHadUserInteraction): (WKWebsiteDataStoreIsStatisticsHasHadUserInteraction): (WKWebsiteDataStoreSetStatisticsGrandfathered): (WKWebsiteDataStoreIsStatisticsGrandfathered): (WKWebsiteDataStoreSetStatisticsSubframeUnderTopFrameOrigin): (WKWebsiteDataStoreSetStatisticsSubresourceUnderTopFrameOrigin): (WKWebsiteDataStoreSetStatisticsSubresourceUniqueRedirectTo): (WKWebsiteDataStoreSetStatisticsSubresourceUniqueRedirectFrom): (WKWebsiteDataStoreSetStatisticsTopFrameUniqueRedirectTo): (WKWebsiteDataStoreSetStatisticsTopFrameUniqueRedirectFrom): * UIProcess/API/Cocoa/WKHTTPCookieStore.mm: * UIProcess/API/Cocoa/WKUserScript.mm: (-[WKUserScript _initWithSource:injectionTime:forMainFrameOnly:legacyWhitelist:legacyBlacklist:associatedURL:userContentWorld:]): * UIProcess/API/Cocoa/WKWebView.mm: (-[WKWebView _showSafeBrowsingWarning:completionHandler:]): (-[WKWebView _showSafeBrowsingWarningWithTitle:warning:details:completionHandler:]): * UIProcess/API/Cocoa/WKWebViewConfiguration.mm: (-[WKWebViewConfiguration setURLSchemeHandler:forURLScheme:]): (-[WKWebViewConfiguration urlSchemeHandlerForURLScheme:]): * UIProcess/API/Cocoa/WKWebViewInternal.h: * UIProcess/API/Cocoa/WKWebsiteDataStore.mm: * UIProcess/API/Cocoa/_WKApplicationManifest.mm: (-[_WKApplicationManifest initWithCoder:]): (+[_WKApplicationManifest applicationManifestFromJSON:manifestURL:documentURL:]): * UIProcess/API/Cocoa/_WKUserStyleSheet.mm: (-[_WKUserStyleSheet initWithSource:forMainFrameOnly:legacyWhitelist:legacyBlacklist:baseURL:userContentWorld:]): * UIProcess/API/glib/IconDatabase.cpp: * UIProcess/API/glib/WebKitCookieManager.cpp: (webkit_cookie_manager_get_cookies): * UIProcess/API/glib/WebKitFileChooserRequest.cpp: * UIProcess/API/glib/WebKitSecurityOrigin.cpp: (webkit_security_origin_new_for_uri): * UIProcess/API/glib/WebKitUIClient.cpp: * UIProcess/API/glib/WebKitURISchemeRequest.cpp: * UIProcess/API/glib/WebKitWebView.cpp: (webkit_web_view_load_plain_text): * UIProcess/API/gtk/WebKitRemoteInspectorProtocolHandler.cpp: * UIProcess/ApplePay/WebPaymentCoordinatorProxy.cpp: (WebKit::WebPaymentCoordinatorProxy::showPaymentUI): (WebKit::WebPaymentCoordinatorProxy::validateMerchant): * UIProcess/ApplePay/WebPaymentCoordinatorProxy.h: * UIProcess/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.h: * UIProcess/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm: (WebKit::toPKPaymentRequest): * UIProcess/ApplePay/ios/WebPaymentCoordinatorProxyIOS.mm: (WebKit::WebPaymentCoordinatorProxy::platformShowPaymentUI): * UIProcess/ApplePay/mac/WebPaymentCoordinatorProxyMac.mm: (WebKit::WebPaymentCoordinatorProxy::platformShowPaymentUI): * UIProcess/Automation/WebAutomationSession.cpp: (WebKit::WebAutomationSession::navigateBrowsingContext): (WebKit::domainByAddingDotPrefixIfNeeded): (WebKit::WebAutomationSession::addSingleCookie): (WebKit::WebAutomationSession::deleteAllCookies): * UIProcess/Cocoa/DownloadClient.mm: (WebKit::DownloadClient::didFinish): * UIProcess/Cocoa/NavigationState.h: * UIProcess/Cocoa/NavigationState.mm: (WebKit::NavigationState::NavigationClient::webGLLoadPolicy const): (WebKit::NavigationState::NavigationClient::resolveWebGLLoadPolicy const): (WebKit::NavigationState::NavigationClient::contentRuleListNotification): (WebKit::NavigationState::NavigationClient::willPerformClientRedirect): (WebKit::NavigationState::NavigationClient::didPerformClientRedirect): (WebKit::NavigationState::NavigationClient::signedPublicKeyAndChallengeString): * UIProcess/Cocoa/SafeBrowsingResultCocoa.mm: Copied from Source/WebKit/WebProcess/Network/WebSocketProvider.h. (WebKit::SafeBrowsingResult::SafeBrowsingResult): * UIProcess/Cocoa/SafeBrowsingWarningCocoa.mm: (WebKit::reportAnErrorURL): (WebKit::malwareDetailsURL): (WebKit::safeBrowsingDetailsText): (WebKit::SafeBrowsingWarning::SafeBrowsingWarning): * UIProcess/Cocoa/SystemPreviewControllerCocoa.mm: (-[_WKPreviewControllerDataSource finish:]): (WebKit::SystemPreviewController::finish): * UIProcess/Cocoa/UIDelegate.h: * UIProcess/Cocoa/UIDelegate.mm: (WebKit::UIDelegate::UIClient::createNewPage): (WebKit::UIDelegate::UIClient::saveDataToFileInDownloadsFolder): (WebKit::requestUserMediaAuthorizationForDevices): (WebKit::UIDelegate::UIClient::checkUserMediaPermissionForOrigin): * UIProcess/Cocoa/WKReloadFrameErrorRecoveryAttempter.mm: (-[WKReloadFrameErrorRecoveryAttempter attemptRecovery]): * UIProcess/Cocoa/WKSafeBrowsingWarning.h: * UIProcess/Cocoa/WKSafeBrowsingWarning.mm: (-[WKSafeBrowsingWarning initWithFrame:safeBrowsingWarning:completionHandler:]): * UIProcess/Cocoa/WebPasteboardProxyCocoa.mm: * UIProcess/Cocoa/WebViewImpl.h: * UIProcess/Cocoa/WebViewImpl.mm: (WebKit::WebViewImpl::showSafeBrowsingWarning): (WebKit::WebViewImpl::writeToURLForFilePromiseProvider): * UIProcess/Downloads/DownloadProxy.cpp: (WebKit::DownloadProxy::publishProgress): * UIProcess/Downloads/DownloadProxy.h: (WebKit::DownloadProxy::setRedirectChain): (WebKit::DownloadProxy::redirectChain const): * UIProcess/FrameLoadState.cpp: (WebKit::FrameLoadState::didStartProvisionalLoad): (WebKit::FrameLoadState::didReceiveServerRedirectForProvisionalLoad): (WebKit::FrameLoadState::didSameDocumentNotification): (WebKit::FrameLoadState::setUnreachableURL): * UIProcess/FrameLoadState.h: (WebKit::FrameLoadState::url const): (WebKit::FrameLoadState::setURL): (WebKit::FrameLoadState::provisionalURL const): (WebKit::FrameLoadState::unreachableURL const): * UIProcess/Network/NetworkProcessProxy.cpp: (WebKit::NetworkProcessProxy::writeBlobToFilePath): * UIProcess/Network/NetworkProcessProxy.h: * UIProcess/PageClient.h: (WebKit::PageClient::showSafeBrowsingWarning): * UIProcess/PageLoadState.cpp: (WebKit::PageLoadState::hasOnlySecureContent): * UIProcess/Plugins/PluginInfoStore.cpp: * UIProcess/Plugins/PluginInfoStore.h: * UIProcess/Plugins/mac/PluginProcessProxyMac.mm: * UIProcess/SafeBrowsingResult.h: Copied from Source/WebKit/UIProcess/SystemPreviewController.h. (WebKit::SafeBrowsingResult::create): (WebKit::SafeBrowsingResult::url const): (WebKit::SafeBrowsingResult::provider const): (WebKit::SafeBrowsingResult::isPhishing const): (WebKit::SafeBrowsingResult::isMalware const): (WebKit::SafeBrowsingResult::isUnwantedSoftware const): (WebKit::SafeBrowsingResult::isKnownToBeUnsafe const): * UIProcess/SafeBrowsingWarning.h: (WebKit::SafeBrowsingWarning::create): * UIProcess/SuspendedPageProxy.cpp: * UIProcess/SystemPreviewController.h: * UIProcess/WebCookieManagerProxy.h: * UIProcess/WebFrameProxy.h: (WebKit::WebFrameProxy::url const): (WebKit::WebFrameProxy::provisionalURL const): (WebKit::WebFrameProxy::unreachableURL const): * UIProcess/WebInspectorProxy.h: * UIProcess/WebOpenPanelResultListenerProxy.cpp: * UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::loadDataWithNavigation): (WebKit::WebPageProxy::loadAlternateHTML): (WebKit::WebPageProxy::loadWebArchiveData): (WebKit::WebPageProxy::navigateToPDFLinkWithSimulatedClick): (WebKit::WebPageProxy::continueNavigationInNewProcess): (WebKit::WebPageProxy::didStartProvisionalLoadForFrame): (WebKit::WebPageProxy::didChangeProvisionalURLForFrame): (WebKit::WebPageProxy::didSameDocumentNavigationForFrame): (WebKit::WebPageProxy::contentRuleListNotification): (WebKit::WebPageProxy::processDidTerminate): (WebKit::WebPageProxy::signedPublicKeyAndChallengeString): (WebKit::WebPageProxy::setURLSchemeHandlerForScheme): * UIProcess/WebPageProxy.h: * UIProcess/WebPageProxy.messages.in: * UIProcess/WebProcessPool.cpp: (WebKit::WebProcessPool::tryPrewarmWithDomainInformation): * UIProcess/WebProcessPool.h: * UIProcess/WebProcessProxy.cpp: (WebKit::WebProcessProxy::processDidTerminateOrFailedToLaunch): * UIProcess/WebProcessProxy.h: * UIProcess/WebResourceLoadStatisticsStore.cpp: (WebKit::WebResourceLoadStatisticsStore::setPrevalentResourceForDebugMode): (WebKit::WebResourceLoadStatisticsStore::logFrameNavigation): * UIProcess/WebResourceLoadStatisticsStore.h: * UIProcess/ios/DragDropInteractionState.h: * UIProcess/ios/PageClientImplIOS.h: * UIProcess/ios/PageClientImplIOS.mm: (WebKit::PageClientImpl::showSafeBrowsingWarning): * UIProcess/ios/WKActionSheetAssistant.mm: (-[WKActionSheetAssistant _createSheetWithElementActions:showLinkTitle:]): * UIProcess/ios/WKContentViewInteraction.mm: (-[WKContentView actionSheetAssistant:shareElementWithURL:rect:]): (-[WKContentView _presentedViewControllerForPreviewItemController:]): * UIProcess/ios/WKGeolocationProviderIOS.mm: (-[WKGeolocationProviderIOS geolocationAuthorizationGranted]): * UIProcess/ios/WKLegacyPDFView.mm: (-[WKLegacyPDFView actionSheetAssistant:shareElementWithURL:rect:]): * UIProcess/ios/WKPDFView.mm: (-[WKPDFView actionSheetAssistant:shareElementWithURL:rect:]): * UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm: (-[WKFullScreenWindowController _updateLocationInfo]): * UIProcess/mac/LegacySessionStateCoding.cpp: (WebKit::decodeLegacySessionState): * UIProcess/mac/PageClientImplMac.h: * UIProcess/mac/PageClientImplMac.mm: (WebKit::PageClientImpl::showSafeBrowsingWarning): * UIProcess/mac/WKImmediateActionController.mm: (-[WKImmediateActionController _defaultAnimationController]): * UIProcess/win/WebInspectorProxyWin.cpp: * WebProcess/ApplePay/WebPaymentCoordinator.cpp: (WebKit::WebPaymentCoordinator::showPaymentUI): (WebKit::WebPaymentCoordinator::validateMerchant): * WebProcess/ApplePay/WebPaymentCoordinator.h: * WebProcess/Cache/WebCacheStorageConnection.cpp: (WebKit::WebCacheStorageConnection::doRetrieveRecords): * WebProcess/Cache/WebCacheStorageConnection.h: * WebProcess/FileAPI/BlobRegistryProxy.cpp: (WebKit::BlobRegistryProxy::registerFileBlobURL): * WebProcess/FileAPI/BlobRegistryProxy.h: * WebProcess/InjectedBundle/API/APIInjectedBundlePageLoaderClient.h: (API::InjectedBundle::PageLoaderClient::willLoadDataRequest): (API::InjectedBundle::PageLoaderClient::userAgentForURL const): * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp: (WKBundleFrameAllowsFollowingLink): (WKBundleFrameCopySuggestedFilenameForResourceWithURL): (WKBundleFrameCopyMIMETypeForResourceWithURL): * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp: (WKBundlePageHasLocalDataForURL): * WebProcess/InjectedBundle/API/gtk/DOM/ConvertToUTF8String.cpp: (convertToUTF8String): * WebProcess/InjectedBundle/API/gtk/DOM/ConvertToUTF8String.h: * WebProcess/InjectedBundle/InjectedBundleHitTestResult.cpp: * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h: * WebProcess/MediaCache/WebMediaKeyStorageManager.cpp: * WebProcess/Network/WebLoaderStrategy.cpp: (WebKit::WebLoaderStrategy::preconnectTo): * WebProcess/Network/WebLoaderStrategy.h: * WebProcess/Network/WebSocketProvider.h: * WebProcess/Network/WebSocketStream.cpp: (WebKit::WebSocketStream::WebSocketStream): * WebProcess/Network/WebSocketStream.h: * WebProcess/Plugins/Netscape/NetscapePlugin.cpp: * WebProcess/Plugins/Netscape/NetscapePlugin.h: * WebProcess/Plugins/Netscape/NetscapePluginStream.h: * WebProcess/Plugins/PDF/PDFPlugin.h: * WebProcess/Plugins/PDF/PDFPlugin.mm: (WebKit::PDFPlugin::clickedLink): * WebProcess/Plugins/Plugin.h: * WebProcess/Plugins/PluginController.h: * WebProcess/Plugins/PluginProxy.h: * WebProcess/Plugins/PluginView.cpp: (WebKit::PluginView::performURLRequest): (WebKit::PluginView::performJavaScriptURLRequest): * WebProcess/Plugins/WebPluginInfoProvider.cpp: (WebKit::WebPluginInfoProvider::webVisiblePluginInfo): * WebProcess/Plugins/WebPluginInfoProvider.h: * WebProcess/Storage/WebSWClientConnection.h: * WebProcess/Storage/WebSWContextManagerConnection.h: * WebProcess/UserContent/WebUserContentController.h: * WebProcess/WebCoreSupport/WebChromeClient.cpp: (WebKit::WebChromeClient::signedPublicKeyAndChallengeString const): * WebProcess/WebCoreSupport/WebChromeClient.h: * WebProcess/WebCoreSupport/WebContextMenuClient.h: * WebProcess/WebCoreSupport/WebDragClient.h: * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp: (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForResponse): (WebKit::WebFrameLoaderClient::shouldForceUniversalAccessFromLocalURL): * WebProcess/WebCoreSupport/WebFrameLoaderClient.h: * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp: (WebKit::WebPlatformStrategies::readURLFromPasteboard): * WebProcess/WebCoreSupport/WebPlatformStrategies.h: * WebProcess/WebCoreSupport/mac/WebDragClientMac.mm: (WebKit::WebDragClient::declareAndWriteDragImage): * WebProcess/WebCoreSupport/mac/WebEditorClientMac.mm: * WebProcess/WebPage/VisitedLinkTableController.h: * WebProcess/WebPage/WebFrame.cpp: (WebKit::WebFrame::allowsFollowingLink const): * WebProcess/WebPage/WebFrame.h: * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::loadURLInFrame): (WebKit::WebPage::loadData): (WebKit::WebPage::loadAlternateHTML): (WebKit::WebPage::dumpHistoryForTesting): (WebKit::WebPage::sendCSPViolationReport): (WebKit::WebPage::addUserScript): (WebKit::WebPage::addUserStyleSheet): * WebProcess/WebPage/WebPage.h: * WebProcess/WebPage/WebPage.messages.in: * WebProcess/WebPage/gtk/WebPrintOperationGtk.cpp: (WebKit::WebPrintOperationGtk::frameURL const): * WebProcess/WebPage/gtk/WebPrintOperationGtk.h: * WebProcess/WebProcess.cpp: (WebKit::WebProcess::sendPrewarmInformation): * WebProcess/WebProcess.h: * WebProcess/cocoa/WebProcessCocoa.mm: (WebKit::activePagesOrigins): Source/WebKitLegacy: * WebCoreSupport/WebResourceLoadScheduler.cpp: * WebCoreSupport/WebResourceLoadScheduler.h: Source/WebKitLegacy/mac: * DOM/DOMAttr.mm: * DOM/DOMBlob.mm: * DOM/DOMCSSCharsetRule.mm: * DOM/DOMCSSImportRule.mm: * DOM/DOMCSSMediaRule.mm: * DOM/DOMCSSPageRule.mm: * DOM/DOMCSSPrimitiveValue.mm: * DOM/DOMCSSRule.mm: * DOM/DOMCSSStyleDeclaration.mm: * DOM/DOMCSSStyleRule.mm: * DOM/DOMCSSStyleSheet.mm: * DOM/DOMCSSValue.mm: * DOM/DOMCharacterData.mm: * DOM/DOMCounter.mm: * DOM/DOMDocument.mm: * DOM/DOMDocumentFragment.mm: * DOM/DOMDocumentType.mm: * DOM/DOMEvent.mm: * DOM/DOMFile.mm: * DOM/DOMHTMLAnchorElement.mm: * DOM/DOMHTMLAppletElement.mm: * DOM/DOMHTMLAreaElement.mm: * DOM/DOMHTMLBRElement.mm: * DOM/DOMHTMLBaseElement.mm: * DOM/DOMHTMLBaseFontElement.mm: * DOM/DOMHTMLBodyElement.mm: * DOM/DOMHTMLButtonElement.mm: * DOM/DOMHTMLCanvasElement.mm: * DOM/DOMHTMLCollection.mm: * DOM/DOMHTMLDivElement.mm: * DOM/DOMHTMLDocument.mm: * DOM/DOMHTMLElement.mm: * DOM/DOMHTMLEmbedElement.mm: * DOM/DOMHTMLFieldSetElement.mm: * DOM/DOMHTMLFontElement.mm: * DOM/DOMHTMLFormElement.mm: * DOM/DOMHTMLFrameElement.mm: * DOM/DOMHTMLFrameSetElement.mm: * DOM/DOMHTMLHRElement.mm: * DOM/DOMHTMLHeadElement.mm: * DOM/DOMHTMLHeadingElement.mm: * DOM/DOMHTMLHtmlElement.mm: * DOM/DOMHTMLIFrameElement.mm: * DOM/DOMHTMLImageElement.mm: * DOM/DOMHTMLInputElement.mm: * DOM/DOMHTMLLIElement.mm: * DOM/DOMHTMLLabelElement.mm: * DOM/DOMHTMLLegendElement.mm: * DOM/DOMHTMLLinkElement.mm: * DOM/DOMHTMLMapElement.mm: * DOM/DOMHTMLMarqueeElement.mm: * DOM/DOMHTMLMediaElement.mm: * DOM/DOMHTMLMetaElement.mm: * DOM/DOMHTMLModElement.mm: * DOM/DOMHTMLOListElement.mm: * DOM/DOMHTMLObjectElement.mm: * DOM/DOMHTMLOptGroupElement.mm: * DOM/DOMHTMLOptionElement.mm: * DOM/DOMHTMLOptionsCollection.mm: * DOM/DOMHTMLParagraphElement.mm: * DOM/DOMHTMLParamElement.mm: * DOM/DOMHTMLQuoteElement.mm: * DOM/DOMHTMLScriptElement.mm: * DOM/DOMHTMLSelectElement.mm: * DOM/DOMHTMLStyleElement.mm: * DOM/DOMHTMLTableCaptionElement.mm: * DOM/DOMHTMLTableCellElement.mm: * DOM/DOMHTMLTableColElement.mm: * DOM/DOMHTMLTableElement.mm: * DOM/DOMHTMLTableRowElement.mm: * DOM/DOMHTMLTableSectionElement.mm: * DOM/DOMHTMLTitleElement.mm: * DOM/DOMHTMLUListElement.mm: * DOM/DOMHTMLVideoElement.mm: * DOM/DOMKeyboardEvent.mm: * DOM/DOMMediaList.mm: * DOM/DOMMouseEvent.mm: * DOM/DOMMutationEvent.mm: * DOM/DOMNamedNodeMap.mm: * DOM/DOMProcessingInstruction.mm: * DOM/DOMRange.mm: * DOM/DOMStyleSheet.mm: * DOM/DOMText.mm: * DOM/DOMTextEvent.mm: * DOM/DOMTokenList.mm: * DOM/DOMUIEvent.mm: * DOM/DOMXPathResult.mm: * History/WebHistoryItem.mm: * Misc/WebNSURLExtras.mm: (-[NSURL _web_userVisibleString]): (-[NSURL _web_URLByRemovingUserInfo]): (-[NSURL _web_dataForURLComponentType:]): (-[NSURL _web_schemeData]): (-[NSURL _web_hostData]): * Misc/WebUserContentURLPattern.mm: * Plugins/Hosted/NetscapePluginInstanceProxy.mm: * Plugins/WebNetscapePluginStream.h: (WebNetscapePluginStream::setRequestURL): * WebCoreSupport/WebChromeClient.h: * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::signedPublicKeyAndChallengeString const): * WebCoreSupport/WebContextMenuClient.h: * WebCoreSupport/WebContextMenuClient.mm: * WebCoreSupport/WebDragClient.h: * WebCoreSupport/WebFrameLoaderClient.h: * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::updateGlobalHistory): * WebCoreSupport/WebPaymentCoordinatorClient.h: * WebCoreSupport/WebPaymentCoordinatorClient.mm: (WebPaymentCoordinatorClient::showPaymentUI): * WebCoreSupport/WebPlatformStrategies.h: * WebCoreSupport/WebPlatformStrategies.mm: (WebPlatformStrategies::readURLFromPasteboard): * WebCoreSupport/WebPluginInfoProvider.h: * WebCoreSupport/WebPluginInfoProvider.mm: (WebPluginInfoProvider::webVisiblePluginInfo): * WebCoreSupport/WebSecurityOrigin.mm: * WebCoreSupport/WebVisitedLinkStore.h: * WebView/WebDataSource.mm: * WebView/WebFrame.mm: (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]): * WebView/WebImmediateActionController.mm: (-[WebImmediateActionController _defaultAnimationController]): * WebView/WebPDFView.mm: * WebView/WebScriptDebugger.mm: * WebView/WebViewInternal.h: Source/WebKitLegacy/win: * MarshallingHelpers.cpp: * MarshallingHelpers.h: * Plugins/PluginDatabase.cpp: * Plugins/PluginDatabase.h: * Plugins/PluginDatabaseWin.cpp: * Plugins/PluginStream.h: * Plugins/PluginView.h: * WebCoreSupport/WebContextMenuClient.h: * WebCoreSupport/WebDesktopNotificationsDelegate.cpp: * WebCoreSupport/WebDesktopNotificationsDelegate.h: * WebCoreSupport/WebFrameLoaderClient.h: * WebCoreSupport/WebPlatformStrategies.h: * WebCoreSupport/WebPluginInfoProvider.cpp: (WebPluginInfoProvider::webVisiblePluginInfo): * WebCoreSupport/WebPluginInfoProvider.h: * WebCoreSupport/WebVisitedLinkStore.h: * WebDataSource.cpp: * WebDownload.h: * WebElementPropertyBag.cpp: * WebFrame.h: * WebHistory.cpp: * WebHistory.h: * WebHistoryItem.cpp: * WebResource.cpp: (WebResource::WebResource): * WebResource.h: * WebSecurityOrigin.cpp: * WebURLResponse.cpp: (WebURLResponse::createInstance): * WebUserContentURLPattern.cpp: * WebView.h: Source/WTF: * WTF.xcodeproj/project.pbxproj: * wtf/CMakeLists.txt: * wtf/Forward.h: * wtf/PlatformGTK.cmake: * wtf/PlatformMac.cmake: * wtf/PlatformWPE.cmake: * wtf/PlatformWin.cmake: * wtf/URL.cpp: Renamed from Source/WebCore/platform/URL.cpp. (WTF::URL::protocolIs): * wtf/URL.h: Renamed from Source/WebCore/platform/URL.h. * wtf/URLHash.h: Renamed from Source/WebCore/platform/URLHash.h. (WTF::URLHash::hash): (WTF::URLHash::equal): * wtf/URLParser.cpp: Renamed from Source/WebCore/platform/URLParser.cpp. (WTF::URLParser::isInUserInfoEncodeSet): (WTF::URLParser::parseAuthority): * wtf/URLParser.h: Renamed from Source/WebCore/platform/URLParser.h. (WTF::URLParser::URLParser): (WTF::URLParser::result): * wtf/cf/CFURLExtras.cpp: Renamed from Source/WebCore/platform/cf/CFURLExtras.cpp. * wtf/cf/CFURLExtras.h: Renamed from Source/WebCore/platform/cf/CFURLExtras.h. * wtf/cf/URLCF.cpp: Renamed from Source/WebCore/platform/cf/URLCF.cpp. * wtf/cocoa/NSURLExtras.h: Copied from Source/WebCore/loader/archive/ArchiveResourceCollection.h. * wtf/cocoa/NSURLExtras.mm: Copied from Source/WebCore/platform/mac/WebCoreNSURLExtras.mm. (WTF::isArmenianLookalikeCharacter): (WTF::isArmenianScriptCharacter): (WTF::isASCIIDigitOrValidHostCharacter): (WTF::isLookalikeCharacter): (WTF::whiteListIDNScript): (WTF::readIDNScriptWhiteListFile): (WTF::allCharactersInIDNScriptWhiteList): (WTF::isSecondLevelDomainNameAllowedByTLDRules): (WTF::isRussianDomainNameCharacter): (WTF::allCharactersAllowedByTLDRules): (WTF::mapHostNameWithRange): (WTF::hostNameNeedsDecodingWithRange): (WTF::hostNameNeedsEncodingWithRange): (WTF::decodeHostNameWithRange): (WTF::encodeHostNameWithRange): (WTF::decodeHostName): (WTF::encodeHostName): (WTF::collectRangesThatNeedMapping): (WTF::collectRangesThatNeedEncoding): (WTF::collectRangesThatNeedDecoding): (WTF::applyHostNameFunctionToMailToURLString): (WTF::applyHostNameFunctionToURLString): (WTF::mapHostNames): (WTF::stringByTrimmingWhitespace): (WTF::URLByTruncatingOneCharacterBeforeComponent): (WTF::URLByRemovingResourceSpecifier): (WTF::URLWithData): (WTF::dataWithUserTypedString): (WTF::URLWithUserTypedString): (WTF::URLWithUserTypedStringDeprecated): (WTF::hasQuestionMarkOnlyQueryString): (WTF::dataForURLComponentType): (WTF::URLByRemovingComponentAndSubsequentCharacter): (WTF::URLByRemovingUserInfo): (WTF::originalURLData): (WTF::createStringWithEscapedUnsafeCharacters): (WTF::userVisibleString): (WTF::isUserVisibleURL): (WTF::rangeOfURLScheme): (WTF::looksLikeAbsoluteURL): * wtf/cocoa/URLCocoa.mm: Renamed from Source/WebCore/platform/mac/URLMac.mm. (WTF::URL::URL): (WTF::URL::createCFURL const): * wtf/glib/GUniquePtrSoup.h: Renamed from Source/WebCore/platform/network/soup/GUniquePtrSoup.h. * wtf/glib/URLSoup.cpp: Renamed from Source/WebCore/platform/soup/URLSoup.cpp. Tools: * TestWebKitAPI/Tests/WebCore/ContentExtensions.cpp: * TestWebKitAPI/Tests/WebCore/SecurityOrigin.cpp: * TestWebKitAPI/Tests/WebCore/URL.cpp: (TestWebKitAPI::createURL): (TestWebKitAPI::TEST_F): * TestWebKitAPI/Tests/WebCore/URLParser.cpp: (TestWebKitAPI::checkURL): (TestWebKitAPI::checkRelativeURL): (TestWebKitAPI::checkURLDifferences): (TestWebKitAPI::checkRelativeURLDifferences): * TestWebKitAPI/Tests/WebCore/UserAgentQuirks.cpp: * TestWebKitAPI/Tests/WebCore/YouTubePluginReplacement.cpp: * TestWebKitAPI/Tests/WebCore/cocoa/URLExtras.mm: (TestWebKitAPI::originalDataAsString): (TestWebKitAPI::userVisibleString): (TestWebKitAPI::literalURL): (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/WebKitCocoa/LoadAlternateHTMLString.mm: (TEST): * TestWebKitAPI/Tests/WebKitCocoa/LoadInvalidURLRequest.mm: (literalURL): * TestWebKitAPI/Tests/WebKitGLib/TestCookieManager.cpp: * TestWebKitAPI/Tests/mac/LoadInvalidURLRequest.mm: (-[LoadInvalidURLWebFrameLoadDelegate webView:didFailProvisionalLoadWithError:forFrame:]): * TestWebKitAPI/Tests/mac/SSLKeyGenerator.mm: * TestWebKitAPI/win/PlatformUtilitiesWin.cpp: (TestWebKitAPI::Util::createURLForResource): * lldb/lldb_webkit.py: (__lldb_init_module): (WTFURL_SummaryProvider): (WTFURLProvider): (WebCoreURL_SummaryProvider): Deleted. (WebCoreURLProvider): Deleted. (WebCoreURLProvider.__init__): Deleted. (WebCoreURLProvider.to_string): Deleted. Canonical link: https://commits.webkit.org/206915@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@238771 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-12-01 03:28:36 +00:00
cocoa/NSURLExtras.h
[Cocoa] Push applicationSDKVersion() down from WebCore into WTF https://bugs.webkit.org/show_bug.cgi?id=209030 Reviewed by Simon Fraser. Source/JavaScriptCore: dyld_get_program_sdk_version() gives you the wrong answer in the Web Process (or at least not the answer you actually want). There are already facilities for the UI Process to tell the Web Process what the real value is, but those functions are currently in WebCore, which is inaccessible to WTF. This patch is in preparation for https://bugs.webkit.org/show_bug.cgi?id=208969 which needs to know this information in WTF. I also found a few places which were calling dyld_get_program_sdk_version() in JavaScriptCore and WebCore (which is wrong because those libraries exist in the Web Process), and have fixed them up to use applicationSDKVersion() instead. * API/JSWrapperMap.mm: (supportsInitMethodConstructors): Source/WebCore: * html/HTMLObjectElement.cpp: * html/MediaElementSession.cpp: (WebCore::MediaElementSession::requiresFullscreenForVideoPlayback const): * loader/DocumentThreadableLoader.cpp: (WebCore::DocumentThreadableLoader::makeCrossOriginAccessRequest): * platform/RuntimeApplicationChecks.h: * platform/Timer.cpp: (WebCore::shouldSuppressThreadSafetyCheck): * platform/cocoa/RuntimeApplicationChecksCocoa.mm: (WebCore::applicationSDKVersionOverride): Deleted. (WebCore::setApplicationSDKVersion): Deleted. (WebCore::applicationSDKVersion): Deleted. Source/WebKit: * NetworkProcess/cocoa/NetworkProcessCocoa.mm: (WebKit::NetworkProcess::platformInitializeNetworkProcessCocoa): * Shared/WebPreferencesDefaultValues.cpp: (WebKit::defaultCSSOMViewScrollingAPIEnabled): * WebProcess/cocoa/WebProcessCocoa.mm: (WebKit::WebProcess::platformInitializeWebProcess): Source/WTF: * WTF.xcodeproj/project.pbxproj: * wtf/PlatformMac.cmake: * wtf/cocoa/RuntimeApplicationChecksCocoa.cpp: Added. * wtf/cocoa/RuntimeApplicationChecksCocoa.h: Added. (WTF::applicationSDKVersionOverride): (WTF::setApplicationSDKVersion): (WTF::applicationSDKVersion): Canonical link: https://commits.webkit.org/221992@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@258447 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-03-13 23:33:33 +00:00
cocoa/RuntimeApplicationChecksCocoa.h
cocoa/SoftLinking.h
cocoa/SpanCocoa.h
[Cocoa] Simplify NSArray, NSDictionary, and NSNumber idioms throughout WebKit https://bugs.webkit.org/show_bug.cgi?id=210138 Reviewed by Alex Christensen. Source/JavaScriptCore: * API/JSValue.mm: (valueToObjectWithoutCopy): Use @(). (valueToNumber): Ditto. * API/tests/testapi.mm: (-[TestObject callback:]): Use @[], @(), and @{}. (-[TextXYZ click]): Ditto. (testObjectiveCAPIMain): Ditto. Source/WebCore: - Added createNSArray and makeVector. - Use createNSArray and makeVector<String> in many places where we convert between NSArray and Vector, replacing multiple existing functions that were doing the same job before; later can use them even more. - Use @[] many places where we create an autoreleased NSArray. - Use @{} many places where we create an autoreleased NSDictionary. - Use @() many places where we create an autoreleased NSNumber. * PlatformMac.cmake: Moved Float/IntRectMac.mm to Float/IntRectCocoa.mm. * SourcesCocoa.txt: Ditto. * WebCore.xcodeproj/project.pbxproj: Ditto. * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm: (AXAttributeStringSetBlockquoteLevel): Use @(). (AXAttributeStringSetHeadingLevel): Use @(). (-[WebAccessibilityObjectWrapper textMarkerRangeForSelection]): Use @[]. (-[WebAccessibilityObjectWrapper _stringFromStartMarker:toEndMarker:attributed:]): Use @[]. (-[WebAccessibilityObjectWrapper elementsForRange:]): Use @[]. (-[WebAccessibilityObjectWrapper textMarkersForRange:]): Use @[]. * accessibility/mac/AXObjectCacheMac.mm: (WebCore::textReplacementChangeDictionary): Use @(). * accessibility/mac/WebAccessibilityObjectWrapperBase.mm: (makeVectorElement): Aded overload for AccessibilitySearchKey. (accessibilitySearchCriteriaForSearchPredicateParameterizedAttribute): Use makeVector<AccessibilitySearchKey>. * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (accessibilityTextCriteriaForParameterizedAttribute): Use makeVector<String>. (accessibilitySearchTextCriteriaForParameterizedAttribute): Use makeVector<String>. (AXAttributeStringSetStyle): Use @(). (AXAttributeStringSetBlockquoteLevel): Use @(). (AXAttributeStringSetHeadingLevel): Use @(). (-[WebAccessibilityObjectWrapper accessibilityActionNames]): Use @[]. (convertStringsToNSArray): Deleted. (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): Use @(), @[], and createNSArray. (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:forParameter:]): Ditto. * bridge/objc/WebScriptObject.mm: (+[WebScriptObject _convertValueToObjcValue:originRootObject:rootObject:]): Use @(). * editing/cocoa/AlternativeTextUIController.mm: (WebCore::AlternativeTextUIController::alternativesForContext): Use makeVector<String>. * editing/cocoa/HTMLConverter.mm: (defaultParagraphStyle): Use @[]. (HTMLConverter::computedAttributesForElement): Use @(). (HTMLConverter::_processMetaElementWithName): Use @(). (HTMLConverter::_addTableForElement): Use @(). * page/ios/FrameIOS.mm: (WebCore::Frame::interpretationsForCurrentRoot const): Use @[]. * platform/cocoa/MIMETypeRegistryCocoa.mm: (WebCore::MIMETypeRegistry::getExtensionsForMIMEType): Use makeVector<String>. * platform/graphics/FloatRect.h: Added makeNSArrayElement overload so we can convert Vector<FloatRect> into NSArray<NSValue>. * platform/graphics/IntRect.h: Similarly for IntRect. * platform/graphics/avfoundation/MediaSelectionGroupAVFObjC.mm: (WebCore::MediaSelectionGroupAVFObjC::updateOptions): Use createNSArray. * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: (WebCore::mediaDescriptionForKind): Use @[]. (WebCore::MediaPlayerPrivateAVFoundationObjC::createAVAssetForURL): Use @(). (WebCore::MediaPlayerPrivateAVFoundationObjC::createAVPlayerItem): Use @(). (WebCore::MediaPlayerPrivateAVFoundationObjC::checkPlayability): Use @[]. (WebCore::MediaPlayerPrivateAVFoundationObjC::createVideoOutput): Use @{} and @(). * platform/graphics/ca/cocoa/PlatformCAAnimationCocoa.mm: (WebCore::PlatformCAAnimationCocoa::valueFunction const): (WebCore::PlatformCAAnimationCocoa::setFromValue): (WebCore::PlatformCAAnimationCocoa::copyFromValueFrom): (WebCore::PlatformCAAnimationCocoa::setToValue): (WebCore::PlatformCAAnimationCocoa::copyToValueFrom): (WebCore::PlatformCAAnimationCocoa::setValues): (WebCore::PlatformCAAnimationCocoa::copyValuesFrom): (WebCore::PlatformCAAnimationCocoa::setKeyTimes): (WebCore::PlatformCAAnimationCocoa::copyKeyTimesFrom): (WebCore::PlatformCAAnimationCocoa::setTimingFunctions): (WebCore::PlatformCAAnimationCocoa::copyTimingFunctionsFrom): Use @(), @[], modern for loops, auto, and allocate with capacity. * platform/graphics/ca/cocoa/PlatformCAFiltersCocoa.mm: (WebCore::PlatformCAFilters::filterValueForOperation): Use @(). * platform/graphics/cocoa/FloatRectCocoa.mm: Moved from mac/FloatRectMac.mm. (WebCore::makeNSArrayElement): Added so we can convert Vector<FloatRect> into NSArray<NSValue>. * platform/graphics/cocoa/IntRectCocoa.mm: Moved from mac/IntRectMac.mm. (WebCore::makeNSArrayElement): Similarly for IntRect. (WebCore::enclosingIntRect): Use clampTo to be consistent with what enclosingIntRect(FloatRect) does (while fixing check-webkit-style complaint). * platform/graphics/cocoa/WebGLLayer.mm: (-[WebGLLayer display]): Add WebCore namespace prefix; needed depending on how sources get unified (and was affecting my local build when it temporarily had an additional source file). (-[WebGLLayer allocateIOSurfaceBackingStoreWithSize:usingAlpha:]): Ditto. (-[WebGLLayer bindFramebufferToNextAvailableSurface]): Ditto. * platform/graphics/ios/FontCacheIOS.mm: (WebCore::systemFontModificationAttributes): Use @(). * platform/ios/PlatformPasteboardIOS.mm: (WebCore::PlatformPasteboard::getTypes): Use makeVector<String>. (WebCore::createItemProviderRegistrationList): Use createNSArray. (WebCore::PlatformPasteboard::updateSupportedTypeIdentifiers): Use createNSArray. * platform/ios/WebItemProviderPasteboard.mm: (-[WebItemProviderPasteboard setItemProviders:]): Use @[]. * platform/ios/wak/WAKView.mm: (-[WAKView subviews]): Dittto. * platform/mac/PlatformPasteboardMac.mm: (WebCore::PlatformPasteboard::getTypes): Use makeVector<String>. (WebCore::PlatformPasteboard::getPathnamesForType const): Use makeVector<String>. (WebCore::PlatformPasteboard::addTypes): Use makeVector<String>. (WebCore::PlatformPasteboard::setTypes): Use makeVector<String>. * platform/mac/StringUtilities.h: Removed webCoreStringVectorFromNSStringArray, replaced by makeVector<String> * platform/mac/StringUtilities.mm: (WebCore::webCoreStringVectorFromNSStringArray): Deleted. * platform/mac/WebCoreNSURLExtras.mm: Removed unneeded include. * platform/mediarecorder/cocoa/MediaRecorderPrivateWriterCocoa.mm: (WebCore::MediaRecorderPrivateWriter::setVideoInput): Use @(). * platform/mediastream/mac/AVVideoCaptureSource.mm: (WebCore::AVVideoCaptureSource::setupCaptureSession): Use @(). * platform/network/cocoa/CookieCocoa.mm: (WebCore::Cookie::operator NSHTTPCookie * _Nullable const): Use @(). * platform/network/cocoa/NetworkStorageSessionCocoa.mm: (WebCore::NetworkStorageSession::setCookiesFromDOM const): Use @{}. * platform/network/cocoa/ResourceRequestCocoa.mm: (WebCore::ResourceRequest::doUpdatePlatformRequest): Use @YES/@NO. Source/WebKit: * NetworkProcess/cocoa/NetworkSessionCocoa.mm: Remove uneeded include. * Platform/mac/StringUtilities.mm: Ditto. * PluginProcess/mac/PluginProcessMac.mm: (WebKit::replacedNSConcreteTask_launch): Use makeVector<String>. (WebKit::replacedNSWorkspace_launchApplicationAtURL_options_configuration_error): Ditto. * Shared/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm: (WebKit::toSupportedNetworks): Deleted. (WebKit::WebPaymentCoordinatorProxy::platformPaymentRequest): Use createNSArray. * Shared/mac/PasteboardTypes.mm: (WebKit::PasteboardTypes::forEditing): Use @[]. (WebKit::PasteboardTypes::forURL): Ditto. (WebKit::PasteboardTypes::forImages): Ditto. (WebKit::PasteboardTypes::forImagesWithArchive): Ditto. (WebKit::PasteboardTypes::forSelection): Ditto. * UIProcess/API/Cocoa/WKContentRuleListStore.mm: (-[WKContentRuleListStore getAvailableContentRuleListIdentifiers:]): Use createNSArray. * UIProcess/API/Cocoa/WKProcessPool.mm: (-[WKProcessPool _getActivePagesOriginsInWebProcessForTesting:completionHandler:]): Ditto. * UIProcess/API/Cocoa/WKUserScript.mm: (-[WKUserScript _initWithSource:injectionTime:forMainFrameOnly:legacyWhitelist:legacyBlacklist:userContentWorld:]): (-[WKUserScript _initWithSource:injectionTime:forMainFrameOnly:legacyWhitelist:legacyBlacklist:associatedURL:userContentWorld:]): (-[WKUserScript _initWithSource:injectionTime:forMainFrameOnly:legacyWhitelist:legacyBlacklist:contentWorld:]): (-[WKUserScript _initWithSource:injectionTime:forMainFrameOnly:legacyWhitelist:legacyBlacklist:associatedURL:contentWorld:]): (-[WKUserScript _initWithSource:injectionTime:forMainFrameOnly:legacyWhitelist:legacyBlacklist:associatedURL:contentWorld:deferRunningUntilNotification:]): Use makeVector<String>. * UIProcess/API/Cocoa/WKWebView.mm: (-[WKWebView _setupPageConfiguration:]): Use makeVector<String>. * UIProcess/API/Cocoa/WKWebViewConfiguration.mm: (-[WKWebViewConfiguration _corsDisablingPatterns]): Use createNSArray. (-[WKWebViewConfiguration _setCORSDisablingPatterns:]): Use makeVector<String>. * UIProcess/API/Cocoa/WKWebViewTesting.mm: (-[WKWebView _contentsOfUserInterfaceItem:]): Use @(). * UIProcess/API/Cocoa/_WKContentRuleListAction.mm: (-[_WKContentRuleListAction notifications]): Use createNSArray. * UIProcess/API/Cocoa/_WKCustomHeaderFields.mm: (-[_WKCustomHeaderFields thirdPartyDomains]): Use createNSArray. (-[_WKCustomHeaderFields setThirdPartyDomains:]): Use makeVector<String>. * UIProcess/API/Cocoa/_WKProcessPoolConfiguration.mm: (-[_WKProcessPoolConfiguration cachePartitionedURLSchemes]): Use createNSArray. (-[_WKProcessPoolConfiguration setCachePartitionedURLSchemes:]): Use makeVector<String>. (-[_WKProcessPoolConfiguration alwaysRevalidatedURLSchemes]): Use createNSArray. (-[_WKProcessPoolConfiguration setAlwaysRevalidatedURLSchemes:]): Use makeVector<String>. * UIProcess/API/Cocoa/_WKUserContentWorldInternal.h: (API::toStringVector): Deleted. * UIProcess/API/Cocoa/_WKUserStyleSheet.mm: (-[_WKUserStyleSheet initWithSource:forMainFrameOnly:legacyWhitelist:legacyBlacklist:userContentWorld:]): (-[_WKUserStyleSheet initWithSource:forMainFrameOnly:legacyWhitelist:legacyBlacklist:baseURL:userContentWorld:]): Use makeVector<String>. * UIProcess/Cocoa/WebViewImpl.mm: (WebKit::WebViewImpl::accessibilityAttributeValue): Use @[]. (WebKit::WebViewImpl::performDragOperation): Use makeVector<String>. (WebKit::WebViewImpl::namesOfPromisedFilesDroppedAtDestination): Use @[]. (WebKit::WebViewImpl::collectKeyboardLayoutCommandsForEvent): Use @[]. * UIProcess/Plugins/mac/PluginProcessProxyMac.mm: (WebKit::PluginProcessProxy::launchProcess): Use createNSArray. (WebKit::isJavaUpdaterURL): Use @[]. (WebKit::PluginProcessProxy::launchApplicationAtURL): Use @{} and createNSArray. (WebKit::isSilverlightPreferencesURL): Use @[]. * UIProcess/WebAuthentication/Cocoa/HidService.mm: (WebKit::HidService::HidService): Use @() and fixed an over-release mistake. This code was doing adoptNS on the result of +[NSNumberWithInt:], which is incorrect. * UIProcess/WebAuthentication/Mock/MockLocalConnection.mm: (WebKit::MockLocalConnection::getAttestation const): Use @[]. * UIProcess/ios/WKContentViewInteraction.mm: (-[WKContentView textStylingAtPosition:inDirection:]): Use @(). (-[WKContentView requestRectsToEvadeForSelectionCommandsWithCompletionHandler:]): Use createNSArray. (-[WKContentView _itemsForBeginningOrAddingToSessionWithRegistrationLists:stagedDragSource:]): Fixed a wasteful call to autorelease where we are adding an item to a dictionary. Calling get is more efficient and still correct. * UIProcess/ios/forms/WKFileUploadPanel.mm: (-[WKFileUploadPanel imagePickerController:didFinishPickingMediaWithInfo:]): Use @[]. * UIProcess/ios/forms/WKFormColorPicker.mm: (-[WKColorMatrixView initWithFrame:colorMatrix:]): Removed uneeded RetainPtr local variable. * UIProcess/mac/CorrectionPanel.mm: (WebKit::CorrectionPanel::show): Use createNSArray. * UIProcess/mac/TextCheckerMac.mm: (WebKit::TextChecker::updateSpellingUIWithGrammarString): Use createNSArray. (WebKit::TextChecker::getGuessesForWord): Use makeVector<String>. * UIProcess/mac/WKPrintingView.mm: (-[WKPrintingView _adjustPrintingMarginsForHeaderAndFooter]): Use @(). * UIProcess/mac/WKTextFinderClient.mm: (arrayFromRects): Deleted. (-[WKTextFinderClient didFindStringMatchesWithRects:didWrapAround:]): Use createNSArray. * UIProcess/mac/WebDataListSuggestionsDropdownMac.mm: (-[WKDataListSuggestionsController notifyAccessibilityClients:]): Use @{} and fix a bug where this was creating a backwards dictionary. So this never could have been working before, making me wonder how we test it. * UIProcess/mac/WebPageProxyMac.mm: (WebKit::WebPageProxy::searchTheWeb): Use @[]. * WebProcess/InjectedBundle/API/mac/WKDOMInternals.h: Removed toNSArray. * WebProcess/InjectedBundle/API/mac/WKDOMInternals.mm: (WebKit::toNSArray): Deleted. * WebProcess/InjectedBundle/API/mac/WKDOMNode.mm: (-[WKDOMNode textRects]): Use createNSArray. * WebProcess/InjectedBundle/API/mac/WKDOMRange.mm: (-[WKDOMRange textRects]): Ditto. * WebProcess/InjectedBundle/mac/InjectedBundleMac.mm: (WebKit::InjectedBundle::setBundleParameter): Use @{}. * WebProcess/Plugins/Netscape/mac/PluginProxyMac.mm: (WebKit::makeRenderLayer): Use @[]. * WebProcess/Plugins/PDF/PDFPlugin.mm: (WebKit::PDFPlugin::writeItemsToPasteboard): Use makeVector<String>. * WebProcess/WebPage/ios/WebPageIOS.mm: (WebKit::WebPage::applicationDidEnterBackground): Use @(). * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm: (WebKit::TiledCoreAnimationDrawingArea::suspendPainting): Use @{}. (WebKit::TiledCoreAnimationDrawingArea::resumePainting): Use @{}. * WebProcess/WebPage/mac/WKAccessibilityWebPageObjectBase.mm: Removed an unneeded include. * WebProcess/WebPage/mac/WKAccessibilityWebPageObjectMac.mm: Ditto. (-[WKAccessibilityWebPageObject accessibilityActionNames]): Use @[]. (-[WKAccessibilityWebPageObject accessibilityChildren]): Use @[]. * WebProcess/cocoa/WebProcessCocoa.mm: (WebKit::WebProcess::getActivePagesOriginsForTesting): Use makeVector<String>. Source/WebKitLegacy/ios: * WebCoreSupport/WebChromeClientIOS.mm: (WebChromeClientIOS::runOpenPanel): Use createNSArray. * WebCoreSupport/WebVisiblePosition.mm: (-[WebVisiblePosition enclosingRangeWithDictationPhraseAlternatives:]): Use createNSArray. * WebCoreSupport/WebVisiblePositionInternal.h: Added #if so that this correctly doesn't compile anything on Mac. * WebView/WebPDFViewIOS.mm: (+[WebPDFView supportedMIMETypes]): Use @[]. Source/WebKitLegacy/mac: * DOM/DOM.mm: (kit): Deleted overload that takes Vector<IntRect>. (-[DOMNode textRects]): Use createNSArray. (-[DOMRange textRects]): Ditto. * DOM/ExceptionHandlers.mm: (raiseDOMErrorException): Use @(). * History/WebBackForwardList.mm: (-[WebBackForwardList dictionaryRepresentation]): Use @{}. * History/WebHistory.mm: (+[WebHistoryPrivate initialize]): Use @{}. (-[WebHistory _sendNotification:entries:]): Use @{}. * History/WebHistoryItem.mm: (-[WebHistoryItem initFromDictionaryRepresentation:]): Use makeVector<String>. (-[WebHistoryItem dictionaryRepresentation:]): Use createNSArray and @(). * History/WebURLsWithTitles.m: (+[WebURLsWithTitles arrayWithIFURLsWithTitlesPboardType]): Use @[]. (+[WebURLsWithTitles writeURLs:andTitles:toPasteboard:]): Use @[]. * Misc/WebCache.mm: (+[WebCache statistics]): Use @[], @{}, and @(). * Misc/WebCoreStatistics.mm: (+[WebCoreStatistics memoryStatistics]): Ditto. * Misc/WebKitErrors.m: (-[NSError _webkit_initWithDomain:code:URL:]): Use @(). (+[NSError _registerWebKitErrors]): Use @(). (-[NSError _initWithPluginErrorCode:contentURL:pluginPageURL:pluginName:MIMEType:]): Use @(). * Misc/WebKitNSStringExtras.mm: (-[NSString _web_drawAtPoint:font:textColor:]): Use @{}. (-[NSString _web_widthWithFont:]): Use @{}. * Misc/WebNSFileManagerExtras.mm: Removed unneeded include. * Misc/WebNSPasteboardExtras.mm: (+[NSPasteboard _web_dragTypesForURL]): Use @[]. (-[NSPasteboard _web_writeURL:andTitle:types:]): Use @[]. (+[NSPasteboard _web_setFindPasteboardString:withOwner:]): Use @[]. * Misc/WebNSURLExtras.mm: Removed unneeded include. * Plugins/Hosted/NetscapePluginHostManager.mm: (WebKit::NetscapePluginHostManager::spawnPluginHost): Use @{}. * Plugins/Hosted/NetscapePluginHostProxy.mm: (WKPCIdentifierInfo): Use @(). * Plugins/Hosted/NetscapePluginInstanceProxy.mm: (WebKit::NetscapePluginInstanceProxy::addValueToArray): Use @(). * Plugins/Hosted/WebHostedNetscapePluginView.mm: Removed unneeded include. * Plugins/WebBasePluginPackage.mm: Ditto. * Plugins/WebPluginContainerCheck.mm: (-[WebPluginContainerCheck _actionInformationWithURL:]): Use @{}. * Plugins/WebPluginDatabase.mm: (+[WebPluginDatabase _defaultPlugInPaths]): Use @[]. * Storage/WebDatabaseManager.mm: (-[WebDatabaseManager databasesWithOrigin:]): Use createNSArray. * WebCoreSupport/CorrectionPanel.mm: (CorrectionPanel::show): Use createNSArray. * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::addMessageToConsole): Use @(). * WebCoreSupport/WebEditorClient.mm: (attributesForAttributedStringConversion): Use @(). (WebEditorClient::getGuessesForWord): Use makeVector<String>. * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::actionDictionary const): Use @(). (kit): Deleted overload that takes Vector<String>. (pluginView): Use @{}. (WebFrameLoaderClient::createPlugin): Use createNSArray, @{}, and @(). (WebFrameLoaderClient::createJavaAppletWidget): Use createNSArray. * WebCoreSupport/WebOpenPanelResultListener.mm: (-[WebOpenPanelResultListener chooseFilenames:]): Use makeVector<String>. (-[WebOpenPanelResultListener chooseFilename:displayString:iconImage:]): Use @[]. (-[WebOpenPanelResultListener chooseFilenames:displayString:iconImage:]): Use makeVector<String>. * WebCoreSupport/WebSelectionServiceController.mm: (WebSelectionServiceController::handleSelectionServiceClick): Comment out an unused argument. * WebView/WebFrame.mm: (-[WebFrame _rectsForRange:]): Use createNSArrray. (-[WebFrame _computePageRectsWithPrintScaleFactor:pageSize:]): Use createNSArray and @[]. (-[WebFrame childFrames]): Use @[]. * WebView/WebHTMLView.mm: (+[WebHTMLView _selectionPasteboardTypes]): Use @[]. (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]): Use @[]. (-[WebHTMLView knowsPageRange:]): Use @[]. (-[WebHTMLView accessibilityAttributeValue:]): Use @[]. (-[WebHTMLView copyFont:]): Use @[]. (-[WebHTMLView _interpretKeyEvent:savingCommands:]): Use @[]. (-[WebHTMLView selectionTextRects]): Use createNSArray. (-[WebHTMLView rectsForTextMatches]): Use createNSArray and @[]. * WebView/WebPDFRepresentation.mm: Removed unneeded include. (+[WebPDFRepresentation postScriptMIMETypes]): Use @[]. (+[WebPDFRepresentation supportedMIMETypes]): Use @[]. * WebView/WebPDFView.mm: (-[WebPDFView elementAtPoint:]): Use @{} and @(). (-[WebPDFView viewState]): Use @(). (-[WebPDFView selectionTextRects]): Use @[]. (-[WebPDFView pasteboardTypesForSelection]): Use @[]. (-[WebPDFView _menuItemsFromPDFKitForEvent:]): Use @(). (-[WebPDFView _openWithFinder:]): Use @{} and @(). * WebView/WebPreferences.mm: (+[WebPreferences initialize]): Use @(). (-[WebPreferences _setUnsignedIntValue:forKey:]): Use @(). (+[WebPreferences _setInitialDefaultTextEncodingToSystemEncoding]): Use @(). (-[WebPreferences setStorageBlockingPolicy:]): Use @{} and @(). * WebView/WebScriptDebugger.mm: (WebScriptDebugger::sourceParsed): Use @(). * WebView/WebTextCompletionController.mm: (-[WebTextCompletionController _placePopupWindow:]): Use @{}. * WebView/WebView.mm: (-[WebView _preferencesChanged:]): Use makeVector<String>. (-[WebView _contentsOfUserInterfaceItem:]): Use @(). (toStringVector): Deleted. (+[WebView _addUserScriptToGroup:world:source:url:whitelist:blacklist:injectionTime:injectedFrames:]): Use makeVector<String>. (+[WebView _addUserStyleSheetToGroup:world:source:url:whitelist:blacklist:injectedFrames:]): Use makeVector<String>. (-[WebView _elementAtWindowPoint:]): Use @{}. (-[WebView pasteboardTypesForSelection]): Use @[]. (-[WebView pasteboardTypesForElement:]): Use @[]. (-[WebView rectsForTextMatches]): Use @[]. (-[WebView _searchWithGoogleFromMenu:]): Use @[]. (-[WebView _setFontWhitelist:]): Use makeVector<String>. Source/WTF: * WTF.xcodeproj/project.pbxproj: Added VectorCocoa.h. * wtf/PlatformMac.cmake: Ditto. * wtf/cocoa/NSURLExtras.mm: Removed unneeded include. * wtf/cocoa/URLCocoa.mm: Ditto. * wtf/cocoa/VectorCocoa.h: Added. Contains createNSArray and makeVector function templates for converting NSArray to and from Vector. * wtf/text/WTFString.h: Added makeNSArrayElement and makeVectorElement functions, making createNSArray and makeVector compatible with String. * wtf/text/cocoa/StringCocoa.mm: (WTF::makeNSArrayElement): Added. (WTF::makeVectorElement): Added. Tools: * DumpRenderTree/AccessibilityController.h: Remove use of NotificationHandler type; it's just "id". * DumpRenderTree/AccessibilityUIElement.cpp: (convertElementsToObjectArray): Moved this up in the file, removed unneeded use of JSValueToObject and unused exception argument. (elementsForRangeCallback): Use convertElementsToObjectArray. (columnHeadersCallback): Updated for removed exception argument. (rowHeadersCallback): Ditto. (uiElementArrayAttributeValueCallback): Ditto. * DumpRenderTree/AccessibilityUIElement.h: Changed to use RetainPtr. * DumpRenderTree/TestNetscapePlugIn/PluginObjectMac.mm: (createCoreAnimationLayer): Use @{}. * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: (AccessibilityUIElement::AccessibilityUIElement): Removed some unneeded code now that we use RetainPtr. (AccessibilityUIElement::~AccessibilityUIElement): Deleted. (AccessibilityUIElement::lineTextMarkerRangeForTextMarker): Use @[]. (AccessibilityUIElement::textMarkerRangeForMarkers): Use @[]. (AccessibilityUIElement::textMarkerRangeMatchesTextNearMarkers): Use @[]. * DumpRenderTree/ios/TextInputControllerIOS.m: (-[TextInputController markedRange]): Use @[]. * DumpRenderTree/mac/AccessibilityCommonMac.mm: (searchPredicateParameterizedAttributeForSearchCriteria): Tweak a little. * DumpRenderTree/mac/AccessibilityNotificationHandler.mm: (-[NSString createJSStringRef]): Deleted. Duplicate of a method already implemented in anothe file. * DumpRenderTree/mac/AccessibilityUIElementMac.mm: (makeVectorElement): Added overloads to make both makeVector<AccessibilityTextMarkerRange> and makeVector<AccessibilityUIElement> work. (AccessibilityUIElement::AccessibilityUIElement): Removed some unneeded code now that we use RetainPtr. (convertVectorToObjectArray): Removed unneeded use of JSValueToObject and unneeded exception argument. (convertNSArrayToVector): Deleted. (AccessibilityUIElement::getLinkedUIElements): Use makeVector<AccessibilityUIElement>. (AccessibilityUIElement::getDocumentLinks): Ditto. (AccessibilityUIElement::getChildren): Ditto. (AccessibilityUIElement::getChildrenWithRange): Ditto. (AccessibilityUIElement::rowHeaders const): Ditto. (AccessibilityUIElement::columnHeaders const): Ditto. (AccessibilityUIElement::uiElementArrayAttributeValue const): Ditto. (AccessibilityUIElement::role): Updated since m_element is a RetainPtr. (AccessibilityUIElement::subrole): Ditto. (AccessibilityUIElement::roleDescription): Ditto. (AccessibilityUIElement::computedRoleString): Ditto. (AccessibilityUIElement::title): Ditto. (AccessibilityUIElement::description): Ditto. (AccessibilityUIElement::orientation const): Ditto. (AccessibilityUIElement::stringValue): Ditto. (AccessibilityUIElement::language): Ditto. (AccessibilityUIElement::helpText const): Ditto. (AccessibilityUIElement::lineForIndex): Use @(). (AccessibilityUIElement::rangeForLine): Use @(). (AccessibilityUIElement::searchTextWithCriteria): Use makeVector<AccessibilityTextMarkerRange>. (AccessibilityUIElement::attributesOfColumnHeaders): Use makeVector<AccessibilityUIElement>. (AccessibilityUIElement::attributesOfRowHeaders): Ditto. (AccessibilityUIElement::attributesOfColumns): Ditto. (AccessibilityUIElement::attributesOfRows): Ditto. (AccessibilityUIElement::attributesOfVisibleCells): Ditto. (AccessibilityUIElement::cellForColumnAndRow): Use @[] and @(). (AccessibilityUIElement::setSelectedChild const): Use @[]. (AccessibilityUIElement::setSelectedChildAtIndex const): Use @[]. (AccessibilityUIElement::attributedStringForTextMarkerRangeWithOptions): Use @{}, @YES, and @NO. (AccessibilityUIElement::textMarkerRangeForMarkers): Use @[]. * DumpRenderTree/mac/DumpRenderTree.mm: (addTestPluginsToPluginSearchPath): Use @[]. (resetWebViewToConsistentStateBeforeTesting): Use @[]. * DumpRenderTree/mac/DumpRenderTreePasteboard.mm: (-[DumpRenderTreePasteboard declareType:owner:]): Use @[]. * DumpRenderTree/mac/EventSendingController.mm: (-[EventSendingController beginDragWithFiles:]): Use @(). (-[EventSendingController sentTouchEventOfType:]): Use @(). * DumpRenderTree/mac/MockWebNotificationProvider.mm: (-[MockWebNotificationProvider cancelNotification:]): Use @[]. * DumpRenderTree/mac/ObjCController.m: (-[ObjCController objectOfClass:]): Use @(). (-[ObjCController arrayOfString]): Use @[]. (-[ObjCController testWrapperRoundTripping:]): Use @(). (-[ObjCController testArray]): Use @[]. * DumpRenderTree/mac/TestRunnerMac.mm: (originsArrayToJS): Removed unneeded use of JSValueToObject. * DumpRenderTree/mac/TextInputControllerMac.m: (-[TextInputController markedRange]): Use @[] and @(). (-[TextInputController selectedRange]): Use @[] and @(). (-[TextInputController firstRectForCharactersFrom:length:]): Use @[] and @(). (-[TextInputController dictatedStringWithPrimaryString:alternative:alternativeOffset:alternativeLength:]): Use @[]. (-[TextInputController interpretKeyEvents:withSender:]): Use @[]. * DumpRenderTree/mac/UIScriptControllerMac.mm: (WTR::UIScriptControllerMac::copyText): Use []. * DumpRenderTree/win/AccessibilityUIElementWin.cpp: Deleted an unneeded copy constructor and destructor. * TestRunnerShared/cocoa/LayoutTestSpellChecker.mm: (-[LayoutTestSpellChecker setResultsFromJSObject:inContext:]): Use @{}. * TestWebKitAPI/Tests/WebKitCocoa/ContentRuleListNotification.mm: (toVector): Deleted. (-[ContentRuleListNotificationDelegate _webView:contentRuleListWithIdentifier:performedAction:forURL:]): Use makeVector<String>. * TestWebKitAPI/Tests/WebKitCocoa/InAppBrowserPrivacy.mm: (TestWebKitAPI::TEST): Use @[]. * TestWebKitAPI/Tests/WebKitCocoa/PasteImage.mm: (writeImageDataToPasteboard): Use @[] and @{}. (writeBundleFileToPasteboard): Use @[]. * TestWebKitAPI/Tests/WebKitCocoa/PasteWebArchive.mm: (TestWebKitAPI::TEST): Use @[]. * TestWebKitAPI/Tests/WebKitCocoa/UserContentController.mm: (TestWebKitAPI::TEST): Use @[]. * TestWebKitAPI/Tests/WebKitCocoa/WKAttachmentTests.mm: (TestWebKitAPI::TEST): Use @[]. * TestWebKitAPI/Tests/WebKitCocoa/WKHTTPCookieStore.mm: (TestWebKitAPI::TEST): Use @[]. * TestWebKitAPI/Tests/WebKitCocoa/WKWebsiteDatastore.mm: (TestWebKitAPI::TEST): Use @[]. * TestWebKitAPI/Tests/WebKitCocoa/WebsiteDataStoreCustomPaths.mm: (runWebsiteDataStoreCustomPaths): Use @[]. * TestWebKitAPI/Tests/mac/WebViewCanPasteURL.mm: (TestWebKitAPI::TEST): Use @[]. * TestWebKitAPI/Tests/mac/WebViewCanPasteZeroPng.mm: (TestWebKitAPI::TEST): Use @[]. * TestWebKitAPI/Tests/mac/WebViewDidCreateJavaScriptContext.mm: (-[DidCreateJavaScriptContextFrameLoadDelegate webView:didCreateJavaScriptContext:forFrame:]): Use @[]. * TestWebKitAPI/ios/mainIOS.mm: (main): Use @{}. * TestWebKitAPI/mac/InjectedBundleControllerMac.mm: (TestWebKitAPI::InjectedBundleController::platformInitialize): Use @{} and @(). * TestWebKitAPI/mac/mainMac.mm: (main): Use {}. * WebKitTestRunner/InjectedBundle/AccessibilityController.h: Use id instead of NotificationHandler. * WebKitTestRunner/InjectedBundle/AccessibilityTextMarkerRange.h: Use id for PlatformTextMarkerRange. Added an overload of makeVectorElement to make makeVector<RefPtr<AccessibilityTextMarkerRange>> work. * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: Use RetainPtr. Added an overload of makeVectorElement to make makeVector<RefPtr<AccessibilityUIElement>> work. * WebKitTestRunner/InjectedBundle/cocoa/ActivateFontsCocoa.mm: Removed unneeded include. * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: (WTR::convertNSArrayToVector): Deleted. (WTR::AccessibilityUIElement::AccessibilityUIElement): Simplified since we use RetainPtr. (WTR::AccessibilityUIElement::~AccessibilityUIElement): Ditto. (WTR::convertElementsToObjectArray): Removed unneeded use of JSValueToObject. (WTR::AccessibilityUIElement::elementsForRange): Use makeVector<RefPtr<AccessibilityUIElement>>. (WTR::AccessibilityUIElement::lineTextMarkerRangeForTextMarker): Use @[]. (WTR::AccessibilityUIElement::textMarkerRangeForMarkers): Use @[]. (WTR::AccessibilityUIElement::textMarkerRangeMatchesTextNearMarkers): * WebKitTestRunner/InjectedBundle/ios/InjectedBundleIOS.mm: (WTR::InjectedBundle::platformInitialize): Use @{}. * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: (WTR::AccessibilityUIElement::AccessibilityUIElement): Simplified since we use RetainPtr. (WTR::AccessibilityUIElement::~AccessibilityUIElement): Ditto. (WTR::convertNSArrayToVector): Deleted. (WTR::AccessibilityUIElement::getLinkedUIElements): Use makeVector<RefPtr<AccessibilityUIElement>>. (WTR::AccessibilityUIElement::getDocumentLinks): Ditto. (WTR::AccessibilityUIElement::getUIElementsWithAttribute const): Ditto. (WTR::AccessibilityUIElement::getChildren): Ditto. (WTR::AccessibilityUIElement::getChildrenWithRange): Ditto. (WTR::AccessibilityUIElement::rowHeaders const): Ditto. (WTR::AccessibilityUIElement::columnHeaders const): Ditto. (WTR::AccessibilityUIElement::allAttributes): Updated since m_element is a RetainPtr. (WTR::AccessibilityUIElement::stringDescriptionOfAttributeValue): Ditto. (WTR::AccessibilityUIElement::role): Ditto. (WTR::AccessibilityUIElement::subrole): Ditto. (WTR::AccessibilityUIElement::roleDescription): Ditto. (WTR::AccessibilityUIElement::computedRoleString): Ditto. (WTR::AccessibilityUIElement::title): Ditto. (WTR::AccessibilityUIElement::description): Ditto. (WTR::AccessibilityUIElement::orientation const): Ditto. (WTR::AccessibilityUIElement::stringValue): Ditto. (WTR::AccessibilityUIElement::language): Ditto. (WTR::AccessibilityUIElement::helpText const): Ditto. (WTR::AccessibilityUIElement::lineForIndex): Use @(). (WTR::AccessibilityUIElement::rangeForLine): Use @(). (WTR::AccessibilityUIElement::searchTextWithCriteria): Use makeVector<RefPtr<AccessibilityTextMarkerRange>>. (WTR::AccessibilityUIElement::attributesOfColumnHeaders): Ditto. (WTR::AccessibilityUIElement::attributesOfRowHeaders): Ditto. (WTR::AccessibilityUIElement::attributesOfColumns): Ditto. (WTR::AccessibilityUIElement::attributesOfRows): Ditto. (WTR::AccessibilityUIElement::attributesOfVisibleCells): Ditto. (WTR::AccessibilityUIElement::cellForColumnAndRow): Use @[] and @(). (WTR::AccessibilityUIElement::setSelectedChild const): Use @[]. (WTR::AccessibilityUIElement::setSelectedChildAtIndex const): Use @[]. (WTR::AccessibilityUIElement::textMarkerRangeForMarkers): Use @[]. * WebKitTestRunner/TestInvocation.cpp: (WTR::TestInvocation::didReceiveAllStorageAccessEntries): Take Vector&&. (WTR::TestInvocation::didReceiveWebViewCategory): Take String&&. * WebKitTestRunner/TestInvocation.h: Updated for the above. * WebKitTestRunner/cocoa/TestControllerCocoa.mm: (WTR::TestController::cocoaPlatformInitialize): Use @{}and @(). (WTR::TestController::getAllStorageAccessEntries): Use makeVector<String>. (WTR::TestController::loadedThirdPartyDomains): Use makeVector<String>. (WTR::TestController::getWebViewCategory): Update to pass String&&. (WTR::TestController::setAllowedMenuActions): Use createNSArray. * WebKitTestRunner/ios/HIDEventGenerator.mm: (-[HIDEventGenerator interpolatedEvents:]): Use @(). * WebKitTestRunner/mac/PlatformWebViewMac.mm: (WTR::PlatformWebView::changeWindowScaleIfNeeded): Use @{} and @(). * WebKitTestRunner/mac/TestControllerMac.mm: Removed unneeded include. * WebKitTestRunner/mac/UIScriptControllerMac.mm: (WTR::UIScriptControllerMac::copyText): Use @[]. * WebKitTestRunner/mac/WebKitTestRunnerPasteboard.mm: (-[WebKitTestRunnerPasteboard declareType:owner:]): Use @[]. Canonical link: https://commits.webkit.org/223199@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@259843 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-04-10 02:11:30 +00:00
cocoa/VectorCocoa.h
darwin/WeakLinking.h
spi/cf/CFBundleSPI.h
spi/cf/CFStringSPI.h
spi/cocoa/CFXPCBridgeSPI.h
spi/cocoa/CrashReporterClientSPI.h
[bmalloc] Add IsoHeap test to ensure that IsoHeap pages are not allocating too large VA https://bugs.webkit.org/show_bug.cgi?id=200103 Reviewed by Mark Lam. Source/bmalloc: * bmalloc/IsoPage.cpp: Source/WebCore: No behavior change in WebCore. * page/MemoryRelease.cpp: * page/ResourceUsageThread.h: (WebCore::TagInfo::TagInfo): Deleted. * page/cocoa/ResourceUsageThreadCocoa.mm: (WebCore::vmPageSize): Deleted. (WebCore::logFootprintComparison): Deleted. (WebCore::displayNameForVMTag): Deleted. (WebCore::pagesPerVMTag): Deleted. Source/WebCore/PAL: Move VMTag page memory investigation code from PAL to WTF to reuse it in TestWTF. * PAL.xcodeproj/project.pbxproj: * pal/PlatformMac.cmake: Source/WebKit: Move MachVMSPI.h from PAL to WTF. * Platform/cocoa/SharedMemoryCocoa.cpp: Source/WTF: We move VMTag page investigation code from PAL to WTF to use it in TestWTF. And we also accumulate allocated VA size in `reserved` field of `TagInfo`. * WTF.xcodeproj/project.pbxproj: * wtf/CMakeLists.txt: * wtf/PlatformMac.cmake: * wtf/ResourceUsage.h: Added. * wtf/cocoa/MemoryPressureHandlerCocoa.mm: * wtf/cocoa/ResourceUsageCocoa.cpp: Added. (WTF::vmPageSize): (WTF::logFootprintComparison): (WTF::displayNameForVMTag): (WTF::pagesPerVMTag): * wtf/spi/cocoa/MachVMSPI.h: Added. Tools: This patch adds tests to TestWTF IsoHeap tests to ensure that IsoHeap's component is not leaking pages or not allocating too large VAs for memory allocation. We use VMTag to get the system view of the allocated VAs and check whether it is not incredibly large. While the tests are white-box tests (it means that this is a bit flaky to the implementation changes of IsoHeap), I adjusted some threshold to make this less-flaky to the future implementation changes while it catches the severe issues we had. * TestWebKitAPI/Tests/WTF/bmalloc/IsoHeap.cpp: (assertEmptyPointerSet): (assertHasOnlyObjects): (assertClean): (TEST): (allocateAndDeallocate): Canonical link: https://commits.webkit.org/213939@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@247815 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-07-25 03:42:09 +00:00
spi/cocoa/MachVMSPI.h
REGRESSION(r185816): In the Hong Kong locale, navigator.language reports it's in the Taiwan locale https://bugs.webkit.org/show_bug.cgi?id=200043 Source/WTF: <rdar://problem/44119496> Reviewed by Dean Jackson. We ask the system for the current locale using CFLocaleCopyPreferredLanguages(), and then round-trip it through CFBundleGetLocalizationInfoForLocalization() / CFBundleCopyLocalizationForLocalizationInfo(). This was to work around the fact that CFLocaleCopyPreferredLanguages() previously didn't report BCP47 language codes. However, that round-tripping was introducing errors, such as "zh-Hant-HK" was getting turned into "zh-Hant-TW" which is clearly wrong. The CFBundle functions were never supposed to be used in this way. Instead, we can use CFLocaleCreateCanonicalLanguageIdentifierFromString() which is intended to canonicalize locale identifiers, and does return BCP47 language codes. However, this function preserves more fingerprinting entropy than the old code path, so we pass the input through new NSLocale SPI to minimize the entropy revealed. * WTF.xcodeproj/project.pbxproj: * wtf/Language.h: * wtf/Platform.h: * wtf/PlatformMac.cmake: * wtf/cf/LanguageCF.cpp: (WTF::httpStyleLanguageCode): (WTF::platformUserPreferredLanguages): * wtf/cocoa/LanguageCocoa.mm: Added. (WTF::minimizedLanguagesFromLanguages): * wtf/spi/cocoa/NSLocaleSPI.h: Added. Tools: Reviewed by Dean Jackson. Migrate system language tests to LayoutTests, to match the rest of our system language tests. * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: * TestWebKitAPI/Tests/mac/NavigatorLanguage.mm: Removed. LayoutTests: <rdar://problem/44119496> Reviewed by Dean Jackson. Migrate and update tests from TestWebKitAPI to LayoutTests, to match the rest of our system language tests. * platform/mac/TestExpectations: Mark these tests as possibly failing on older versions of macOS. * fast/text/international/system-language/navigator-language/navigator-language-en-GB-expected.txt: Added. * fast/text/international/system-language/navigator-language/navigator-language-en-GB.html: Added. * fast/text/international/system-language/navigator-language/navigator-language-en-US-expected.txt: Added. * fast/text/international/system-language/navigator-language/navigator-language-en-US.html: Added. * fast/text/international/system-language/navigator-language/navigator-language-en-expected.txt: Added. * fast/text/international/system-language/navigator-language/navigator-language-en.html: Added. * fast/text/international/system-language/navigator-language/navigator-language-es-419-expected.txt: Added. * fast/text/international/system-language/navigator-language/navigator-language-es-419.html: Added. * fast/text/international/system-language/navigator-language/navigator-language-es-ES-expected.txt: Added. * fast/text/international/system-language/navigator-language/navigator-language-es-ES.html: Added. * fast/text/international/system-language/navigator-language/navigator-language-es-MX-expected.txt: Added. * fast/text/international/system-language/navigator-language/navigator-language-es-MX.html: Added. * fast/text/international/system-language/navigator-language/navigator-language-es-expected.txt: Added. * fast/text/international/system-language/navigator-language/navigator-language-es.html: Added. * fast/text/international/system-language/navigator-language/navigator-language-fr-CA-expected.txt: Added. * fast/text/international/system-language/navigator-language/navigator-language-fr-CA.html: Added. * fast/text/international/system-language/navigator-language/navigator-language-fr-expected.txt: Added. * fast/text/international/system-language/navigator-language/navigator-language-fr.html: Added. * fast/text/international/system-language/navigator-language/navigator-language-hi-expected.txt: Added. * fast/text/international/system-language/navigator-language/navigator-language-hi.html: Added. * fast/text/international/system-language/navigator-language/navigator-language-ja-expected.txt: Added. * fast/text/international/system-language/navigator-language/navigator-language-ja.html: Added. * fast/text/international/system-language/navigator-language/navigator-language-pt-BR-expected.txt: Added. * fast/text/international/system-language/navigator-language/navigator-language-pt-BR.html: Added. * fast/text/international/system-language/navigator-language/navigator-language-pt-PT-expected.txt: Added. * fast/text/international/system-language/navigator-language/navigator-language-pt-PT.html: Added. * fast/text/international/system-language/navigator-language/navigator-language-ru-expected.txt: Added. * fast/text/international/system-language/navigator-language/navigator-language-ru.html: Added. * fast/text/international/system-language/navigator-language/navigator-language-zh-HK-expected.txt: Added. * fast/text/international/system-language/navigator-language/navigator-language-zh-HK.html: Added. * fast/text/international/system-language/navigator-language/navigator-language-zh-Hans-expected.txt: Added. * fast/text/international/system-language/navigator-language/navigator-language-zh-Hans.html: Added. * fast/text/international/system-language/navigator-language/navigator-language-zh-Hant-HK-expected.txt: Added. * fast/text/international/system-language/navigator-language/navigator-language-zh-Hant-HK.html: Added. * fast/text/international/system-language/navigator-language/navigator-language-zh-Hant-expected.txt: Added. * fast/text/international/system-language/navigator-language/navigator-language-zh-Hant.html: Added. * fast/text/international/system-language/navigator-language/navigator-language-zh-TW-expected.txt: Added. * fast/text/international/system-language/navigator-language/navigator-language-zh-TW.html: Added. * js/dom/navigator-language-expected.txt: Canonical link: https://commits.webkit.org/219222@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@254389 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-01-11 03:05:30 +00:00
spi/cocoa/NSLocaleSPI.h
spi/cocoa/SecuritySPI.h
[Cocoa] More tweaks and refactoring to prepare for ARC https://bugs.webkit.org/show_bug.cgi?id=188245 Reviewed by Dan Bernstein. Source/JavaScriptCore: * API/JSValue.mm: Use __unsafe_unretained. (JSContainerConvertor::convert): Use auto for compatibility with the above. * API/JSWrapperMap.mm: (allocateConstructorForCustomClass): Use CFTypeRef instead of Protocol *. (-[JSWrapperMap initWithGlobalContextRef:]): Use __unsafe_unretained. * heap/Heap.cpp: Updated include for rename: FoundationSPI.h -> objcSPI.h. Source/WebCore: * bridge/objc/objc_instance.mm: Updated include for rename: FoundationSPI.h -> objcSPI.h. * platform/ios/wak/WebCoreThread.mm: Ditto. Source/WebKit: * Platform/cocoa/WKCrashReporter.mm: (WebKit::setCrashLogMessage): Refactor into a separate function for clarity. (WebKit::setCrashReportApplicationSpecificInformation): Use a bridging cast. * Shared/mac/PasteboardTypes.mm: (WebKit::PasteboardTypes::forEditing): Use a bridging cast. * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm: (WebKit::convertToNPNNString): Added. Uses CFStringRef rather than NSString so we can manually manage the autoreleasing. (WebKit::initializeKeyboardEvent): Use convertToNPNNString. (WebKit::NetscapePlugin::sendComplexTextInput): Ditto. * WebProcess/Plugins/PDF/PDFPlugin.mm: Use __unsafe_unretained explicitly for a parent pointer. We could consider moving to __weak after switching to ARC. Source/WebKitLegacy/mac: * Carbon/CarbonUtils.m: Updated include for rename: FoundationSPI.h -> objcSPI.h. * Carbon/CarbonWindowFrame.m: (-[CarbonWindowFrame dealloc]): Deleted. It was empty. * DOM/DOM.mm: (-[DOMElement _imageTIFFRepresentation]): Use a bridging cast. (-[DOMNodeFilter finalize]): Deleted. WebKit no longer supports Objective-C garbage collection so this method isn't useful. * DOM/DOMXPath.mm: (-[DOMNativeXPathNSResolver finalize]): Deleted. WebKit no longer supports Objective-C garbage collection so this method isn't useful. * History/WebHistory.mm: (-[WebHistoryPrivate data]): Allocate an NSData instead of casting from a CFData. * Misc/WebElementDictionary.mm: (addLookupKey): Use a bridging cast. (cacheValueForKey): Ditto. (-[WebElementDictionary _fillCache]): Ditto. (-[WebElementDictionary objectForKey:]): Ditto. * Misc/WebKitNSStringExtras.mm: (-[NSString _web_drawAtPoint:font:textColor:]): Use a bridging cast. (-[NSString _web_widthWithFont:]): Ditto. (-[NSString _webkit_stringByTrimmingWhitespace]): Ditto. * Misc/WebLocalizableStrings.mm: (WebLocalizedString): Use a bridging cast. * Misc/WebNSDataExtras.mm: (-[NSString _web_capitalizeRFC822HeaderFieldName]): Use a bridging cast and use CFBridgingRelease instead of calling autorelease directly. (-[NSData _webkit_parseRFC822HeaderFields]): Use NSString methods instead of a mix of CFString and NSString. Also simplified logic a bit, and cut down on the amount of explicit release and autorelease. * Misc/WebNSDictionaryExtras.h: Deleted unused methods. * Misc/WebNSDictionaryExtras.m: (-[NSDictionary _webkit_intForKey:]): Deleted. (-[NSMutableDictionary _webkit_setInt:forKey:]): Deleted. (-[NSMutableDictionary _webkit_setFloat:forKey:]): Deleted. (-[NSMutableDictionary _webkit_setBool:forKey:]): Deleted. (-[NSMutableDictionary _webkit_setLongLong:forKey:]): Deleted. (-[NSMutableDictionary _webkit_setUnsignedLongLong:forKey:]): Deleted. (-[NSMutableDictionary _webkit_setUnsignedInt:forKey:]): Deleted. * Misc/WebStringTruncator.mm: (fontFromNSFont): Use a bridging cast. * Plugins/Hosted/NetscapePluginHostManager.mm: (WebKit::preferredBundleLocalizationName): Use a bridging cast and CFBridgingRelease. * Plugins/Hosted/NetscapePluginInstanceProxy.mm: (WebKit::NetscapePluginInstanceProxy::cleanup): Use a bridging cast. (WebKit::NetscapePluginInstanceProxy::status): Ditto. (WebKit::NetscapePluginInstanceProxy::loadURL): Ditto. (WebKit::NetscapePluginInstanceProxy::demarshalValueFromArray): Ditto. * Plugins/Hosted/ProxyInstance.mm: (WebKit::ProxyInstance::getPropertyNames): Ditto. * Plugins/WebBasePluginPackage.mm: (-[WebBasePluginPackage _objectForInfoDictionaryKey:]): Ditto. * Plugins/WebNetscapePluginEventHandlerCocoa.mm: (WebNetscapePluginEventHandlerCocoa::platformWindow): Ditto. * Plugins/WebNetscapePluginPackage.mm: (-[WebNetscapePluginPackage _initWithPath:]): Ditto. * Plugins/WebNetscapePluginView.mm: (-[WebNetscapePluginView _postURL:target:len:buf:file:notifyData:sendNotification:allowHeaders:]): Use bridging casts and use RetainPtr insteead of an explicit CFRelease. (-[WebNetscapePluginView status:]): Use a bridging cast. (-[WebNetscapePluginView popUpContextMenu:]): Ditto. * Plugins/WebPluginController.mm: (-[WebPluginController _cancelOutstandingChecks]): Use a bridging cast. * Plugins/WebPluginDatabase.mm: (checkCandidate): Use explicit __strong for out argument types. * Plugins/npapi.mm: (pluginViewForInstance): Use a bridging cast. * Storage/WebDatabaseManager.mm: (-[WebDatabaseManager detailsForDatabase:withOrigin:]): Use modern boxing instead of explicit NSNumber and NSDictionary calls. * WebCoreSupport/WebContextMenuClient.mm: (WebContextMenuClient::speak): Remove an unnecessary copy/autorelease pair. * WebCoreSupport/WebEditorClient.mm: (WebEditorClient::handleKeyboardEvent): Added a missing typecast. (WebEditorClient::handleInputMethodKeydown): Ditto. * WebCoreSupport/WebFrameNetworkingContext.mm: (WebFrameNetworkingContext::sourceApplicationAuditData const): Use a bridging cast. * WebCoreSupport/WebSecurityOriginPrivate.h: Forward declare WebSecurityOriginPrivate as a struct rather than an Objective-C class, since that's how it's defined. * WebInspector/WebNodeHighlighter.mm: Added missing includes. * WebView/WebFullScreenController.mm: (-[WebFullScreenController enterFullScreen:]): Use a bridging cast. * WebView/WebHTMLView.mm: (-[WebHTMLView _writeSelectionWithPasteboardTypes:toPasteboard:cachedAttributedString:]): Ditto. (-[WebHTMLView pasteboard:provideDataForType:]): Ditto. * WebView/WebImmediateActionController.mm: (-[WebImmediateActionController performHitTestAtPoint:]): Removed redundant code to go down to the document and then back to the frame. (-[WebImmediateActionController immediateActionRecognizerDidUpdateAnimation:]): Ditto. (-[WebImmediateActionController immediateActionRecognizerDidCancelAnimation:]): Ditto. (-[WebImmediateActionController immediateActionRecognizerDidCompleteAnimation:]): Ditto. * WebView/WebJSPDFDoc.mm: (jsPDFDocInitialize): Removed some unneeded type casting. (jsPDFDocFinalize): Ditto. (jsPDFDocPrint): Use a bridging cast. * WebView/WebPDFView.mm: (_applicationInfoForMIMEType): Use bridging casts. * WebView/WebPreferences.mm: (-[WebPreferences _setIntegerValue:forKey:]): Use boxing and setObject directly instead of methods from WebNSDictionaryExtras. (-[WebPreferences _setUnsignedIntValue:forKey:]): Ditto. (-[WebPreferences _setFloatValue:forKey:]): Ditto. (-[WebPreferences _setBoolValue:forKey:]): Ditto. (-[WebPreferences _setLongLongValue:forKey:]): Ditto. (-[WebPreferences _setUnsignedLongLongValue:forKey:]): Ditto. * WebView/WebView.mm: (-[WebView _removeFromAllWebViewsSet]): Use bridging cast. (-[WebView _addToAllWebViewsSet]): Ditto. (+[WebView closeAllWebViews]): Use a modern for loop instead of NSEnumerator. (-[WebView _windowVisibilityChanged:]): Moved this into the internal category so it can be called from WebViewData methods. * WebView/WebViewData.mm: Added an import so we can call an internal WebView method, _windowVisibilityChanged:. * WebView/WebViewInternal.h: Declared _windowVisibilityChanged: so it can be called from WebViewData methods. Source/WTF: * WTF.xcodeproj/project.pbxproj: Updated for rename: FoundationSPI.h -> objcSPI.h. * wtf/BlockPtr.h: Added missing include of "StdLibExtras.h". Also re-sorted includes. * wtf/HashFunctions.h: Add function for "__unsafe_unretained id". * wtf/HashTraits.h: Add traits for "__unsafe_unretained id". * wtf/PlatformMac.cmake: Updated for rename: FoundationSPI.h -> objcSPI.h. * wtf/WeakObjCPtr.h: Use mutable instead of const_cast, and write a version that uses __weak explicitly under ARC. Also moved function declarations from here to objcSPI.h. * wtf/cocoa/AutodrainedPool.cpp: Updated include for rename: FoundationSPI.h -> objcSPI.h. * wtf/spi/cocoa/objcSPI.h: Renamed from FoundationSPI.h and added the additional functions used by WeakObjCPtr.h. Also changed to both include the internal header and the function definitions when compiling with USE(APPLE_INTERNAL_SDK), helping us check that function definitions match. Tools: * DumpRenderTree/TestNetscapePlugIn/PluginObject.h: Use const void* for a CFTypeRef instead of void*. * DumpRenderTree/TestNetscapePlugIn/PluginObjectMac.mm: (createCoreAnimationLayer): Use CFBridgingRetain. * DumpRenderTree/mac/AccessibilityUIElementMac.mm: (AccessibilityUIElement::lineTextMarkerRangeForTextMarker): Use bridging casts. (AccessibilityUIElement::textMarkerRangeForElement): Ditto. (AccessibilityUIElement::selectedTextMarkerRange): Ditto. (AccessibilityUIElement::textMarkerRangeLength): Ditto. (AccessibilityUIElement::attributedStringForTextMarkerRangeContainsAttribute): Ditto. (AccessibilityUIElement::indexForTextMarker): Ditto. (AccessibilityUIElement::textMarkerForIndex): Ditto. (AccessibilityUIElement::isTextMarkerValid): Ditto. (AccessibilityUIElement::previousTextMarker): Ditto. (AccessibilityUIElement::nextTextMarker): Ditto. (AccessibilityUIElement::stringForTextMarkerRange): Ditto. (createJSStringRef): Ditto. (AccessibilityUIElement::attributedStringForTextMarkerRange): Ditto. (AccessibilityUIElement::attributedStringForTextMarkerRangeWithOptions): Ditto. (AccessibilityUIElement::textMarkerRangeForMarkers): Ditto. (AccessibilityUIElement::startTextMarkerForTextMarkerRange): Ditto. (AccessibilityUIElement::endTextMarkerForTextMarkerRange): Ditto. (AccessibilityUIElement::endTextMarkerForBounds): Ditto. (AccessibilityUIElement::startTextMarkerForBounds): Ditto. (AccessibilityUIElement::textMarkerForPoint): Ditto. (AccessibilityUIElement::accessibilityElementForTextMarker): Ditto. (AccessibilityUIElement::startTextMarker): Ditto. (AccessibilityUIElement::endTextMarker): Ditto. (AccessibilityUIElement::setSelectedVisibleTextRange): Ditto. (AccessibilityUIElement::leftWordTextMarkerRangeForTextMarker): Ditto. (AccessibilityUIElement::rightWordTextMarkerRangeForTextMarker): Ditto. (AccessibilityUIElement::previousWordStartTextMarkerForTextMarker): Ditto. (AccessibilityUIElement::nextWordEndTextMarkerForTextMarker): Ditto. (AccessibilityUIElement::paragraphTextMarkerRangeForTextMarker): Ditto. (AccessibilityUIElement::previousParagraphStartTextMarkerForTextMarker): Ditto. (AccessibilityUIElement::nextParagraphEndTextMarkerForTextMarker): Ditto. (AccessibilityUIElement::sentenceTextMarkerRangeForTextMarker): Ditto. (AccessibilityUIElement::previousSentenceStartTextMarkerForTextMarker): Ditto. (AccessibilityUIElement::nextSentenceEndTextMarkerForTextMarker): Ditto. * DumpRenderTree/mac/DumpRenderTree.mm: (resetWebPreferencesToConsistentValues): Use bridging cast. (dumpFramesAsText): Ditto. (dumpBackForwardListForAllWindows): Use a modern for loop instead of CFArray functions to iterate the array. (dump): Use bridging cast. (runTest): Ditto. * DumpRenderTree/mac/DumpRenderTreePasteboard.mm: (+[LocalPasteboard alloc]): Use class_createInstance instead of NSAllocateObject. (toUTI): Return a RetainPtr<CFStringRef>. (-[LocalPasteboard types]): Use the above and bridging casts. (-[LocalPasteboard availableTypeFromArray:]): Ditto. (-[LocalPasteboard setData:forType:]): Ditto. (-[LocalPasteboard dataForType:]): Ditto. (-[LocalPasteboard setPropertyList:forType:]): Use NSPropertyListSerialization instead of CFPropertyList. (-[LocalPasteboard setString:forType:]): Use NSString method instead of CFStringCreateExternalRepresentation. * DumpRenderTree/mac/MockGeolocationProvider.h: Put CFTypeRef in a HashSet instead of an Objective-C object pointer type. * DumpRenderTree/mac/MockGeolocationProvider.mm: (-[MockGeolocationProvider registerWebView:]): Update for above. (-[MockGeolocationProvider unregisterWebView:]): Ditto. (-[MockGeolocationProvider timerFired]): Ditto. * DumpRenderTree/mac/MockWebNotificationProvider.h: Use CFTypeRef in HashMap and HashSet instead of an Objective-C object pointer type. * DumpRenderTree/mac/MockWebNotificationProvider.mm: (-[MockWebNotificationProvider registerWebView:]): Update for above. (-[MockWebNotificationProvider unregisterWebView:]): Ditto. (-[MockWebNotificationProvider showNotification:fromWebView:]): Ditto. (-[MockWebNotificationProvider cancelNotification:]): Ditto. (-[MockWebNotificationProvider simulateWebNotificationClick:]): Ditto. * DumpRenderTree/mac/ObjCPlugin.m: (-[JSObjC retainObject:]): Use CFRetain instead of -[NSObject retain]. * DumpRenderTree/mac/TestRunnerMac.mm: (TestRunner::addDisallowedURL): Use bridging cast. (TestRunner::applicationCacheDiskUsageForOrigin): Ditto. (TestRunner::clearApplicationCacheForOrigin): Ditto. (originsArrayToJS): Ditto. (TestRunner::copyDecodedHostName): Ditto. (TestRunner::copyEncodedHostName): Ditto. (TestRunner::queueLoad): Ditto. (TestRunner::setDomainRelaxationForbiddenForURLScheme): Ditto. (TestRunner::setMockGeolocationPositionUnavailableError): Ditto. (TestRunner::setUserStyleSheetLocation): Ditto. (TestRunner::setValueForUser): Ditto. (TestRunner::overridePreference): Ditto. (TestRunner::execCommand): Ditto. (TestRunner::findString): Ditto. (TestRunner::isCommandEnabled): Ditto. (TestRunner::addOriginAccessWhitelistEntry): Ditto. (TestRunner::removeOriginAccessWhitelistEntry): Ditto. (TestRunner::addUserScript): Ditto. (TestRunner::addUserStyleSheet): Ditto. (TestRunner::evaluateInWebInspector): Ditto. (TestRunner::evaluateScriptInIsolatedWorld): Ditto. (TestRunner::authenticateSession): Ditto. (TestRunner::grantWebNotificationPermission): Ditto. (TestRunner::denyWebNotificationPermission): Ditto. * TestRunnerShared/cocoa/LayoutTestSpellChecker.mm: (-[LayoutTestSpellChecker setResultsFromJSObject:inContext:]): Ditto. * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: (WTR::AccessibilityUIElement::lineTextMarkerRangeForTextMarker): Use bridging cast. (WTR::AccessibilityUIElement::textMarkerRangeForElement): Ditto. (WTR::AccessibilityUIElement::previousTextMarker): Ditto. (WTR::AccessibilityUIElement::nextTextMarker): Ditto. (WTR::AccessibilityUIElement::textMarkerRangeForMarkers): Ditto. (WTR::AccessibilityUIElement::selectedTextMarkerRange): Ditto. (WTR::AccessibilityUIElement::startTextMarkerForTextMarkerRange): Ditto. (WTR::AccessibilityUIElement::endTextMarkerForTextMarkerRange): Ditto. (WTR::AccessibilityUIElement::endTextMarkerForBounds): Ditto. (WTR::AccessibilityUIElement::startTextMarkerForBounds): Ditto. (WTR::AccessibilityUIElement::textMarkerForPoint): Ditto. (WTR::AccessibilityUIElement::textMarkerForIndex): Ditto. (WTR::AccessibilityUIElement::startTextMarker): Ditto. (WTR::AccessibilityUIElement::endTextMarker): Ditto. (WTR::AccessibilityUIElement::leftWordTextMarkerRangeForTextMarker): Ditto. (WTR::AccessibilityUIElement::rightWordTextMarkerRangeForTextMarker): Ditto. (WTR::AccessibilityUIElement::previousWordStartTextMarkerForTextMarker): Ditto. (WTR::AccessibilityUIElement::nextWordEndTextMarkerForTextMarker): Ditto. (WTR::AccessibilityUIElement::paragraphTextMarkerRangeForTextMarker): Ditto. (WTR::AccessibilityUIElement::previousParagraphStartTextMarkerForTextMarker): Ditto. (WTR::AccessibilityUIElement::nextParagraphEndTextMarkerForTextMarker): Ditto. (WTR::AccessibilityUIElement::sentenceTextMarkerRangeForTextMarker): Ditto. (WTR::AccessibilityUIElement::previousSentenceStartTextMarkerForTextMarker): Ditto. (WTR::AccessibilityUIElement::nextSentenceEndTextMarkerForTextMarker): Ditto. * WebKitTestRunner/PlatformMac.cmake: Added WebKitTestRunnerWindow.h and .mm files. * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj: Ditto. * WebKitTestRunner/mac/EventSenderProxy.mm: Add include of WebKitTestRunnerWindow.h so we can use the type and know it inherits from NSWindow. * WebKitTestRunner/mac/PlatformWebViewMac.mm: Add include of WebKitTestRunnerWindow.h so we can use the type and know it inherits from NSWindow. Moved WebKitTestRunnerWindow class into a separate file. (WTR::PlatformWebView::keyWindow): Call +[WebKitTestRunnerWindow _WTR_keyWindow] instead of have a second copy of the implementation. * WebKitTestRunner/mac/WebKitTestRunnerEvent.mm: Add include of WebKitTestRunnerWindow.h so we can use the type and know it inherits from NSWindow. Also removed "using namespace". (+[WebKitTestRunnerEvent mouseLocation]): Updated for above. * WebKitTestRunner/mac/WebKitTestRunnerPasteboard.mm: (+[LocalPasteboard alloc]): Use class_createInstance instead of NSAllocateObject. (-[LocalPasteboard availableTypeFromArray:]): Use modern for loop. (-[LocalPasteboard setData:forType:]): Reordered method to be a tiny bit more efficient. (-[LocalPasteboard setPropertyList:forType:]): Use NSPropertyListSerialization instead of CFPropertyList. (-[LocalPasteboard setString:forType:]): Use NSString method instead of CFStringCreateExternalRepresentation. * WebKitTestRunner/mac/WebKitTestRunnerWindow.h: Moved declaration of WebKitTestRunnerWindow here so it can be included by files that need to know what the type is and that it inherits from NSWindow. * WebKitTestRunner/mac/WebKitTestRunnerWindow.mm: Added. Moved implementation here. (+[WebKitTestRunnerWindow _WTR_keyWindow]): Use modern for loop instead of the old, messier implementation. Canonical link: https://commits.webkit.org/203508@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@234685 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-08-08 02:39:12 +00:00
spi/cocoa/objcSPI.h
spi/darwin/DataVaultSPI.h
[WTF] Add signpost API https://bugs.webkit.org/show_bug.cgi?id=208395 Reviewed by Alex Christensen. We want to start using os_signpost instead of kdebug_trace when emitting performance events, because it is usually cheaper (doesn't require a system call unless the log buffer is full) and allows for richer tracepoints (allows for logging strings as well as integers). To facilitate this, this moves the os_signpost wrappers in NetworkDataTaskCocoa to WTF. Since signposts can contain sensitive strings (like URLs), currently we only enable them on Apple-internal devices when an environment variable is set. Source/WebCore/PAL: * PAL.xcodeproj/project.pbxproj: * pal/PlatformMac.cmake: * spi/darwin/OSVariantSPI.h: Renamed to wtf/spi/darwin/OSVariantSPI.h. Source/WebKit: * NetworkProcess/cocoa/NetworkDataTaskCocoa.mm: (WebKit::NetworkDataTaskCocoa::NetworkDataTaskCocoa): (WebKit::NetworkDataTaskCocoa::didSendData): (WebKit::NetworkDataTaskCocoa::didReceiveChallenge): (WebKit::NetworkDataTaskCocoa::didCompleteWithError): (WebKit::NetworkDataTaskCocoa::didReceiveData): (WebKit::NetworkDataTaskCocoa::didReceiveResponse): (WebKit::NetworkDataTaskCocoa::willPerformHTTPRedirection): (WebKit::NetworkDataTaskCocoa::cancel): (WebKit::NetworkDataTaskCocoa::resume): (signpostLogHandle): Deleted. (signpostsEnabled): Deleted. Source/WTF: * WTF.xcodeproj/project.pbxproj: * wtf/PlatformMac.cmake: * wtf/SystemTracing.h: * wtf/cocoa/SystemTracingCocoa.cpp: Added. (WTFSignpostsEnabled): (WTFSignpostLogHandle): * wtf/spi/darwin/OSVariantSPI.h: Renamed from Source/WebCore/PAL/pal/spi/cocoa/OSVariantSPI.h. Canonical link: https://commits.webkit.org/221415@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@257762 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-03-03 05:14:21 +00:00
spi/darwin/OSVariantSPI.h
spi/darwin/ProcessMemoryFootprint.h
spi/darwin/SandboxSPI.h
spi/darwin/XPCSPI.h
spi/darwin/dyldSPI.h
Move FileSystem to WTF https://bugs.webkit.org/show_bug.cgi?id=193602 Reviewed by Yusuke Suzuki. Source/WebCore: * Modules/encryptedmedia/CDM.cpp: * Modules/encryptedmedia/legacy/WebKitMediaKeySession.cpp: * Modules/entriesapi/DOMFileSystem.cpp: * Modules/entriesapi/FileSystemEntry.cpp: * Modules/indexeddb/IDBDatabaseIdentifier.cpp: * Modules/indexeddb/server/SQLiteIDBBackingStore.cpp: * Modules/indexeddb/server/SQLiteIDBTransaction.cpp: * Modules/indexeddb/shared/InProcessIDBServer.cpp: * Modules/webdatabase/DatabaseTracker.cpp: * Modules/webdatabase/OriginLock.cpp: * Modules/webdatabase/OriginLock.h: * Modules/webdatabase/cocoa/DatabaseManagerCocoa.mm: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWin.cmake: * Sources.txt: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * bindings/js/GCController.cpp: * dom/DataTransferItem.cpp: * editing/cocoa/WebContentReaderCocoa.mm: * fileapi/File.cpp: * fileapi/FileCocoa.mm: * html/FileInputType.cpp: * html/FileListCreator.cpp: * loader/appcache/ApplicationCacheHost.cpp: * loader/appcache/ApplicationCacheStorage.cpp: * page/Page.cpp: * page/SecurityOrigin.cpp: * page/SecurityOriginData.cpp: * platform/FileHandle.h: * platform/FileStream.cpp: * platform/FileStream.h: * platform/SharedBuffer.h: * platform/SourcesGLib.txt: * platform/cocoa/FileMonitorCocoa.mm: * platform/glib/FileMonitorGLib.cpp: * platform/glib/SharedBufferGlib.cpp: * platform/graphics/avfoundation/objc/CDMSessionAVContentKeySession.mm: * platform/graphics/avfoundation/objc/CDMSessionAVStreamSession.mm: * platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.mm: * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm: * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp: * platform/ios/QuickLook.mm: * platform/ios/WebItemProviderPasteboard.mm: * platform/mediarecorder/cocoa/MediaRecorderPrivateWriterCocoa.mm: * platform/network/BlobDataFileReference.cpp: * platform/network/BlobRegistryImpl.cpp: * platform/network/BlobResourceHandle.cpp: * platform/network/FormData.cpp: * platform/network/cf/FormDataStreamCFNet.cpp: * platform/network/cocoa/ResourceRequestCocoa.mm: * platform/network/curl/CookieJarDB.cpp: * platform/network/curl/CurlCacheEntry.h: * platform/network/curl/CurlCacheManager.cpp: * platform/network/curl/CurlFormDataStream.h: * platform/network/curl/CurlRequest.h: * platform/network/curl/NetworkStorageSessionCurl.cpp: * platform/network/curl/ResourceHandleCurl.cpp: * platform/network/mac/BlobDataFileReferenceMac.mm: * platform/network/soup/ResourceHandleSoup.cpp: * platform/network/soup/SoupNetworkSession.cpp: * platform/posix/SharedBufferPOSIX.cpp: * platform/sql/SQLiteFileSystem.cpp: * platform/text/hyphen/HyphenationLibHyphen.cpp: * platform/win/SearchPopupMenuDB.cpp: * rendering/RenderTheme.cpp: * rendering/RenderThemeGtk.cpp: * rendering/RenderThemeWin.cpp: * workers/service/server/RegistrationDatabase.cpp: Source/WebCore/PAL: * PAL.xcodeproj/project.pbxproj: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/Classifier/ResourceLoadStatisticsPersistentStorage.cpp: * NetworkProcess/NetworkDataTaskBlob.h: * NetworkProcess/NetworkProcess.cpp: * NetworkProcess/cache/CacheStorageEngine.cpp: * NetworkProcess/cache/CacheStorageEngineCaches.cpp: * NetworkProcess/cache/NetworkCache.cpp: * NetworkProcess/cache/NetworkCacheBlobStorage.cpp: * NetworkProcess/cache/NetworkCacheData.cpp: * NetworkProcess/cache/NetworkCacheFileSystem.cpp: * NetworkProcess/cache/NetworkCacheFileSystem.h: * NetworkProcess/cache/NetworkCacheIOChannelCocoa.mm: * NetworkProcess/cache/NetworkCacheIOChannelSoup.cpp: * NetworkProcess/cache/NetworkCacheStatistics.cpp: * NetworkProcess/cache/NetworkCacheStorage.cpp: * NetworkProcess/cocoa/NetworkDataTaskCocoa.mm: * NetworkProcess/cocoa/NetworkSessionCocoa.mm: * NetworkProcess/mac/NetworkProcessMac.mm: * NetworkProcess/soup/NetworkProcessSoup.cpp: * PluginProcess/unix/PluginProcessMainUnix.cpp: * Shared/PersistencyUtils.cpp: * Shared/Plugins/Netscape/unix/NetscapePluginModuleUnix.cpp: * Shared/Plugins/unix/PluginSearchPath.cpp: * Shared/WebMemorySampler.h: * Shared/glib/ProcessExecutablePathGLib.cpp: * Shared/ios/ChildProcessIOS.mm: * Shared/mac/ChildProcessMac.mm: * Shared/mac/SandboxExtensionMac.mm: * UIProcess/API/APIContentRuleListStore.cpp: * UIProcess/API/Cocoa/APIWebsiteDataStoreCocoa.mm: * UIProcess/API/glib/APIWebsiteDataStoreGLib.cpp: * UIProcess/API/glib/IconDatabase.cpp: * UIProcess/API/glib/WebKitFaviconDatabase.cpp: * UIProcess/API/glib/WebKitFileChooserRequest.cpp: * UIProcess/API/glib/WebKitWebContext.cpp: * UIProcess/API/glib/WebKitWebsiteDataManager.cpp: * UIProcess/API/win/APIWebsiteDataStoreWin.cpp: * UIProcess/Automation/WebAutomationSession.cpp: * UIProcess/Cocoa/DownloadClient.mm: * UIProcess/Cocoa/WebProcessPoolCocoa.mm: * UIProcess/Cocoa/WebViewImpl.mm: * UIProcess/DeviceIdHashSaltStorage.cpp: * UIProcess/Downloads/DownloadProxy.cpp: * UIProcess/Launcher/glib/BubblewrapLauncher.cpp: * UIProcess/Launcher/glib/ProcessLauncherGLib.cpp: * UIProcess/Plugins/gtk/PluginInfoCache.cpp: * UIProcess/Plugins/mac/PluginProcessProxyMac.mm: * UIProcess/Plugins/unix/PluginInfoStoreUnix.cpp: * UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp: * UIProcess/ServiceWorkerProcessProxy.cpp: * UIProcess/WebStorage/LocalStorageDatabase.cpp: * UIProcess/WebStorage/LocalStorageDatabaseTracker.cpp: * UIProcess/WebsiteData/Cocoa/WebsiteDataStoreCocoa.mm: * UIProcess/WebsiteData/WebsiteDataStore.cpp: * UIProcess/glib/WebProcessProxyGLib.cpp: * UIProcess/gtk/WebInspectorProxyGtk.cpp: * UIProcess/gtk/WebProcessPoolGtk.cpp: * UIProcess/ios/WKContentViewInteraction.mm: * UIProcess/ios/forms/WKFileUploadPanel.mm: * UIProcess/mac/WebPageProxyMac.mm: * UIProcess/win/WebProcessPoolWin.cpp: * UIProcess/win/WebView.cpp: * UIProcess/wpe/WebProcessPoolWPE.cpp: * WebProcess/InjectedBundle/API/glib/WebKitExtensionManager.cpp: * WebProcess/InjectedBundle/glib/InjectedBundleGlib.cpp: * WebProcess/MediaCache/WebMediaKeyStorageManager.cpp: * WebProcess/Plugins/Netscape/NetscapePluginStream.h: * WebProcess/Plugins/PluginProcessConnection.cpp: * WebProcess/WebCoreSupport/SessionStateConversion.cpp: * WebProcess/WebPage/gtk/WebInspectorUIGtk.cpp: * WebProcess/WebPage/win/WebInspectorUIWin.cpp: * WebProcess/cocoa/WebProcessCocoa.mm: Source/WebKitLegacy: * Storage/StorageAreaSync.cpp: * Storage/StorageSyncManager.cpp: * Storage/StorageTracker.cpp: Source/WebKitLegacy/mac: * Misc/WebNSFileManagerExtras.mm: * Storage/WebDatabaseProvider.mm: * WebView/WebView.mm: Source/WebKitLegacy/win: * Plugins/PluginDatabase.cpp: * Plugins/PluginPackage.h: * Plugins/PluginStream.h: * WebApplicationCache.cpp: * WebDatabaseManager.cpp: * WebDownloadCurl.cpp: * WebPreferences.cpp: * WebView.cpp: Source/WTF: * WTF.xcodeproj/project.pbxproj: * wtf/CMakeLists.txt: * wtf/FileMetadata.h: Renamed from Source/WebCore/platform/FileMetadata.h. * wtf/FileSystem.cpp: Renamed from Source/WebCore/platform/FileSystem.cpp. * wtf/FileSystem.h: Renamed from Source/WebCore/platform/FileSystem.h. * wtf/PlatformGTK.cmake: * wtf/PlatformMac.cmake: * wtf/PlatformPlayStation.cmake: * wtf/PlatformWPE.cmake: * wtf/PlatformWin.cmake: * wtf/cf/FileSystemCF.cpp: Renamed from Source/WebCore/platform/cf/FileSystemCF.cpp. * wtf/cocoa/FileSystemCocoa.mm: Renamed from Source/WebCore/platform/cocoa/FileSystemCocoa.mm. * wtf/glib/FileSystemGlib.cpp: Renamed from Source/WebCore/platform/glib/FileSystemGlib.cpp. * wtf/mac/FileSystemMac.mm: Renamed from Source/WebCore/platform/mac/FileSystemMac.mm. * wtf/posix/FileSystemPOSIX.cpp: Renamed from Source/WebCore/platform/posix/FileSystemPOSIX.cpp. * wtf/spi/mac/MetadataSPI.h: Renamed from Source/WebCore/PAL/pal/spi/mac/MetadataSPI.h. * wtf/win/FileSystemWin.cpp: Renamed from Source/WebCore/platform/win/FileSystemWin.cpp. * wtf/win/PathWalker.cpp: Renamed from Source/WebCore/platform/win/PathWalker.cpp. * wtf/win/PathWalker.h: Renamed from Source/WebCore/platform/win/PathWalker.h. Tools: * DumpRenderTree/win/DumpRenderTree.cpp: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformGTK.cmake: * TestWebKitAPI/PlatformJSCOnly.cmake: * TestWebKitAPI/PlatformPlayStation.cmake: * TestWebKitAPI/PlatformWPE.cmake: * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: * TestWebKitAPI/Tests/WTF/FileSystem.cpp: Renamed from Tools/TestWebKitAPI/Tests/WebCore/FileSystem.cpp. * TestWebKitAPI/Tests/WebCore/FileMonitor.cpp: * TestWebKitAPI/Tests/WebCore/SecurityOrigin.cpp: * TestWebKitAPI/Tests/WebCore/SharedBufferTest.cpp: * TestWebKitAPI/Tests/WebCore/cocoa/DatabaseTrackerTest.mm: * TestWebKitAPI/Tests/WebCore/curl/Cookies.cpp: * TestWebKitAPI/Tests/WebKitCocoa/Download.mm: * TestWebKitAPI/Tests/WebKitCocoa/DownloadProgress.mm: * TestWebKitAPI/win/PlatformUtilitiesWin.cpp: Canonical link: https://commits.webkit.org/208283@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@240437 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-01-24 17:25:57 +00:00
spi/mac/MetadataSPI.h
Move CFStringRef and NSString support from StringBuilder into StringConcatenateCF https://bugs.webkit.org/show_bug.cgi?id=225839 Reviewed by Sam Weinig. Source/JavaScriptCore: * inspector/ConsoleMessage.cpp: (Inspector::ConsoleMessage::ConsoleMessage): Use StringBuilder::clear instead of StringBuilder::resize; no advantage to the latter after calling StringBuilder::toString. * runtime/JSONObject.cpp: (JSC::Stringifier::Holder::appendNextProperty): Update for name change of StringBuilder::resize to StringBuilder::shrink. * runtime/TypeSet.cpp: (JSC::StructureShape::stringRepresentation): Ditto. Source/WebCore: * Modules/airplay/WebMediaSessionManager.cpp: (WebCore::mediaProducerStateString): Use StringBuilder exclusively instead of mixing it with makeString. Also updated for StringBuilder::shrink name. * html/HTMLTextFormControlElement.cpp: (WebCore::stripTrailingNewline): Updated for StringBuilder::shrink name. * page/CaptionUserPreferencesMediaAF.cpp: (WebCore::CaptionUserPreferencesMediaAF::captionsTextColor const): Tweaked coding style a bit. (WebCore::appendCSS): Use variadic StringBuilder::append instead of many separate calls. (WebCore::CaptionUserPreferencesMediaAF::captionsDefaultFontCSS const): Tweaked coding style a bit, and use variadic StrinBuilder::append calls to reduce the number of calls and streamline the code. (WebCore::CaptionUserPreferencesMediaAF::captionsStyleSheetOverride const): Ditto. Also removed unnecessary checks that strings are empty before appending. * page/scrolling/ScrollingCoordinator.cpp: (WebCore::ScrollingCoordinator::synchronousScrollingReasonsAsText): Updated for StringBuilder::shrink name. * platform/LayoutUnit.h: Updated for saturatedSum/Difference names. * platform/network/cocoa/NetworkStorageSessionCocoa.mm: (WebCore::NetworkStorageSession::cookiesForSession const): Tweaked codin style a bit, and use variadic StrinBuilder::append calls to reduce the number of calls and streamline the code. * rendering/RenderCounter.cpp: (WebCore::planCounter): Updated for saturatedSum name. * style/StyleBuilderCustom.h: (WebCore::Style::BuilderCustom::applyValueCounter): Ditto. * svg/SVGPathStringBuilder.cpp: (WebCore::SVGPathStringBuilder::result): Updated for StringBuilder::shrink name. * testing/Internals.cpp: (WebCore::Internals::pageMediaState): Ditto. * xml/XSLTProcessorLibxslt.cpp: (WebCore::saveResultToString): Ditto. Source/WebKit: * UIProcess/WebsiteData/Cocoa/WebsiteDataStoreCocoa.mm: (WebKit::WebsiteDataStore::platformSetNetworkParameters): Use makeString instead of StringBuilder. Source/WTF: The new header makes CFStringRef and NSString work with string concatenation, which means it now works with the variadic StringBuilder::append and makeString, and still works with the single-argument StringBuilder::append. More efficient that the old version because it does not allocate a temporary WTF::String for the 16-bit character path. Also made many other small improvements to the StringBuilder implementation. * WTF.xcodeproj/project.pbxproj: Added StringConcatenateCF.h. * wtf/CheckedArithmetic.h: Removed ConditionalCrashOnOverflow, which was only here for use by StringBuilder, which does not use CheckedArithmetic any more. * wtf/PlatformFTW.cmake: Added StringConcatenateCF.h.. * wtf/PlatformMac.cmake: Ditto. * wtf/PlatformWin.cmake: Ditto. * wtf/SaturatedArithmetic.h: Moved the contents of this file inside the WTF namespace. (WTF::signedAddInt32Overflows): Renamed this function. The type here is important, and we are not doing anything to prevent type conversion or create ambiguity, so it's good to be explicit in the function name. (WTF::saturatedSum<int32_t>): Renamed this from saturatedAddition for clarity. The function returns a sum, so that's a better name than calling it "addition". Also, it's clearer to be explicit about the return type. (WTF::signedSubtractInt32Overflows): Renamed. Same reason as above. (WTF::saturatedDifference<int32_t>): Ditto. (WTF::saturatedSum): Added. Does unsigned integer saturated addition. This one can be written in a portable manner and still get really efficient code on at least Intel and ARM64. (WTF::saturatedSum): Added a function template that lets callers pass larger number of arguments to saturatedSum, rather than exactly two. * wtf/text/StringBuilder.cpp: (WTF::expandedCapacity): Renamed to use the term capacity rather than length for the new required capacity. (WTF::StringBuilder::didOverflow): Implement the new approach to overflow, meaning we need to write the CRASH() here explicitly and in the non-crashing mode, set m_length. (WTF::StringBuilder::reifyString const): Changed the overflow check into a RELEASE_ASSERT. This is now responsible for doing the check that callers were doing earlier, so we want it in production builds. Also simplified this since our m_length member is a simple integer now, and removed the unused m_isReified. (WTF::StringBuilder::shrink): Renamed this to shrink to match the Vector::shrink function, since this has never supported making the builder larger. Removed unnecessary overflow checks, since shrinking cannot cause overflow. (WTF::StringBuilder::allocateBuffer): Replaced two separate functions with a single simpler function template. Removed extra overflow checks because the StringImpl::tryCreateUninitialized function already does the only overflow check we need. Also move to StringImpl::copyCharacters for copying characters rather than using std::memcpy directly. Removed code to set m_is8Bit and m_bufferCharacters. (WTF::StringBuilder::reallocateBuffer): Replaced two separate functions with a function template and a cover that calls the appropriate instance of the template for places where we aren't already in character-type-specific code paths. This version now supports allocating a buffer for the first time in cases where we have m_string and not m_buffer, which used to be handled at the higher level. Removed code to set m_bufferCharacters. (WTF::StringBuilder::reserveCapacity): Rewrote for simplicity. By relying on the overflow checking inside reallocateBuffer and allocateBuffer we no longer need checking of the passed-in value at this level. (WTF::StringBuilder::extendBufferForAppending): Removed the version of this that takes additionalLength since it's potentially confusing to have a family of functions that have the same name and take the same type of argument, but interpret it subtly differently. Streamlined the code using std::exchange. This function now also includes the logic from the function named extendBufferForAppendingWithoutOverflowCheck, which was subtly misnamed since that was not the only semantic difference. Also removed the ALWAYS_INLINE because the compiler will do the right thing without such heavy handed advice. (WTF::StringBuilder::extendBufferForAppendingSlowCase): Streamlined this by using std::exchange and removed additional overflow checks at this level since reallocateBuffer already does them. Also added a check for the case where the new total length is 0, which would not be handled correctly and efficiently by reallocateBuffer. (WTF::StringBuilder::extendBufferForAppendingLChar): Renamed this from extendBufferForAppending8, since it's now identical to calling extendBufferForAppending<LChar>, except for inlining and linkage. (WTF::StringBuilder::extendBufferForAppendingWithUpconvert): Renamed this from extendBufferForAppending16. It is different from the other extendBuffer functions because is supports upconverting from LChar to UChar. Like the others it relies on allocateBuffer for the overflow checking. (WTF::StringBuilder::appendCharacters): Removed an unnecessary assertion that the characters pointer is non-null; that will fail in an obvious way without an assertion. Simplified the logic and removed some invariant assertions that don't help us much. Changed overflow checking by using saturatedSum to compute the new length. In overflow cases, the new sum will be larger than the maximum string length, but will fit in an unsigned, so we can pass it down to lower levels and let functions like reallocateBuffer do the actual overflow checking. Also use StringImpl::copyCharacters. (WTF::StringBuilder::append): Removed the CFStringRef overload. (WTF::StringBuilder::shouldShrinkToFit const): Rename this from canShrink. Simplify the function a bit and remove the vague FIXME that says "this should be tuned". That may be so, but the FIXME is not really driving us to action. (WTF::StringBuilder::shrinkToFit): Simplify by using the new reallocateBuffer and std::exchange. Removed unneeded assertion about overflow that doesn't help us maintain the invariant. (WTF::StringBuilder::isAllASCII const): Was tempted to remove this function, but for now just made it use the StringView version for brevity. * wtf/text/StringBuilder.h: Removed many unneeded includes, and notably included SaturatedArithmetic.h instead of CheckedArithmetic.h because we now use the former instead of the latter. Changed the overflow checking implementation to work more simply based on saturated addition rather than Checked. This allowed us to get rid of dependency on our own unique mode for Checked, called ConditionalCrashOnOverflow. Removed a comment about making a templatized version of StringBuilder. We can do it if we like, but does not seem urgent. Moved fucntion bodies out of the class definition so it's easier to see what's going on in the class. Since m_length is now an ordinary integer, the check for overflowed simply checks to see if the length is larger than the maximum string length. When we encounter overflow that is not about length computation, we set the length to the maximum integer to indicate the failure. Deleted the append overloads for CFStringRef and NSString. Removed m_bufferCharacters, m_is8Bit, and m_isReified. (WTF::StringBuilder::StringBuilder): Simplified the constructor since we only have to initialize the m_shouldCrashOnOverflow member. (WTF::StringBuilder::clear): Fixed a mistake where this was not resetting the m_isReified flag. (WTF::StringBuilder::swap): Updated for changes in the data members. (WTF::StringBuilder::operator StringView const): Moved out of line. Made sure to call the length() function so we crash if this is called after overflow. (WTF::StringBuilder::append): Remove some of the unnecessary checks and special cases in the various versions of append. Most of the checking is done inside appendCharacters, with only a few exceptions. (WTF::StringBuilder::appendSubstring): Moved out of the class definition without making significant changes. (WTF::StringBuilder::appendCharacter): Ditto. (WTF::StringBuilder::toString): Greatly simplified this function by relying on overflow checking in the reifyString function instead of doing it here and removing unneeded invariant assertions. (WTF::StringBuilder::toStringPreserveCapacity const): Ditto. (WTF::StringBuilder::toAtomString const): Rewrote this to streamline, removing explicit overflow checks. (WTF::StringBuilder::length const): Moved out of the class definition without making significant changes. (WTF::StringBuilder::capacity const): Ditto. (WTF::StringBuilder::operator[] const): Ditto. (WTF::StringBuilder::characters const): Implemented this operation in the function template. Now rather than having this call the characters8 and characters16 functions, they can call it. (WTF::StringBuilder::getBufferCharacters<LChar>): Deleted. (WTF::StringBuilder::getBufferCharacters<UChar>): Deleted. (WTF::StringBuilder::appendFromAdapters): Use saturatedSum to compute the required length, which allows the extendBuffer functions to do overflow checking without having to take special checked integer types for arguments. (WTF::StringBuilder::equal): Implement using StringView. * wtf/text/StringBuilderJSON.cpp: (WTF::StringBuilder::appendQuotedJSONString): Simplified the checked arithmetic for computing the required capacity. Updated since we removed m_bufferCharacters and changed the type of m_length. * wtf/text/cf/StringConcatenateCF.h: Added. Specializes StringTypeAdapter for both CFStringRef and NSString *. If CFStringGetCStringPtr works for Latin-1, then does the 8-bit code path, otherwise the 16-bit. * wtf/text/cocoa/TextStreamCocoa.mm: Include StringConcatenateCF.h, since it's now needed to use CFStringRef with StringBuilder. Tools: * TestWebKitAPI/Tests/WTF/SaturatedArithmeticOperations.cpp: Updated tests for changes to SaturatedArithmetic.h. * TestWebKitAPI/Tests/WTF/StringBuilder.cpp: Updated tests for changes to StringBuilder. * TestWebKitAPI/Tests/WebKit/GetUserMedia.mm: (TestWebKitAPI::wkMediaCaptureStateString): Ditto. * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp: Added include of StringConcatenateCF.h. Added StringTypeAdapter for WKStringRef. (WTR::styleDecToStr): Use ASCIILiteral instead of StringBuilder. (WTR::string): Removed unneeded toWTFString since the WKStringRef StringTypeAdapter takes care of it. (WTR::string): Renamed from frameToStr. Use makeString. (WTR::dumpResourceURL): Use append instead of appendLiteral. (WTR::dumpFrameDescriptionSuitableForTestResult): Deleted. (WTR::dumpLoadEvent): Use makeString. (WTR::string): Renamed from a longer name. Return a String instead of building in a StringBuilder. Use makeString. (WTR::string): Ditto. (WTR::dumpErrorDescriptionSuitableForTestResult): Removed unneeded toWTFString. (WTR::dumpFrameScrollPosition): Ditto. (WTR::dumpDescendantFramesText): Ditto. (WTR::InjectedBundlePage::dumpDOMAsWebArchive): Removed an unneeded local variable. (WTR::InjectedBundlePage::dump): Removed unneeded toWTFString. (WTR::InjectedBundlePage::didReceiveTitleForFrame): Ditto. (WTR::InjectedBundlePage::didFinishDocumentLoadForFrame): Updated for functon name change. (WTR::InjectedBundlePage::willSendRequestForFrame): Ditto. Also use variadic append. Also use makeString. (WTR::InjectedBundlePage::didReceiveResponseForResource): Ditto. (WTR::InjectedBundlePage::didFinishLoadForResource): Ditto. (WTR::InjectedBundlePage::didFailLoadForResource): Ditto. (WTR::InjectedBundlePage::decidePolicyForNavigationAction): Ditto. (WTR::InjectedBundlePage::decidePolicyForResponse): Ditto. (WTR::InjectedBundlePage::willAddMessageToConsole): Ditto. (WTR::InjectedBundlePage::willSetStatusbarText): Ditto. (WTR::InjectedBundlePage::willRunJavaScriptPrompt): Ditto. (WTR::InjectedBundlePage::didExceedDatabaseQuota): Ditto. (WTR::InjectedBundlePage::shouldInsertNode): Ditto. (WTR::InjectedBundlePage::shouldInsertText): Ditto. (WTR::InjectedBundlePage::shouldDeleteRange): Ditto. (WTR::InjectedBundlePage::shouldChangeSelectedRange): Ditto. (WTR::InjectedBundlePage::shouldApplyStyle): Ditto. (WTR::InjectedBundlePage::didBeginEditing): Ditto. (WTR::InjectedBundlePage::didEndEditing): Ditto. (WTR::InjectedBundlePage::didChange): Ditto. (WTR::InjectedBundlePage::didChangeSelection): Ditto. (WTR::InjectedBundlePage::dumpHistory): Ditto. Canonical link: https://commits.webkit.org/237916@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@277744 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-05-19 19:37:21 +00:00
text/cf/StringConcatenateCF.h
text/cf/TextBreakIteratorCF.h
)
list(APPEND WTF_SOURCES
WTF should know about Language https://bugs.webkit.org/show_bug.cgi?id=157756 Source/JavaScriptCore: Reviewed by Geoffrey Garen. Teach our scripts that a ObjC class beginning with WTF is totally cool. * JavaScriptCore.xcodeproj/project.pbxproj: Source/WebCore: Reviewed by Geoffrey Garen. No new tests because this does not change behavior. This change is all about moving some language functionality to WTF. Quoting the WTF ChangeLog, this contains two changes: - Move everything that WebCore's logic for getting the platform user preferred language depended on into WTF. This means CFBundleSPI.h and BlockObjCExceptions.h|cpp. - Move WebCore::platformUserPreferredLanguages() to WTF::platformUserPreferredLanguages(). This is needed by https://bugs.webkit.org/show_bug.cgi?id=157755, which will make JSC use this to detect the platform user preferred language when running standalone. The changes in WebCore are mostly about rewiring #includes and #imports and removing the code that we moved to WTF. But there is one logic change: previously, platformUserPreferredLanguages() would call WebCore::languageDidChange(). It can't do that directly anymore, but WTF gives WebCore some API for registering the callback. So in Language.cpp we now register languageDidChange anytime we do something that would necessitate it, like calling platformUserPreferredLanguages(). This also registers the callback inside addLanguageChangeObserver(), since it's possible for that to be called after JSC had called platformUserPreferredLanguages() but before WebCore does so. * PlatformEfl.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformWin.cmake: * WebCore.xcodeproj/project.pbxproj: * bindings/objc/DOMCustomXPathNSResolver.mm: * editing/ios/EditorIOS.mm: * editing/mac/DictionaryLookup.mm: * editing/mac/EditorMac.mm: * page/CaptionUserPreferencesMediaAF.cpp: * page/ios/EventHandlerIOS.mm: * page/ios/FrameIOS.mm: * page/mac/ChromeMac.mm: * page/mac/EventHandlerMac.mm: * platform/Language.cpp: (WebCore::registerLanguageDidChangeCallbackIfNecessary): (WebCore::observerMap): (WebCore::addLanguageChangeObserver): (WebCore::overrideUserPreferredLanguages): (WebCore::userPreferredLanguages): * platform/Language.h: * platform/cocoa/ContentFilterUnblockHandlerCocoa.mm: * platform/graphics/avfoundation/objc/InbandTextTrackPrivateAVFObjC.mm: * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: * platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm: * platform/graphics/ca/cocoa/PlatformCAFiltersCocoa.mm: * platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm: * platform/graphics/cocoa/FontCocoa.mm: * platform/graphics/mac/ColorMac.mm: * platform/graphics/mac/GraphicsContext3DMac.mm: * platform/graphics/mac/MediaPlayerPrivateQTKit.mm: * platform/ios/PlatformSpeechSynthesizerIOS.mm: * platform/ios/ScrollViewIOS.mm: * platform/ios/WidgetIOS.mm: * platform/mac/BlockExceptions.h: Removed. * platform/mac/BlockExceptions.mm: Removed. * platform/mac/CursorMac.mm: * platform/mac/Language.mm: Removed. * platform/mac/ScrollAnimatorMac.mm: * platform/mac/ScrollViewMac.mm: * platform/mac/ScrollbarThemeMac.mm: * platform/mac/ThemeMac.mm: * platform/mac/WidgetMac.mm: * platform/mediastream/mac/AVVideoCaptureSource.mm: * platform/network/mac/CookieJarMac.mm: * platform/network/mac/ResourceErrorMac.mm: * platform/network/mac/ResourceHandleMac.mm: * platform/spi/cf/CFBundleSPI.h: Removed. * platform/unix/LanguageUnix.cpp: Removed. * platform/win/LanguageWin.cpp: Removed. Source/WebKit/mac: Reviewed by Geoffrey Garen. Rewires a bunch of includes/imports. * WebCoreSupport/PopupMenuMac.mm: * WebCoreSupport/WebChromeClient.mm: * WebCoreSupport/WebFrameLoaderClient.mm: * WebCoreSupport/WebGeolocationClient.mm: * WebCoreSupport/WebNotificationClient.mm: * WebCoreSupport/WebPlatformStrategies.mm: * WebCoreSupport/WebUserMediaClient.mm: * WebCoreSupport/WebVisitedLinkStore.mm: * WebView/WebHTMLView.mm: Source/WebKit2: Reviewed by Geoffrey Garen and Alexey Proskuryakov. Rewires a bunch of includes/imports. * Shared/mac/RemoteLayerTreePropertyApplier.mm: * UIProcess/Launcher/mac/ProcessLauncherMac.mm: * UIProcess/Scrolling/ios/ScrollingTreeOverflowScrollingNodeIOS.mm: * WebProcess/WebPage/mac/PlatformCAAnimationRemote.mm: Source/WTF: Reviewed by Geoffrey Garen. This contains two changes: - Move everything that WebCore's logic for getting the platform user preferred language depended on into WTF. This means CFBundleSPI.h and BlockObjCExceptions.h|cpp. - Move WebCore::platformUserPreferredLanguages() to WTF::platformUserPreferredLanguages(). This is needed by https://bugs.webkit.org/show_bug.cgi?id=157755, which will make JSC use this to detect the platform user preferred language when running standalone. Moving the dependencies accounts for a huge chunk of this change, since we have to rewire all of the references to those headers in all of WebKit. Moving platformUserPreferredLanguages() is mostly easy except for the weird callback. That function would call languageDidChange(), which needs to stay in WebCore. So, this gives WebCore the ability to register a languageDidChange callback. Other than this new logic, the code being added to WTF is just being lifted out of WebCore. * WTF.xcodeproj/project.pbxproj: * wtf/BlockObjCExceptions.h: Added. * wtf/BlockObjCExceptions.mm: Added. (ReportBlockedObjCException): * wtf/PlatformEfl.cmake: * wtf/PlatformGTK.cmake: * wtf/PlatformJSCOnly.cmake: * wtf/PlatformMac.cmake: * wtf/PlatformUserPreferredLanguages.h: Added. * wtf/PlatformUserPreferredLanguagesMac.mm: Added. (WTF::setPlatformUserPreferredLanguagesChangedCallback): (WTF::preferredLanguages): (+[WTFLanguageChangeObserver languagePreferencesDidChange:]): (WTF::httpStyleLanguageCode): (WTF::isValidICUCountryCode): (WTF::platformUserPreferredLanguages): * wtf/PlatformUserPreferredLanguagesUnix.cpp: Added. (WTF::setPlatformUserPreferredLanguagesChangedCallback): (WTF::platformLanguage): (WTF::platformUserPreferredLanguages): * wtf/PlatformUserPreferredLanguagesWin.cpp: Added. (WTF::setPlatformUserPreferredLanguagesChangedCallback): (WTF::localeInfo): (WTF::platformLanguage): (WTF::platformUserPreferredLanguages): * wtf/PlatformWin.cmake: * wtf/spi/cf: Added. * wtf/spi/cf/CFBundleSPI.h: Added. Canonical link: https://commits.webkit.org/175929@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@201038 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-05-17 19:38:51 +00:00
BlockObjCExceptions.mm
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
TranslatedProcess.cpp
Move URL from WebCore to WTF https://bugs.webkit.org/show_bug.cgi?id=190234 Patch by Alex Christensen <achristensen@webkit.org> on 2018-11-30 Reviewed by Keith Miller. Source/WebCore: A URL is a low-level concept that does not depend on other classes in WebCore. We are starting to use URLs in JavaScriptCore for modules. I need URL and URLParser in a place with fewer dependencies for rdar://problem/44119696 * Modules/applepay/ApplePaySession.h: * Modules/applepay/ApplePayValidateMerchantEvent.h: * Modules/applepay/PaymentCoordinator.cpp: * Modules/applepay/PaymentCoordinator.h: * Modules/applepay/PaymentCoordinatorClient.h: * Modules/applepay/PaymentSession.h: * Modules/applicationmanifest/ApplicationManifest.h: * Modules/beacon/NavigatorBeacon.cpp: * Modules/cache/DOMCache.cpp: * Modules/fetch/FetchLoader.h: * Modules/mediasession/MediaSessionMetadata.h: * Modules/mediasource/MediaSourceRegistry.cpp: * Modules/mediasource/MediaSourceRegistry.h: * Modules/mediastream/MediaStream.cpp: * Modules/mediastream/MediaStreamRegistry.cpp: * Modules/mediastream/MediaStreamRegistry.h: * Modules/navigatorcontentutils/NavigatorContentUtilsClient.h: * Modules/notifications/Notification.h: * Modules/paymentrequest/MerchantValidationEvent.h: * Modules/paymentrequest/PaymentRequest.h: * Modules/plugins/PluginReplacement.h: * Modules/webaudio/AudioContext.h: * Modules/websockets/ThreadableWebSocketChannel.h: * Modules/websockets/WebSocket.h: * Modules/websockets/WebSocketHandshake.cpp: * Modules/websockets/WebSocketHandshake.h: * Modules/websockets/WorkerThreadableWebSocketChannel.h: * PlatformMac.cmake: * PlatformWin.cmake: * Sources.txt: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * bindings/js/CachedModuleScriptLoader.h: * bindings/js/CachedScriptFetcher.h: * bindings/js/ScriptController.cpp: (WebCore::ScriptController::executeIfJavaScriptURL): * bindings/js/ScriptController.h: * bindings/js/ScriptModuleLoader.h: * bindings/js/ScriptSourceCode.h: * bindings/scripts/CodeGeneratorJS.pm: (GenerateImplementation): * bindings/scripts/test/JS/JSInterfaceName.cpp: * bindings/scripts/test/JS/JSMapLike.cpp: * bindings/scripts/test/JS/JSReadOnlyMapLike.cpp: * bindings/scripts/test/JS/JSTestActiveDOMObject.cpp: * bindings/scripts/test/JS/JSTestCEReactions.cpp: * bindings/scripts/test/JS/JSTestCEReactionsStringifier.cpp: * bindings/scripts/test/JS/JSTestCallTracer.cpp: * bindings/scripts/test/JS/JSTestClassWithJSBuiltinConstructor.cpp: * bindings/scripts/test/JS/JSTestCustomConstructorWithNoInterfaceObject.cpp: * bindings/scripts/test/JS/JSTestDOMJIT.cpp: * bindings/scripts/test/JS/JSTestEnabledBySetting.cpp: * bindings/scripts/test/JS/JSTestEventConstructor.cpp: * bindings/scripts/test/JS/JSTestEventTarget.cpp: * bindings/scripts/test/JS/JSTestException.cpp: * bindings/scripts/test/JS/JSTestGenerateIsReachable.cpp: * bindings/scripts/test/JS/JSTestGlobalObject.cpp: * bindings/scripts/test/JS/JSTestIndexedSetterNoIdentifier.cpp: * bindings/scripts/test/JS/JSTestIndexedSetterThrowingException.cpp: * bindings/scripts/test/JS/JSTestIndexedSetterWithIdentifier.cpp: * bindings/scripts/test/JS/JSTestInterface.cpp: * bindings/scripts/test/JS/JSTestInterfaceLeadingUnderscore.cpp: * bindings/scripts/test/JS/JSTestIterable.cpp: * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp: * bindings/scripts/test/JS/JSTestNamedAndIndexedSetterNoIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedAndIndexedSetterThrowingException.cpp: * bindings/scripts/test/JS/JSTestNamedAndIndexedSetterWithIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedConstructor.cpp: * bindings/scripts/test/JS/JSTestNamedDeleterNoIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedDeleterThrowingException.cpp: * bindings/scripts/test/JS/JSTestNamedDeleterWithIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedDeleterWithIndexedGetter.cpp: * bindings/scripts/test/JS/JSTestNamedGetterCallWith.cpp: * bindings/scripts/test/JS/JSTestNamedGetterNoIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedGetterWithIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedSetterNoIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedSetterThrowingException.cpp: * bindings/scripts/test/JS/JSTestNamedSetterWithIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedSetterWithIndexedGetter.cpp: * bindings/scripts/test/JS/JSTestNamedSetterWithIndexedGetterAndSetter.cpp: * bindings/scripts/test/JS/JSTestNamedSetterWithOverrideBuiltins.cpp: * bindings/scripts/test/JS/JSTestNamedSetterWithUnforgableProperties.cpp: * bindings/scripts/test/JS/JSTestNamedSetterWithUnforgablePropertiesAndOverrideBuiltins.cpp: * bindings/scripts/test/JS/JSTestNode.cpp: * bindings/scripts/test/JS/JSTestObj.cpp: * bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp: * bindings/scripts/test/JS/JSTestOverloadedConstructorsWithSequence.cpp: * bindings/scripts/test/JS/JSTestOverrideBuiltins.cpp: * bindings/scripts/test/JS/JSTestPluginInterface.cpp: * bindings/scripts/test/JS/JSTestPromiseRejectionEvent.cpp: * bindings/scripts/test/JS/JSTestSerialization.cpp: * bindings/scripts/test/JS/JSTestSerializationIndirectInheritance.cpp: * bindings/scripts/test/JS/JSTestSerializationInherit.cpp: * bindings/scripts/test/JS/JSTestSerializationInheritFinal.cpp: * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp: * bindings/scripts/test/JS/JSTestStringifier.cpp: * bindings/scripts/test/JS/JSTestStringifierAnonymousOperation.cpp: * bindings/scripts/test/JS/JSTestStringifierNamedOperation.cpp: * bindings/scripts/test/JS/JSTestStringifierOperationImplementedAs.cpp: * bindings/scripts/test/JS/JSTestStringifierOperationNamedToString.cpp: * bindings/scripts/test/JS/JSTestStringifierReadOnlyAttribute.cpp: * bindings/scripts/test/JS/JSTestStringifierReadWriteAttribute.cpp: * bindings/scripts/test/JS/JSTestTypedefs.cpp: * contentextensions/ContentExtensionsBackend.cpp: (WebCore::ContentExtensions::ContentExtensionsBackend::processContentExtensionRulesForLoad): (WebCore::ContentExtensions::ContentExtensionsBackend::processContentExtensionRulesForPingLoad): (WebCore::ContentExtensions::applyBlockedStatusToRequest): * contentextensions/ContentExtensionsBackend.h: * css/CSSValue.h: * css/StyleProperties.h: * css/StyleResolver.h: * css/StyleSheet.h: * css/StyleSheetContents.h: * css/parser/CSSParserContext.h: (WebCore::CSSParserContextHash::hash): (WTF::HashTraits<WebCore::CSSParserContext>::constructDeletedValue): * css/parser/CSSParserIdioms.h: * dom/DataTransfer.cpp: (WebCore::DataTransfer::setDataFromItemList): * dom/Document.cpp: (WebCore::Document::setURL): (WebCore::Document::processHttpEquiv): (WebCore::Document::completeURL const): (WebCore::Document::ensureTemplateDocument): * dom/Document.h: (WebCore::Document::urlForBindings const): * dom/Element.cpp: (WebCore::Element::isJavaScriptURLAttribute const): * dom/InlineStyleSheetOwner.cpp: (WebCore::parserContextForElement): * dom/Node.cpp: (WebCore::Node::baseURI const): * dom/Node.h: * dom/ScriptElement.h: * dom/ScriptExecutionContext.h: * dom/SecurityContext.h: * editing/Editor.cpp: (WebCore::Editor::pasteboardWriterURL): * editing/Editor.h: * editing/MarkupAccumulator.cpp: (WebCore::MarkupAccumulator::appendQuotedURLAttributeValue): * editing/cocoa/DataDetection.h: * editing/cocoa/EditorCocoa.mm: (WebCore::Editor::userVisibleString): * editing/cocoa/WebContentReaderCocoa.mm: (WebCore::replaceRichContentWithAttachments): (WebCore::WebContentReader::readWebArchive): * editing/mac/EditorMac.mm: (WebCore::Editor::plainTextFromPasteboard): (WebCore::Editor::writeImageToPasteboard): * editing/markup.cpp: (WebCore::removeSubresourceURLAttributes): (WebCore::createFragmentFromMarkup): * editing/markup.h: * fileapi/AsyncFileStream.cpp: * fileapi/AsyncFileStream.h: * fileapi/Blob.h: * fileapi/BlobURL.cpp: * fileapi/BlobURL.h: * fileapi/File.h: * fileapi/FileReaderLoader.h: * fileapi/ThreadableBlobRegistry.h: * history/CachedFrame.h: * history/HistoryItem.h: * html/DOMURL.cpp: (WebCore::DOMURL::create): * html/DOMURL.h: * html/HTMLAttachmentElement.cpp: (WebCore::HTMLAttachmentElement::archiveResourceURL): * html/HTMLFrameElementBase.cpp: (WebCore::HTMLFrameElementBase::isURLAllowed const): (WebCore::HTMLFrameElementBase::openURL): (WebCore::HTMLFrameElementBase::setLocation): * html/HTMLInputElement.h: * html/HTMLLinkElement.h: * html/HTMLMediaElement.cpp: (WTF::LogArgument<URL>::toString): (WTF::LogArgument<WebCore::URL>::toString): Deleted. * html/HTMLPlugInImageElement.cpp: (WebCore::HTMLPlugInImageElement::allowedToLoadFrameURL): * html/ImageBitmap.h: * html/MediaFragmentURIParser.h: * html/PublicURLManager.cpp: * html/PublicURLManager.h: * html/URLInputType.cpp: * html/URLRegistry.h: * html/URLSearchParams.cpp: (WebCore::URLSearchParams::URLSearchParams): (WebCore::URLSearchParams::toString const): (WebCore::URLSearchParams::updateURL): (WebCore::URLSearchParams::updateFromAssociatedURL): * html/URLUtils.h: (WebCore::URLUtils<T>::setHost): (WebCore::URLUtils<T>::setPort): * html/canvas/CanvasRenderingContext.cpp: * html/canvas/CanvasRenderingContext.h: * html/parser/HTMLParserIdioms.cpp: * html/parser/XSSAuditor.cpp: (WebCore::semicolonSeparatedValueContainsJavaScriptURL): (WebCore::XSSAuditor::filterScriptToken): (WebCore::XSSAuditor::filterObjectToken): (WebCore::XSSAuditor::filterParamToken): (WebCore::XSSAuditor::filterEmbedToken): (WebCore::XSSAuditor::filterFormToken): (WebCore::XSSAuditor::filterInputToken): (WebCore::XSSAuditor::filterButtonToken): (WebCore::XSSAuditor::eraseDangerousAttributesIfInjected): (WebCore::XSSAuditor::isLikelySafeResource): * html/parser/XSSAuditor.h: * html/parser/XSSAuditorDelegate.h: * inspector/InspectorFrontendHost.cpp: (WebCore::InspectorFrontendHost::openInNewTab): * inspector/InspectorInstrumentation.h: * inspector/agents/InspectorNetworkAgent.cpp: * inspector/agents/InspectorNetworkAgent.h: * inspector/agents/InspectorPageAgent.h: * inspector/agents/InspectorWorkerAgent.h: * loader/ApplicationManifestLoader.h: * loader/CookieJar.h: * loader/CrossOriginAccessControl.h: * loader/CrossOriginPreflightResultCache.h: * loader/DocumentLoader.cpp: (WebCore::DocumentLoader::willSendRequest): (WebCore::DocumentLoader::maybeLoadEmpty): * loader/DocumentLoader.h: (WebCore::DocumentLoader::serverRedirectSourceForHistory const): * loader/DocumentWriter.h: * loader/FormSubmission.h: * loader/FrameLoader.cpp: (WebCore::FrameLoader::submitForm): (WebCore::FrameLoader::receivedFirstData): (WebCore::FrameLoader::loadWithDocumentLoader): (WebCore::FrameLoader::continueLoadAfterNavigationPolicy): (WebCore::createWindow): * loader/FrameLoaderClient.h: * loader/HistoryController.cpp: (WebCore::HistoryController::currentItemShouldBeReplaced const): (WebCore::HistoryController::initializeItem): * loader/LinkLoader.h: * loader/LoadTiming.h: * loader/LoaderStrategy.h: * loader/MixedContentChecker.cpp: (WebCore::MixedContentChecker::checkFormForMixedContent const): * loader/MixedContentChecker.h: * loader/NavigationScheduler.cpp: (WebCore::NavigationScheduler::shouldScheduleNavigation const): * loader/NavigationScheduler.h: * loader/PingLoader.h: * loader/PolicyChecker.cpp: (WebCore::PolicyChecker::checkNavigationPolicy): * loader/ResourceLoadInfo.h: * loader/ResourceLoadObserver.cpp: (WebCore::ResourceLoadObserver::requestStorageAccessUnderOpener): * loader/ResourceLoadObserver.h: * loader/ResourceLoadStatistics.h: * loader/ResourceLoader.h: * loader/ResourceTiming.h: * loader/SubframeLoader.cpp: (WebCore::SubframeLoader::requestFrame): * loader/SubframeLoader.h: * loader/SubstituteData.h: * loader/appcache/ApplicationCache.h: * loader/appcache/ApplicationCacheGroup.h: * loader/appcache/ApplicationCacheHost.h: * loader/appcache/ApplicationCacheStorage.cpp: * loader/appcache/ApplicationCacheStorage.h: * loader/appcache/ManifestParser.cpp: * loader/appcache/ManifestParser.h: * loader/archive/ArchiveResourceCollection.h: * loader/archive/cf/LegacyWebArchive.cpp: (WebCore::LegacyWebArchive::createFromSelection): * loader/cache/CachedResource.cpp: * loader/cache/CachedResourceLoader.h: * loader/cache/CachedStyleSheetClient.h: * loader/cache/MemoryCache.h: * loader/icon/IconLoader.h: * loader/mac/LoaderNSURLExtras.mm: * page/CaptionUserPreferencesMediaAF.cpp: * page/ChromeClient.h: * page/ClientOrigin.h: * page/ContextMenuClient.h: * page/ContextMenuController.cpp: (WebCore::ContextMenuController::checkOrEnableIfNeeded const): * page/DOMWindow.cpp: (WebCore::DOMWindow::isInsecureScriptAccess): * page/DragController.cpp: (WebCore::DragController::startDrag): * page/DragController.h: * page/EventSource.h: * page/Frame.h: * page/FrameView.h: * page/History.h: * page/Location.cpp: (WebCore::Location::url const): (WebCore::Location::reload): * page/Location.h: * page/Page.h: * page/PageSerializer.h: * page/Performance.h: * page/PerformanceResourceTiming.cpp: * page/SecurityOrigin.cpp: (WebCore::SecurityOrigin::SecurityOrigin): (WebCore::SecurityOrigin::create): * page/SecurityOrigin.h: * page/SecurityOriginData.h: * page/SecurityOriginHash.h: * page/SecurityPolicy.cpp: (WebCore::SecurityPolicy::shouldInheritSecurityOriginFromOwner): * page/SecurityPolicy.h: * page/SettingsBase.h: * page/ShareData.h: * page/SocketProvider.h: * page/UserContentProvider.h: * page/UserContentURLPattern.cpp: * page/UserContentURLPattern.h: * page/UserScript.h: * page/UserStyleSheet.h: * page/VisitedLinkStore.h: * page/csp/ContentSecurityPolicy.h: * page/csp/ContentSecurityPolicyClient.h: * page/csp/ContentSecurityPolicyDirectiveList.h: * page/csp/ContentSecurityPolicySource.cpp: (WebCore::ContentSecurityPolicySource::portMatches const): * page/csp/ContentSecurityPolicySource.h: * page/csp/ContentSecurityPolicySourceList.cpp: * page/csp/ContentSecurityPolicySourceList.h: * page/csp/ContentSecurityPolicySourceListDirective.cpp: * platform/ContentFilterUnblockHandler.h: * platform/ContextMenuItem.h: * platform/Cookie.h: * platform/CookiesStrategy.h: * platform/DragData.h: * platform/DragImage.h: * platform/FileStream.h: * platform/LinkIcon.h: * platform/Pasteboard.cpp: (WebCore::Pasteboard::canExposeURLToDOMWhenPasteboardContainsFiles): * platform/Pasteboard.h: * platform/PasteboardStrategy.h: * platform/PasteboardWriterData.cpp: (WebCore::PasteboardWriterData::setURLData): (WebCore::PasteboardWriterData::setURL): Deleted. * platform/PasteboardWriterData.h: * platform/PlatformPasteboard.h: * platform/PromisedAttachmentInfo.h: * platform/SSLKeyGenerator.h: * platform/SchemeRegistry.cpp: (WebCore::SchemeRegistry::isBuiltinScheme): * platform/SharedBuffer.h: * platform/SharedStringHash.cpp: * platform/SharedStringHash.h: * platform/SourcesSoup.txt: * platform/UserAgent.h: * platform/UserAgentQuirks.cpp: * platform/UserAgentQuirks.h: * platform/cocoa/NetworkExtensionContentFilter.h: * platform/cocoa/NetworkExtensionContentFilter.mm: (WebCore::NetworkExtensionContentFilter::willSendRequest): * platform/glib/SSLKeyGeneratorGLib.cpp: Copied from Source/WebCore/page/ShareData.h. (WebCore::getSupportedKeySizes): (WebCore::signedPublicKeyAndChallengeString): * platform/glib/UserAgentGLib.cpp: * platform/graphics/GraphicsContext.h: * platform/graphics/Image.cpp: * platform/graphics/Image.h: * platform/graphics/ImageObserver.h: * platform/graphics/ImageSource.cpp: * platform/graphics/ImageSource.h: * platform/graphics/MediaPlayer.h: * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp: * platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp: * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: * platform/graphics/cg/GraphicsContextCG.cpp: * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp: * platform/graphics/gstreamer/mse/MediaPlayerPrivateGStreamerMSE.cpp: * platform/graphics/gstreamer/mse/WebKitMediaSourceGStreamer.cpp: (webKitMediaSrcSetUri): * platform/graphics/iso/ISOVTTCue.cpp: * platform/graphics/win/GraphicsContextDirect2D.cpp: * platform/gtk/DragImageGtk.cpp: * platform/gtk/PasteboardGtk.cpp: * platform/gtk/PlatformPasteboardGtk.cpp: * platform/gtk/SelectionData.h: * platform/ios/PasteboardIOS.mm: * platform/ios/PlatformPasteboardIOS.mm: (WebCore::PlatformPasteboard::write): * platform/ios/QuickLook.h: * platform/mac/DragDataMac.mm: (WebCore::DragData::asPlainText const): * platform/mac/DragImageMac.mm: * platform/mac/FileSystemMac.mm: (WebCore::FileSystem::setMetadataURL): * platform/mac/PasteboardMac.mm: * platform/mac/PasteboardWriter.mm: (WebCore::createPasteboardWriter): * platform/mac/PlatformPasteboardMac.mm: * platform/mac/PublicSuffixMac.mm: (WebCore::decodeHostName): * platform/mac/SSLKeyGeneratorMac.mm: * platform/mac/WebCoreNSURLExtras.h: * platform/mac/WebCoreNSURLExtras.mm: (WebCore::isArmenianLookalikeCharacter): Deleted. (WebCore::isArmenianScriptCharacter): Deleted. (WebCore::isASCIIDigitOrValidHostCharacter): Deleted. (WebCore::isLookalikeCharacter): Deleted. (WebCore::whiteListIDNScript): Deleted. (WebCore::readIDNScriptWhiteListFile): Deleted. (WebCore::allCharactersInIDNScriptWhiteList): Deleted. (WebCore::isSecondLevelDomainNameAllowedByTLDRules): Deleted. (WebCore::isRussianDomainNameCharacter): Deleted. (WebCore::allCharactersAllowedByTLDRules): Deleted. (WebCore::mapHostNameWithRange): Deleted. (WebCore::hostNameNeedsDecodingWithRange): Deleted. (WebCore::hostNameNeedsEncodingWithRange): Deleted. (WebCore::decodeHostNameWithRange): Deleted. (WebCore::encodeHostNameWithRange): Deleted. (WebCore::decodeHostName): Deleted. (WebCore::encodeHostName): Deleted. (WebCore::collectRangesThatNeedMapping): Deleted. (WebCore::collectRangesThatNeedEncoding): Deleted. (WebCore::collectRangesThatNeedDecoding): Deleted. (WebCore::applyHostNameFunctionToMailToURLString): Deleted. (WebCore::applyHostNameFunctionToURLString): Deleted. (WebCore::mapHostNames): Deleted. (WebCore::stringByTrimmingWhitespace): Deleted. (WebCore::URLByTruncatingOneCharacterBeforeComponent): Deleted. (WebCore::URLByRemovingResourceSpecifier): Deleted. (WebCore::URLWithData): Deleted. (WebCore::dataWithUserTypedString): Deleted. (WebCore::URLWithUserTypedString): Deleted. (WebCore::URLWithUserTypedStringDeprecated): Deleted. (WebCore::hasQuestionMarkOnlyQueryString): Deleted. (WebCore::dataForURLComponentType): Deleted. (WebCore::URLByRemovingComponentAndSubsequentCharacter): Deleted. (WebCore::URLByRemovingUserInfo): Deleted. (WebCore::originalURLData): Deleted. (WebCore::createStringWithEscapedUnsafeCharacters): Deleted. (WebCore::userVisibleString): Deleted. (WebCore::isUserVisibleURL): Deleted. (WebCore::rangeOfURLScheme): Deleted. (WebCore::looksLikeAbsoluteURL): Deleted. * platform/mediastream/MediaEndpointConfiguration.h: * platform/network/BlobPart.h: * platform/network/BlobRegistry.h: * platform/network/BlobRegistryImpl.h: * platform/network/BlobResourceHandle.cpp: * platform/network/CookieRequestHeaderFieldProxy.h: * platform/network/CredentialStorage.cpp: * platform/network/CredentialStorage.h: * platform/network/DataURLDecoder.cpp: * platform/network/DataURLDecoder.h: * platform/network/FormData.h: * platform/network/ProxyServer.h: * platform/network/ResourceErrorBase.h: * platform/network/ResourceHandle.cpp: (WebCore::ResourceHandle::didReceiveResponse): * platform/network/ResourceHandle.h: * platform/network/ResourceHandleClient.h: * platform/network/ResourceRequestBase.cpp: (WebCore::ResourceRequestBase::redirectedRequest const): * platform/network/ResourceRequestBase.h: * platform/network/ResourceResponseBase.h: * platform/network/SocketStreamHandle.h: * platform/network/cf/DNSResolveQueueCFNet.cpp: * platform/network/cf/NetworkStorageSessionCFNet.cpp: * platform/network/cf/ProxyServerCFNet.cpp: * platform/network/cf/ResourceErrorCF.cpp: * platform/network/cocoa/NetworkStorageSessionCocoa.mm: * platform/network/curl/CookieJarCurlDatabase.cpp: Added. (WebCore::cookiesForSession): (WebCore::CookieJarCurlDatabase::setCookiesFromDOM const): (WebCore::CookieJarCurlDatabase::setCookiesFromHTTPResponse const): (WebCore::CookieJarCurlDatabase::cookiesForDOM const): (WebCore::CookieJarCurlDatabase::cookieRequestHeaderFieldValue const): (WebCore::CookieJarCurlDatabase::cookiesEnabled const): (WebCore::CookieJarCurlDatabase::getRawCookies const): (WebCore::CookieJarCurlDatabase::deleteCookie const): (WebCore::CookieJarCurlDatabase::getHostnamesWithCookies const): (WebCore::CookieJarCurlDatabase::deleteCookiesForHostnames const): (WebCore::CookieJarCurlDatabase::deleteAllCookies const): (WebCore::CookieJarCurlDatabase::deleteAllCookiesModifiedSince const): * platform/network/curl/CookieJarDB.cpp: * platform/network/curl/CookieUtil.h: * platform/network/curl/CurlContext.h: * platform/network/curl/CurlProxySettings.h: * platform/network/curl/CurlResponse.h: * platform/network/curl/NetworkStorageSessionCurl.cpp: * platform/network/curl/ProxyServerCurl.cpp: * platform/network/curl/SocketStreamHandleImplCurl.cpp: * platform/network/mac/ResourceErrorMac.mm: * platform/network/soup/NetworkStorageSessionSoup.cpp: * platform/network/soup/ProxyServerSoup.cpp: * platform/network/soup/ResourceHandleSoup.cpp: * platform/network/soup/ResourceRequest.h: * platform/network/soup/ResourceRequestSoup.cpp: * platform/network/soup/SocketStreamHandleImplSoup.cpp: * platform/network/soup/SoupNetworkSession.cpp: * platform/network/soup/SoupNetworkSession.h: * platform/text/TextEncoding.h: * platform/win/BString.cpp: * platform/win/BString.h: * platform/win/ClipboardUtilitiesWin.cpp: (WebCore::markupToCFHTML): * platform/win/ClipboardUtilitiesWin.h: * platform/win/DragImageWin.cpp: * platform/win/PasteboardWin.cpp: * plugins/PluginData.h: * rendering/HitTestResult.h: * rendering/RenderAttachment.cpp: * svg/SVGImageLoader.cpp: (WebCore::SVGImageLoader::sourceURI const): * svg/SVGURIReference.cpp: * svg/graphics/SVGImage.h: * svg/graphics/SVGImageCache.h: * svg/graphics/SVGImageForContainer.h: * testing/Internals.cpp: (WebCore::Internals::resetToConsistentState): * testing/Internals.mm: (WebCore::Internals::userVisibleString): * testing/MockContentFilter.cpp: (WebCore::MockContentFilter::willSendRequest): * testing/MockPaymentCoordinator.cpp: * testing/js/WebCoreTestSupport.cpp: * workers/AbstractWorker.h: * workers/WorkerGlobalScope.h: * workers/WorkerGlobalScopeProxy.h: * workers/WorkerInspectorProxy.h: * workers/WorkerLocation.h: * workers/WorkerScriptLoader.h: * workers/WorkerThread.cpp: * workers/WorkerThread.h: * workers/service/ServiceWorker.h: * workers/service/ServiceWorkerClientData.h: * workers/service/ServiceWorkerContainer.cpp: * workers/service/ServiceWorkerContextData.h: * workers/service/ServiceWorkerData.h: * workers/service/ServiceWorkerJobData.h: * workers/service/ServiceWorkerRegistrationKey.cpp: * workers/service/ServiceWorkerRegistrationKey.h: (WTF::HashTraits<WebCore::ServiceWorkerRegistrationKey>::constructDeletedValue): * worklets/WorkletGlobalScope.h: * xml/XMLHttpRequest.h: Source/WebKit: * NetworkProcess/Cookies/WebCookieManager.cpp: * NetworkProcess/Cookies/WebCookieManager.h: * NetworkProcess/Cookies/WebCookieManager.messages.in: * NetworkProcess/CustomProtocols/Cocoa/LegacyCustomProtocolManagerCocoa.mm: * NetworkProcess/Downloads/Download.h: * NetworkProcess/Downloads/DownloadManager.cpp: (WebKit::DownloadManager::publishDownloadProgress): * NetworkProcess/Downloads/DownloadManager.h: * NetworkProcess/Downloads/PendingDownload.cpp: (WebKit::PendingDownload::publishProgress): * NetworkProcess/Downloads/PendingDownload.h: * NetworkProcess/Downloads/cocoa/DownloadCocoa.mm: (WebKit::Download::publishProgress): * NetworkProcess/FileAPI/NetworkBlobRegistry.cpp: (WebKit::NetworkBlobRegistry::registerBlobURL): (WebKit::NetworkBlobRegistry::registerBlobURLForSlice): (WebKit::NetworkBlobRegistry::unregisterBlobURL): (WebKit::NetworkBlobRegistry::blobSize): (WebKit::NetworkBlobRegistry::filesInBlob): * NetworkProcess/FileAPI/NetworkBlobRegistry.h: * NetworkProcess/NetworkConnectionToWebProcess.h: * NetworkProcess/NetworkConnectionToWebProcess.messages.in: * NetworkProcess/NetworkDataTask.cpp: (WebKit::NetworkDataTask::didReceiveResponse): * NetworkProcess/NetworkDataTaskBlob.cpp: * NetworkProcess/NetworkLoadChecker.h: (WebKit::NetworkLoadChecker::setContentExtensionController): (WebKit::NetworkLoadChecker::url const): * NetworkProcess/NetworkProcess.cpp: (WebKit::NetworkProcess::writeBlobToFilePath): (WebKit::NetworkProcess::publishDownloadProgress): (WebKit::NetworkProcess::preconnectTo): * NetworkProcess/NetworkProcess.h: * NetworkProcess/NetworkProcess.messages.in: * NetworkProcess/NetworkResourceLoadParameters.h: * NetworkProcess/NetworkResourceLoader.cpp: (WebKit::logBlockedCookieInformation): (WebKit::logCookieInformationInternal): * NetworkProcess/NetworkResourceLoader.h: * NetworkProcess/NetworkSocketStream.cpp: (WebKit::NetworkSocketStream::create): * NetworkProcess/NetworkSocketStream.h: * NetworkProcess/PingLoad.h: * NetworkProcess/ServiceWorker/WebSWServerConnection.h: * NetworkProcess/ServiceWorker/WebSWServerConnection.messages.in: * NetworkProcess/ServiceWorker/WebSWServerToContextConnection.messages.in: * NetworkProcess/cache/CacheStorageEngine.cpp: (WebKit::CacheStorage::Engine::retrieveRecords): * NetworkProcess/cache/CacheStorageEngine.h: * NetworkProcess/cache/CacheStorageEngineCache.h: * NetworkProcess/cache/CacheStorageEngineConnection.cpp: (WebKit::CacheStorageEngineConnection::retrieveRecords): * NetworkProcess/cache/CacheStorageEngineConnection.h: * NetworkProcess/cache/CacheStorageEngineConnection.messages.in: * NetworkProcess/cache/NetworkCache.h: * NetworkProcess/cache/NetworkCacheStatistics.cpp: (WebKit::NetworkCache::Statistics::recordRetrievedCachedEntry): (WebKit::NetworkCache::Statistics::recordRevalidationSuccess): * NetworkProcess/cache/NetworkCacheSubresourcesEntry.h: (WebKit::NetworkCache::SubresourceInfo::firstPartyForCookies const): * NetworkProcess/capture/NetworkCaptureEvent.cpp: (WebKit::NetworkCapture::Request::operator WebCore::ResourceRequest const): (WebKit::NetworkCapture::Response::operator WebCore::ResourceResponse const): (WebKit::NetworkCapture::Error::operator WebCore::ResourceError const): * NetworkProcess/capture/NetworkCaptureManager.cpp: (WebKit::NetworkCapture::Manager::findBestFuzzyMatch): (WebKit::NetworkCapture::Manager::fuzzyMatchURLs): (WebKit::NetworkCapture::Manager::urlIdentifyingCommonDomain): * NetworkProcess/capture/NetworkCaptureManager.h: * NetworkProcess/capture/NetworkCaptureResource.cpp: (WebKit::NetworkCapture::Resource::url): (WebKit::NetworkCapture::Resource::queryParameters): * NetworkProcess/capture/NetworkCaptureResource.h: * NetworkProcess/cocoa/NetworkDataTaskCocoa.mm: (WebKit::NetworkDataTaskCocoa::willPerformHTTPRedirection): * NetworkProcess/cocoa/NetworkProcessCocoa.mm: (WebKit::NetworkProcess::deleteHSTSCacheForHostNames): * NetworkProcess/cocoa/NetworkSessionCocoa.mm: (-[WKNetworkSessionDelegate URLSession:task:didReceiveChallenge:completionHandler:]): * PluginProcess/mac/PluginProcessMac.mm: (WebKit::openCFURLRef): (WebKit::replacedNSWorkspace_launchApplicationAtURL_options_configuration_error): * Shared/API/APIURL.h: (API::URL::create): (API::URL::equals): (API::URL::URL): (API::URL::url const): (API::URL::parseURLIfNecessary const): * Shared/API/APIUserContentURLPattern.h: (API::UserContentURLPattern::matchesURL const): * Shared/API/c/WKURLRequest.cpp: * Shared/API/c/WKURLResponse.cpp: * Shared/API/c/cf/WKURLCF.mm: (WKURLCreateWithCFURL): (WKURLCopyCFURL): * Shared/API/glib/WebKitURIRequest.cpp: * Shared/API/glib/WebKitURIResponse.cpp: * Shared/APIWebArchiveResource.mm: (API::WebArchiveResource::WebArchiveResource): * Shared/AssistedNodeInformation.h: * Shared/Cocoa/WKNSURLExtras.mm: (-[NSURL _web_originalDataAsWTFString]): (): Deleted. * Shared/SessionState.h: * Shared/WebBackForwardListItem.cpp: (WebKit::WebBackForwardListItem::itemIsInSameDocument const): * Shared/WebCoreArgumentCoders.cpp: * Shared/WebCoreArgumentCoders.h: * Shared/WebErrors.h: * Shared/WebHitTestResultData.cpp: * Shared/cf/ArgumentCodersCF.cpp: (IPC::encode): (IPC::decode): * Shared/gtk/WebErrorsGtk.cpp: * Shared/ios/InteractionInformationAtPosition.h: * UIProcess/API/APIHTTPCookieStore.h: * UIProcess/API/APINavigation.cpp: (API::Navigation::appendRedirectionURL): * UIProcess/API/APINavigation.h: (API::Navigation::takeRedirectChain): * UIProcess/API/APINavigationAction.h: * UIProcess/API/APINavigationClient.h: (API::NavigationClient::signedPublicKeyAndChallengeString): (API::NavigationClient::contentRuleListNotification): (API::NavigationClient::webGLLoadPolicy const): (API::NavigationClient::resolveWebGLLoadPolicy const): * UIProcess/API/APIUIClient.h: (API::UIClient::saveDataToFileInDownloadsFolder): * UIProcess/API/APIUserScript.cpp: (API::UserScript::generateUniqueURL): * UIProcess/API/APIUserScript.h: * UIProcess/API/APIUserStyleSheet.cpp: (API::UserStyleSheet::generateUniqueURL): * UIProcess/API/APIUserStyleSheet.h: * UIProcess/API/C/WKOpenPanelResultListener.cpp: (filePathsFromFileURLs): * UIProcess/API/C/WKPage.cpp: (WKPageLoadPlainTextStringWithUserData): (WKPageSetPageUIClient): (WKPageSetPageNavigationClient): * UIProcess/API/C/WKPageGroup.cpp: (WKPageGroupAddUserStyleSheet): (WKPageGroupAddUserScript): * UIProcess/API/C/WKWebsiteDataStoreRef.cpp: (WKWebsiteDataStoreSetResourceLoadStatisticsPrevalentResourceForDebugMode): (WKWebsiteDataStoreSetStatisticsLastSeen): (WKWebsiteDataStoreSetStatisticsPrevalentResource): (WKWebsiteDataStoreSetStatisticsVeryPrevalentResource): (WKWebsiteDataStoreIsStatisticsPrevalentResource): (WKWebsiteDataStoreIsStatisticsVeryPrevalentResource): (WKWebsiteDataStoreIsStatisticsRegisteredAsSubresourceUnder): (WKWebsiteDataStoreIsStatisticsRegisteredAsSubFrameUnder): (WKWebsiteDataStoreIsStatisticsRegisteredAsRedirectingTo): (WKWebsiteDataStoreSetStatisticsHasHadUserInteraction): (WKWebsiteDataStoreIsStatisticsHasHadUserInteraction): (WKWebsiteDataStoreSetStatisticsGrandfathered): (WKWebsiteDataStoreIsStatisticsGrandfathered): (WKWebsiteDataStoreSetStatisticsSubframeUnderTopFrameOrigin): (WKWebsiteDataStoreSetStatisticsSubresourceUnderTopFrameOrigin): (WKWebsiteDataStoreSetStatisticsSubresourceUniqueRedirectTo): (WKWebsiteDataStoreSetStatisticsSubresourceUniqueRedirectFrom): (WKWebsiteDataStoreSetStatisticsTopFrameUniqueRedirectTo): (WKWebsiteDataStoreSetStatisticsTopFrameUniqueRedirectFrom): * UIProcess/API/Cocoa/WKHTTPCookieStore.mm: * UIProcess/API/Cocoa/WKUserScript.mm: (-[WKUserScript _initWithSource:injectionTime:forMainFrameOnly:legacyWhitelist:legacyBlacklist:associatedURL:userContentWorld:]): * UIProcess/API/Cocoa/WKWebView.mm: (-[WKWebView _showSafeBrowsingWarning:completionHandler:]): (-[WKWebView _showSafeBrowsingWarningWithTitle:warning:details:completionHandler:]): * UIProcess/API/Cocoa/WKWebViewConfiguration.mm: (-[WKWebViewConfiguration setURLSchemeHandler:forURLScheme:]): (-[WKWebViewConfiguration urlSchemeHandlerForURLScheme:]): * UIProcess/API/Cocoa/WKWebViewInternal.h: * UIProcess/API/Cocoa/WKWebsiteDataStore.mm: * UIProcess/API/Cocoa/_WKApplicationManifest.mm: (-[_WKApplicationManifest initWithCoder:]): (+[_WKApplicationManifest applicationManifestFromJSON:manifestURL:documentURL:]): * UIProcess/API/Cocoa/_WKUserStyleSheet.mm: (-[_WKUserStyleSheet initWithSource:forMainFrameOnly:legacyWhitelist:legacyBlacklist:baseURL:userContentWorld:]): * UIProcess/API/glib/IconDatabase.cpp: * UIProcess/API/glib/WebKitCookieManager.cpp: (webkit_cookie_manager_get_cookies): * UIProcess/API/glib/WebKitFileChooserRequest.cpp: * UIProcess/API/glib/WebKitSecurityOrigin.cpp: (webkit_security_origin_new_for_uri): * UIProcess/API/glib/WebKitUIClient.cpp: * UIProcess/API/glib/WebKitURISchemeRequest.cpp: * UIProcess/API/glib/WebKitWebView.cpp: (webkit_web_view_load_plain_text): * UIProcess/API/gtk/WebKitRemoteInspectorProtocolHandler.cpp: * UIProcess/ApplePay/WebPaymentCoordinatorProxy.cpp: (WebKit::WebPaymentCoordinatorProxy::showPaymentUI): (WebKit::WebPaymentCoordinatorProxy::validateMerchant): * UIProcess/ApplePay/WebPaymentCoordinatorProxy.h: * UIProcess/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.h: * UIProcess/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm: (WebKit::toPKPaymentRequest): * UIProcess/ApplePay/ios/WebPaymentCoordinatorProxyIOS.mm: (WebKit::WebPaymentCoordinatorProxy::platformShowPaymentUI): * UIProcess/ApplePay/mac/WebPaymentCoordinatorProxyMac.mm: (WebKit::WebPaymentCoordinatorProxy::platformShowPaymentUI): * UIProcess/Automation/WebAutomationSession.cpp: (WebKit::WebAutomationSession::navigateBrowsingContext): (WebKit::domainByAddingDotPrefixIfNeeded): (WebKit::WebAutomationSession::addSingleCookie): (WebKit::WebAutomationSession::deleteAllCookies): * UIProcess/Cocoa/DownloadClient.mm: (WebKit::DownloadClient::didFinish): * UIProcess/Cocoa/NavigationState.h: * UIProcess/Cocoa/NavigationState.mm: (WebKit::NavigationState::NavigationClient::webGLLoadPolicy const): (WebKit::NavigationState::NavigationClient::resolveWebGLLoadPolicy const): (WebKit::NavigationState::NavigationClient::contentRuleListNotification): (WebKit::NavigationState::NavigationClient::willPerformClientRedirect): (WebKit::NavigationState::NavigationClient::didPerformClientRedirect): (WebKit::NavigationState::NavigationClient::signedPublicKeyAndChallengeString): * UIProcess/Cocoa/SafeBrowsingResultCocoa.mm: Copied from Source/WebKit/WebProcess/Network/WebSocketProvider.h. (WebKit::SafeBrowsingResult::SafeBrowsingResult): * UIProcess/Cocoa/SafeBrowsingWarningCocoa.mm: (WebKit::reportAnErrorURL): (WebKit::malwareDetailsURL): (WebKit::safeBrowsingDetailsText): (WebKit::SafeBrowsingWarning::SafeBrowsingWarning): * UIProcess/Cocoa/SystemPreviewControllerCocoa.mm: (-[_WKPreviewControllerDataSource finish:]): (WebKit::SystemPreviewController::finish): * UIProcess/Cocoa/UIDelegate.h: * UIProcess/Cocoa/UIDelegate.mm: (WebKit::UIDelegate::UIClient::createNewPage): (WebKit::UIDelegate::UIClient::saveDataToFileInDownloadsFolder): (WebKit::requestUserMediaAuthorizationForDevices): (WebKit::UIDelegate::UIClient::checkUserMediaPermissionForOrigin): * UIProcess/Cocoa/WKReloadFrameErrorRecoveryAttempter.mm: (-[WKReloadFrameErrorRecoveryAttempter attemptRecovery]): * UIProcess/Cocoa/WKSafeBrowsingWarning.h: * UIProcess/Cocoa/WKSafeBrowsingWarning.mm: (-[WKSafeBrowsingWarning initWithFrame:safeBrowsingWarning:completionHandler:]): * UIProcess/Cocoa/WebPasteboardProxyCocoa.mm: * UIProcess/Cocoa/WebViewImpl.h: * UIProcess/Cocoa/WebViewImpl.mm: (WebKit::WebViewImpl::showSafeBrowsingWarning): (WebKit::WebViewImpl::writeToURLForFilePromiseProvider): * UIProcess/Downloads/DownloadProxy.cpp: (WebKit::DownloadProxy::publishProgress): * UIProcess/Downloads/DownloadProxy.h: (WebKit::DownloadProxy::setRedirectChain): (WebKit::DownloadProxy::redirectChain const): * UIProcess/FrameLoadState.cpp: (WebKit::FrameLoadState::didStartProvisionalLoad): (WebKit::FrameLoadState::didReceiveServerRedirectForProvisionalLoad): (WebKit::FrameLoadState::didSameDocumentNotification): (WebKit::FrameLoadState::setUnreachableURL): * UIProcess/FrameLoadState.h: (WebKit::FrameLoadState::url const): (WebKit::FrameLoadState::setURL): (WebKit::FrameLoadState::provisionalURL const): (WebKit::FrameLoadState::unreachableURL const): * UIProcess/Network/NetworkProcessProxy.cpp: (WebKit::NetworkProcessProxy::writeBlobToFilePath): * UIProcess/Network/NetworkProcessProxy.h: * UIProcess/PageClient.h: (WebKit::PageClient::showSafeBrowsingWarning): * UIProcess/PageLoadState.cpp: (WebKit::PageLoadState::hasOnlySecureContent): * UIProcess/Plugins/PluginInfoStore.cpp: * UIProcess/Plugins/PluginInfoStore.h: * UIProcess/Plugins/mac/PluginProcessProxyMac.mm: * UIProcess/SafeBrowsingResult.h: Copied from Source/WebKit/UIProcess/SystemPreviewController.h. (WebKit::SafeBrowsingResult::create): (WebKit::SafeBrowsingResult::url const): (WebKit::SafeBrowsingResult::provider const): (WebKit::SafeBrowsingResult::isPhishing const): (WebKit::SafeBrowsingResult::isMalware const): (WebKit::SafeBrowsingResult::isUnwantedSoftware const): (WebKit::SafeBrowsingResult::isKnownToBeUnsafe const): * UIProcess/SafeBrowsingWarning.h: (WebKit::SafeBrowsingWarning::create): * UIProcess/SuspendedPageProxy.cpp: * UIProcess/SystemPreviewController.h: * UIProcess/WebCookieManagerProxy.h: * UIProcess/WebFrameProxy.h: (WebKit::WebFrameProxy::url const): (WebKit::WebFrameProxy::provisionalURL const): (WebKit::WebFrameProxy::unreachableURL const): * UIProcess/WebInspectorProxy.h: * UIProcess/WebOpenPanelResultListenerProxy.cpp: * UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::loadDataWithNavigation): (WebKit::WebPageProxy::loadAlternateHTML): (WebKit::WebPageProxy::loadWebArchiveData): (WebKit::WebPageProxy::navigateToPDFLinkWithSimulatedClick): (WebKit::WebPageProxy::continueNavigationInNewProcess): (WebKit::WebPageProxy::didStartProvisionalLoadForFrame): (WebKit::WebPageProxy::didChangeProvisionalURLForFrame): (WebKit::WebPageProxy::didSameDocumentNavigationForFrame): (WebKit::WebPageProxy::contentRuleListNotification): (WebKit::WebPageProxy::processDidTerminate): (WebKit::WebPageProxy::signedPublicKeyAndChallengeString): (WebKit::WebPageProxy::setURLSchemeHandlerForScheme): * UIProcess/WebPageProxy.h: * UIProcess/WebPageProxy.messages.in: * UIProcess/WebProcessPool.cpp: (WebKit::WebProcessPool::tryPrewarmWithDomainInformation): * UIProcess/WebProcessPool.h: * UIProcess/WebProcessProxy.cpp: (WebKit::WebProcessProxy::processDidTerminateOrFailedToLaunch): * UIProcess/WebProcessProxy.h: * UIProcess/WebResourceLoadStatisticsStore.cpp: (WebKit::WebResourceLoadStatisticsStore::setPrevalentResourceForDebugMode): (WebKit::WebResourceLoadStatisticsStore::logFrameNavigation): * UIProcess/WebResourceLoadStatisticsStore.h: * UIProcess/ios/DragDropInteractionState.h: * UIProcess/ios/PageClientImplIOS.h: * UIProcess/ios/PageClientImplIOS.mm: (WebKit::PageClientImpl::showSafeBrowsingWarning): * UIProcess/ios/WKActionSheetAssistant.mm: (-[WKActionSheetAssistant _createSheetWithElementActions:showLinkTitle:]): * UIProcess/ios/WKContentViewInteraction.mm: (-[WKContentView actionSheetAssistant:shareElementWithURL:rect:]): (-[WKContentView _presentedViewControllerForPreviewItemController:]): * UIProcess/ios/WKGeolocationProviderIOS.mm: (-[WKGeolocationProviderIOS geolocationAuthorizationGranted]): * UIProcess/ios/WKLegacyPDFView.mm: (-[WKLegacyPDFView actionSheetAssistant:shareElementWithURL:rect:]): * UIProcess/ios/WKPDFView.mm: (-[WKPDFView actionSheetAssistant:shareElementWithURL:rect:]): * UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm: (-[WKFullScreenWindowController _updateLocationInfo]): * UIProcess/mac/LegacySessionStateCoding.cpp: (WebKit::decodeLegacySessionState): * UIProcess/mac/PageClientImplMac.h: * UIProcess/mac/PageClientImplMac.mm: (WebKit::PageClientImpl::showSafeBrowsingWarning): * UIProcess/mac/WKImmediateActionController.mm: (-[WKImmediateActionController _defaultAnimationController]): * UIProcess/win/WebInspectorProxyWin.cpp: * WebProcess/ApplePay/WebPaymentCoordinator.cpp: (WebKit::WebPaymentCoordinator::showPaymentUI): (WebKit::WebPaymentCoordinator::validateMerchant): * WebProcess/ApplePay/WebPaymentCoordinator.h: * WebProcess/Cache/WebCacheStorageConnection.cpp: (WebKit::WebCacheStorageConnection::doRetrieveRecords): * WebProcess/Cache/WebCacheStorageConnection.h: * WebProcess/FileAPI/BlobRegistryProxy.cpp: (WebKit::BlobRegistryProxy::registerFileBlobURL): * WebProcess/FileAPI/BlobRegistryProxy.h: * WebProcess/InjectedBundle/API/APIInjectedBundlePageLoaderClient.h: (API::InjectedBundle::PageLoaderClient::willLoadDataRequest): (API::InjectedBundle::PageLoaderClient::userAgentForURL const): * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp: (WKBundleFrameAllowsFollowingLink): (WKBundleFrameCopySuggestedFilenameForResourceWithURL): (WKBundleFrameCopyMIMETypeForResourceWithURL): * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp: (WKBundlePageHasLocalDataForURL): * WebProcess/InjectedBundle/API/gtk/DOM/ConvertToUTF8String.cpp: (convertToUTF8String): * WebProcess/InjectedBundle/API/gtk/DOM/ConvertToUTF8String.h: * WebProcess/InjectedBundle/InjectedBundleHitTestResult.cpp: * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h: * WebProcess/MediaCache/WebMediaKeyStorageManager.cpp: * WebProcess/Network/WebLoaderStrategy.cpp: (WebKit::WebLoaderStrategy::preconnectTo): * WebProcess/Network/WebLoaderStrategy.h: * WebProcess/Network/WebSocketProvider.h: * WebProcess/Network/WebSocketStream.cpp: (WebKit::WebSocketStream::WebSocketStream): * WebProcess/Network/WebSocketStream.h: * WebProcess/Plugins/Netscape/NetscapePlugin.cpp: * WebProcess/Plugins/Netscape/NetscapePlugin.h: * WebProcess/Plugins/Netscape/NetscapePluginStream.h: * WebProcess/Plugins/PDF/PDFPlugin.h: * WebProcess/Plugins/PDF/PDFPlugin.mm: (WebKit::PDFPlugin::clickedLink): * WebProcess/Plugins/Plugin.h: * WebProcess/Plugins/PluginController.h: * WebProcess/Plugins/PluginProxy.h: * WebProcess/Plugins/PluginView.cpp: (WebKit::PluginView::performURLRequest): (WebKit::PluginView::performJavaScriptURLRequest): * WebProcess/Plugins/WebPluginInfoProvider.cpp: (WebKit::WebPluginInfoProvider::webVisiblePluginInfo): * WebProcess/Plugins/WebPluginInfoProvider.h: * WebProcess/Storage/WebSWClientConnection.h: * WebProcess/Storage/WebSWContextManagerConnection.h: * WebProcess/UserContent/WebUserContentController.h: * WebProcess/WebCoreSupport/WebChromeClient.cpp: (WebKit::WebChromeClient::signedPublicKeyAndChallengeString const): * WebProcess/WebCoreSupport/WebChromeClient.h: * WebProcess/WebCoreSupport/WebContextMenuClient.h: * WebProcess/WebCoreSupport/WebDragClient.h: * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp: (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForResponse): (WebKit::WebFrameLoaderClient::shouldForceUniversalAccessFromLocalURL): * WebProcess/WebCoreSupport/WebFrameLoaderClient.h: * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp: (WebKit::WebPlatformStrategies::readURLFromPasteboard): * WebProcess/WebCoreSupport/WebPlatformStrategies.h: * WebProcess/WebCoreSupport/mac/WebDragClientMac.mm: (WebKit::WebDragClient::declareAndWriteDragImage): * WebProcess/WebCoreSupport/mac/WebEditorClientMac.mm: * WebProcess/WebPage/VisitedLinkTableController.h: * WebProcess/WebPage/WebFrame.cpp: (WebKit::WebFrame::allowsFollowingLink const): * WebProcess/WebPage/WebFrame.h: * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::loadURLInFrame): (WebKit::WebPage::loadData): (WebKit::WebPage::loadAlternateHTML): (WebKit::WebPage::dumpHistoryForTesting): (WebKit::WebPage::sendCSPViolationReport): (WebKit::WebPage::addUserScript): (WebKit::WebPage::addUserStyleSheet): * WebProcess/WebPage/WebPage.h: * WebProcess/WebPage/WebPage.messages.in: * WebProcess/WebPage/gtk/WebPrintOperationGtk.cpp: (WebKit::WebPrintOperationGtk::frameURL const): * WebProcess/WebPage/gtk/WebPrintOperationGtk.h: * WebProcess/WebProcess.cpp: (WebKit::WebProcess::sendPrewarmInformation): * WebProcess/WebProcess.h: * WebProcess/cocoa/WebProcessCocoa.mm: (WebKit::activePagesOrigins): Source/WebKitLegacy: * WebCoreSupport/WebResourceLoadScheduler.cpp: * WebCoreSupport/WebResourceLoadScheduler.h: Source/WebKitLegacy/mac: * DOM/DOMAttr.mm: * DOM/DOMBlob.mm: * DOM/DOMCSSCharsetRule.mm: * DOM/DOMCSSImportRule.mm: * DOM/DOMCSSMediaRule.mm: * DOM/DOMCSSPageRule.mm: * DOM/DOMCSSPrimitiveValue.mm: * DOM/DOMCSSRule.mm: * DOM/DOMCSSStyleDeclaration.mm: * DOM/DOMCSSStyleRule.mm: * DOM/DOMCSSStyleSheet.mm: * DOM/DOMCSSValue.mm: * DOM/DOMCharacterData.mm: * DOM/DOMCounter.mm: * DOM/DOMDocument.mm: * DOM/DOMDocumentFragment.mm: * DOM/DOMDocumentType.mm: * DOM/DOMEvent.mm: * DOM/DOMFile.mm: * DOM/DOMHTMLAnchorElement.mm: * DOM/DOMHTMLAppletElement.mm: * DOM/DOMHTMLAreaElement.mm: * DOM/DOMHTMLBRElement.mm: * DOM/DOMHTMLBaseElement.mm: * DOM/DOMHTMLBaseFontElement.mm: * DOM/DOMHTMLBodyElement.mm: * DOM/DOMHTMLButtonElement.mm: * DOM/DOMHTMLCanvasElement.mm: * DOM/DOMHTMLCollection.mm: * DOM/DOMHTMLDivElement.mm: * DOM/DOMHTMLDocument.mm: * DOM/DOMHTMLElement.mm: * DOM/DOMHTMLEmbedElement.mm: * DOM/DOMHTMLFieldSetElement.mm: * DOM/DOMHTMLFontElement.mm: * DOM/DOMHTMLFormElement.mm: * DOM/DOMHTMLFrameElement.mm: * DOM/DOMHTMLFrameSetElement.mm: * DOM/DOMHTMLHRElement.mm: * DOM/DOMHTMLHeadElement.mm: * DOM/DOMHTMLHeadingElement.mm: * DOM/DOMHTMLHtmlElement.mm: * DOM/DOMHTMLIFrameElement.mm: * DOM/DOMHTMLImageElement.mm: * DOM/DOMHTMLInputElement.mm: * DOM/DOMHTMLLIElement.mm: * DOM/DOMHTMLLabelElement.mm: * DOM/DOMHTMLLegendElement.mm: * DOM/DOMHTMLLinkElement.mm: * DOM/DOMHTMLMapElement.mm: * DOM/DOMHTMLMarqueeElement.mm: * DOM/DOMHTMLMediaElement.mm: * DOM/DOMHTMLMetaElement.mm: * DOM/DOMHTMLModElement.mm: * DOM/DOMHTMLOListElement.mm: * DOM/DOMHTMLObjectElement.mm: * DOM/DOMHTMLOptGroupElement.mm: * DOM/DOMHTMLOptionElement.mm: * DOM/DOMHTMLOptionsCollection.mm: * DOM/DOMHTMLParagraphElement.mm: * DOM/DOMHTMLParamElement.mm: * DOM/DOMHTMLQuoteElement.mm: * DOM/DOMHTMLScriptElement.mm: * DOM/DOMHTMLSelectElement.mm: * DOM/DOMHTMLStyleElement.mm: * DOM/DOMHTMLTableCaptionElement.mm: * DOM/DOMHTMLTableCellElement.mm: * DOM/DOMHTMLTableColElement.mm: * DOM/DOMHTMLTableElement.mm: * DOM/DOMHTMLTableRowElement.mm: * DOM/DOMHTMLTableSectionElement.mm: * DOM/DOMHTMLTitleElement.mm: * DOM/DOMHTMLUListElement.mm: * DOM/DOMHTMLVideoElement.mm: * DOM/DOMKeyboardEvent.mm: * DOM/DOMMediaList.mm: * DOM/DOMMouseEvent.mm: * DOM/DOMMutationEvent.mm: * DOM/DOMNamedNodeMap.mm: * DOM/DOMProcessingInstruction.mm: * DOM/DOMRange.mm: * DOM/DOMStyleSheet.mm: * DOM/DOMText.mm: * DOM/DOMTextEvent.mm: * DOM/DOMTokenList.mm: * DOM/DOMUIEvent.mm: * DOM/DOMXPathResult.mm: * History/WebHistoryItem.mm: * Misc/WebNSURLExtras.mm: (-[NSURL _web_userVisibleString]): (-[NSURL _web_URLByRemovingUserInfo]): (-[NSURL _web_dataForURLComponentType:]): (-[NSURL _web_schemeData]): (-[NSURL _web_hostData]): * Misc/WebUserContentURLPattern.mm: * Plugins/Hosted/NetscapePluginInstanceProxy.mm: * Plugins/WebNetscapePluginStream.h: (WebNetscapePluginStream::setRequestURL): * WebCoreSupport/WebChromeClient.h: * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::signedPublicKeyAndChallengeString const): * WebCoreSupport/WebContextMenuClient.h: * WebCoreSupport/WebContextMenuClient.mm: * WebCoreSupport/WebDragClient.h: * WebCoreSupport/WebFrameLoaderClient.h: * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::updateGlobalHistory): * WebCoreSupport/WebPaymentCoordinatorClient.h: * WebCoreSupport/WebPaymentCoordinatorClient.mm: (WebPaymentCoordinatorClient::showPaymentUI): * WebCoreSupport/WebPlatformStrategies.h: * WebCoreSupport/WebPlatformStrategies.mm: (WebPlatformStrategies::readURLFromPasteboard): * WebCoreSupport/WebPluginInfoProvider.h: * WebCoreSupport/WebPluginInfoProvider.mm: (WebPluginInfoProvider::webVisiblePluginInfo): * WebCoreSupport/WebSecurityOrigin.mm: * WebCoreSupport/WebVisitedLinkStore.h: * WebView/WebDataSource.mm: * WebView/WebFrame.mm: (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]): * WebView/WebImmediateActionController.mm: (-[WebImmediateActionController _defaultAnimationController]): * WebView/WebPDFView.mm: * WebView/WebScriptDebugger.mm: * WebView/WebViewInternal.h: Source/WebKitLegacy/win: * MarshallingHelpers.cpp: * MarshallingHelpers.h: * Plugins/PluginDatabase.cpp: * Plugins/PluginDatabase.h: * Plugins/PluginDatabaseWin.cpp: * Plugins/PluginStream.h: * Plugins/PluginView.h: * WebCoreSupport/WebContextMenuClient.h: * WebCoreSupport/WebDesktopNotificationsDelegate.cpp: * WebCoreSupport/WebDesktopNotificationsDelegate.h: * WebCoreSupport/WebFrameLoaderClient.h: * WebCoreSupport/WebPlatformStrategies.h: * WebCoreSupport/WebPluginInfoProvider.cpp: (WebPluginInfoProvider::webVisiblePluginInfo): * WebCoreSupport/WebPluginInfoProvider.h: * WebCoreSupport/WebVisitedLinkStore.h: * WebDataSource.cpp: * WebDownload.h: * WebElementPropertyBag.cpp: * WebFrame.h: * WebHistory.cpp: * WebHistory.h: * WebHistoryItem.cpp: * WebResource.cpp: (WebResource::WebResource): * WebResource.h: * WebSecurityOrigin.cpp: * WebURLResponse.cpp: (WebURLResponse::createInstance): * WebUserContentURLPattern.cpp: * WebView.h: Source/WTF: * WTF.xcodeproj/project.pbxproj: * wtf/CMakeLists.txt: * wtf/Forward.h: * wtf/PlatformGTK.cmake: * wtf/PlatformMac.cmake: * wtf/PlatformWPE.cmake: * wtf/PlatformWin.cmake: * wtf/URL.cpp: Renamed from Source/WebCore/platform/URL.cpp. (WTF::URL::protocolIs): * wtf/URL.h: Renamed from Source/WebCore/platform/URL.h. * wtf/URLHash.h: Renamed from Source/WebCore/platform/URLHash.h. (WTF::URLHash::hash): (WTF::URLHash::equal): * wtf/URLParser.cpp: Renamed from Source/WebCore/platform/URLParser.cpp. (WTF::URLParser::isInUserInfoEncodeSet): (WTF::URLParser::parseAuthority): * wtf/URLParser.h: Renamed from Source/WebCore/platform/URLParser.h. (WTF::URLParser::URLParser): (WTF::URLParser::result): * wtf/cf/CFURLExtras.cpp: Renamed from Source/WebCore/platform/cf/CFURLExtras.cpp. * wtf/cf/CFURLExtras.h: Renamed from Source/WebCore/platform/cf/CFURLExtras.h. * wtf/cf/URLCF.cpp: Renamed from Source/WebCore/platform/cf/URLCF.cpp. * wtf/cocoa/NSURLExtras.h: Copied from Source/WebCore/loader/archive/ArchiveResourceCollection.h. * wtf/cocoa/NSURLExtras.mm: Copied from Source/WebCore/platform/mac/WebCoreNSURLExtras.mm. (WTF::isArmenianLookalikeCharacter): (WTF::isArmenianScriptCharacter): (WTF::isASCIIDigitOrValidHostCharacter): (WTF::isLookalikeCharacter): (WTF::whiteListIDNScript): (WTF::readIDNScriptWhiteListFile): (WTF::allCharactersInIDNScriptWhiteList): (WTF::isSecondLevelDomainNameAllowedByTLDRules): (WTF::isRussianDomainNameCharacter): (WTF::allCharactersAllowedByTLDRules): (WTF::mapHostNameWithRange): (WTF::hostNameNeedsDecodingWithRange): (WTF::hostNameNeedsEncodingWithRange): (WTF::decodeHostNameWithRange): (WTF::encodeHostNameWithRange): (WTF::decodeHostName): (WTF::encodeHostName): (WTF::collectRangesThatNeedMapping): (WTF::collectRangesThatNeedEncoding): (WTF::collectRangesThatNeedDecoding): (WTF::applyHostNameFunctionToMailToURLString): (WTF::applyHostNameFunctionToURLString): (WTF::mapHostNames): (WTF::stringByTrimmingWhitespace): (WTF::URLByTruncatingOneCharacterBeforeComponent): (WTF::URLByRemovingResourceSpecifier): (WTF::URLWithData): (WTF::dataWithUserTypedString): (WTF::URLWithUserTypedString): (WTF::URLWithUserTypedStringDeprecated): (WTF::hasQuestionMarkOnlyQueryString): (WTF::dataForURLComponentType): (WTF::URLByRemovingComponentAndSubsequentCharacter): (WTF::URLByRemovingUserInfo): (WTF::originalURLData): (WTF::createStringWithEscapedUnsafeCharacters): (WTF::userVisibleString): (WTF::isUserVisibleURL): (WTF::rangeOfURLScheme): (WTF::looksLikeAbsoluteURL): * wtf/cocoa/URLCocoa.mm: Renamed from Source/WebCore/platform/mac/URLMac.mm. (WTF::URL::URL): (WTF::URL::createCFURL const): * wtf/glib/GUniquePtrSoup.h: Renamed from Source/WebCore/platform/network/soup/GUniquePtrSoup.h. * wtf/glib/URLSoup.cpp: Renamed from Source/WebCore/platform/soup/URLSoup.cpp. Tools: * TestWebKitAPI/Tests/WebCore/ContentExtensions.cpp: * TestWebKitAPI/Tests/WebCore/SecurityOrigin.cpp: * TestWebKitAPI/Tests/WebCore/URL.cpp: (TestWebKitAPI::createURL): (TestWebKitAPI::TEST_F): * TestWebKitAPI/Tests/WebCore/URLParser.cpp: (TestWebKitAPI::checkURL): (TestWebKitAPI::checkRelativeURL): (TestWebKitAPI::checkURLDifferences): (TestWebKitAPI::checkRelativeURLDifferences): * TestWebKitAPI/Tests/WebCore/UserAgentQuirks.cpp: * TestWebKitAPI/Tests/WebCore/YouTubePluginReplacement.cpp: * TestWebKitAPI/Tests/WebCore/cocoa/URLExtras.mm: (TestWebKitAPI::originalDataAsString): (TestWebKitAPI::userVisibleString): (TestWebKitAPI::literalURL): (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/WebKitCocoa/LoadAlternateHTMLString.mm: (TEST): * TestWebKitAPI/Tests/WebKitCocoa/LoadInvalidURLRequest.mm: (literalURL): * TestWebKitAPI/Tests/WebKitGLib/TestCookieManager.cpp: * TestWebKitAPI/Tests/mac/LoadInvalidURLRequest.mm: (-[LoadInvalidURLWebFrameLoadDelegate webView:didFailProvisionalLoadWithError:forFrame:]): * TestWebKitAPI/Tests/mac/SSLKeyGenerator.mm: * TestWebKitAPI/win/PlatformUtilitiesWin.cpp: (TestWebKitAPI::Util::createURLForResource): * lldb/lldb_webkit.py: (__lldb_init_module): (WTFURL_SummaryProvider): (WTFURLProvider): (WebCoreURL_SummaryProvider): Deleted. (WebCoreURLProvider): Deleted. (WebCoreURLProvider.__init__): Deleted. (WebCoreURLProvider.to_string): Deleted. Canonical link: https://commits.webkit.org/206915@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@238771 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-12-01 03:28:36 +00:00
cf/CFURLExtras.cpp
Move FileSystem to WTF https://bugs.webkit.org/show_bug.cgi?id=193602 Reviewed by Yusuke Suzuki. Source/WebCore: * Modules/encryptedmedia/CDM.cpp: * Modules/encryptedmedia/legacy/WebKitMediaKeySession.cpp: * Modules/entriesapi/DOMFileSystem.cpp: * Modules/entriesapi/FileSystemEntry.cpp: * Modules/indexeddb/IDBDatabaseIdentifier.cpp: * Modules/indexeddb/server/SQLiteIDBBackingStore.cpp: * Modules/indexeddb/server/SQLiteIDBTransaction.cpp: * Modules/indexeddb/shared/InProcessIDBServer.cpp: * Modules/webdatabase/DatabaseTracker.cpp: * Modules/webdatabase/OriginLock.cpp: * Modules/webdatabase/OriginLock.h: * Modules/webdatabase/cocoa/DatabaseManagerCocoa.mm: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWin.cmake: * Sources.txt: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * bindings/js/GCController.cpp: * dom/DataTransferItem.cpp: * editing/cocoa/WebContentReaderCocoa.mm: * fileapi/File.cpp: * fileapi/FileCocoa.mm: * html/FileInputType.cpp: * html/FileListCreator.cpp: * loader/appcache/ApplicationCacheHost.cpp: * loader/appcache/ApplicationCacheStorage.cpp: * page/Page.cpp: * page/SecurityOrigin.cpp: * page/SecurityOriginData.cpp: * platform/FileHandle.h: * platform/FileStream.cpp: * platform/FileStream.h: * platform/SharedBuffer.h: * platform/SourcesGLib.txt: * platform/cocoa/FileMonitorCocoa.mm: * platform/glib/FileMonitorGLib.cpp: * platform/glib/SharedBufferGlib.cpp: * platform/graphics/avfoundation/objc/CDMSessionAVContentKeySession.mm: * platform/graphics/avfoundation/objc/CDMSessionAVStreamSession.mm: * platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.mm: * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm: * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp: * platform/ios/QuickLook.mm: * platform/ios/WebItemProviderPasteboard.mm: * platform/mediarecorder/cocoa/MediaRecorderPrivateWriterCocoa.mm: * platform/network/BlobDataFileReference.cpp: * platform/network/BlobRegistryImpl.cpp: * platform/network/BlobResourceHandle.cpp: * platform/network/FormData.cpp: * platform/network/cf/FormDataStreamCFNet.cpp: * platform/network/cocoa/ResourceRequestCocoa.mm: * platform/network/curl/CookieJarDB.cpp: * platform/network/curl/CurlCacheEntry.h: * platform/network/curl/CurlCacheManager.cpp: * platform/network/curl/CurlFormDataStream.h: * platform/network/curl/CurlRequest.h: * platform/network/curl/NetworkStorageSessionCurl.cpp: * platform/network/curl/ResourceHandleCurl.cpp: * platform/network/mac/BlobDataFileReferenceMac.mm: * platform/network/soup/ResourceHandleSoup.cpp: * platform/network/soup/SoupNetworkSession.cpp: * platform/posix/SharedBufferPOSIX.cpp: * platform/sql/SQLiteFileSystem.cpp: * platform/text/hyphen/HyphenationLibHyphen.cpp: * platform/win/SearchPopupMenuDB.cpp: * rendering/RenderTheme.cpp: * rendering/RenderThemeGtk.cpp: * rendering/RenderThemeWin.cpp: * workers/service/server/RegistrationDatabase.cpp: Source/WebCore/PAL: * PAL.xcodeproj/project.pbxproj: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/Classifier/ResourceLoadStatisticsPersistentStorage.cpp: * NetworkProcess/NetworkDataTaskBlob.h: * NetworkProcess/NetworkProcess.cpp: * NetworkProcess/cache/CacheStorageEngine.cpp: * NetworkProcess/cache/CacheStorageEngineCaches.cpp: * NetworkProcess/cache/NetworkCache.cpp: * NetworkProcess/cache/NetworkCacheBlobStorage.cpp: * NetworkProcess/cache/NetworkCacheData.cpp: * NetworkProcess/cache/NetworkCacheFileSystem.cpp: * NetworkProcess/cache/NetworkCacheFileSystem.h: * NetworkProcess/cache/NetworkCacheIOChannelCocoa.mm: * NetworkProcess/cache/NetworkCacheIOChannelSoup.cpp: * NetworkProcess/cache/NetworkCacheStatistics.cpp: * NetworkProcess/cache/NetworkCacheStorage.cpp: * NetworkProcess/cocoa/NetworkDataTaskCocoa.mm: * NetworkProcess/cocoa/NetworkSessionCocoa.mm: * NetworkProcess/mac/NetworkProcessMac.mm: * NetworkProcess/soup/NetworkProcessSoup.cpp: * PluginProcess/unix/PluginProcessMainUnix.cpp: * Shared/PersistencyUtils.cpp: * Shared/Plugins/Netscape/unix/NetscapePluginModuleUnix.cpp: * Shared/Plugins/unix/PluginSearchPath.cpp: * Shared/WebMemorySampler.h: * Shared/glib/ProcessExecutablePathGLib.cpp: * Shared/ios/ChildProcessIOS.mm: * Shared/mac/ChildProcessMac.mm: * Shared/mac/SandboxExtensionMac.mm: * UIProcess/API/APIContentRuleListStore.cpp: * UIProcess/API/Cocoa/APIWebsiteDataStoreCocoa.mm: * UIProcess/API/glib/APIWebsiteDataStoreGLib.cpp: * UIProcess/API/glib/IconDatabase.cpp: * UIProcess/API/glib/WebKitFaviconDatabase.cpp: * UIProcess/API/glib/WebKitFileChooserRequest.cpp: * UIProcess/API/glib/WebKitWebContext.cpp: * UIProcess/API/glib/WebKitWebsiteDataManager.cpp: * UIProcess/API/win/APIWebsiteDataStoreWin.cpp: * UIProcess/Automation/WebAutomationSession.cpp: * UIProcess/Cocoa/DownloadClient.mm: * UIProcess/Cocoa/WebProcessPoolCocoa.mm: * UIProcess/Cocoa/WebViewImpl.mm: * UIProcess/DeviceIdHashSaltStorage.cpp: * UIProcess/Downloads/DownloadProxy.cpp: * UIProcess/Launcher/glib/BubblewrapLauncher.cpp: * UIProcess/Launcher/glib/ProcessLauncherGLib.cpp: * UIProcess/Plugins/gtk/PluginInfoCache.cpp: * UIProcess/Plugins/mac/PluginProcessProxyMac.mm: * UIProcess/Plugins/unix/PluginInfoStoreUnix.cpp: * UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp: * UIProcess/ServiceWorkerProcessProxy.cpp: * UIProcess/WebStorage/LocalStorageDatabase.cpp: * UIProcess/WebStorage/LocalStorageDatabaseTracker.cpp: * UIProcess/WebsiteData/Cocoa/WebsiteDataStoreCocoa.mm: * UIProcess/WebsiteData/WebsiteDataStore.cpp: * UIProcess/glib/WebProcessProxyGLib.cpp: * UIProcess/gtk/WebInspectorProxyGtk.cpp: * UIProcess/gtk/WebProcessPoolGtk.cpp: * UIProcess/ios/WKContentViewInteraction.mm: * UIProcess/ios/forms/WKFileUploadPanel.mm: * UIProcess/mac/WebPageProxyMac.mm: * UIProcess/win/WebProcessPoolWin.cpp: * UIProcess/win/WebView.cpp: * UIProcess/wpe/WebProcessPoolWPE.cpp: * WebProcess/InjectedBundle/API/glib/WebKitExtensionManager.cpp: * WebProcess/InjectedBundle/glib/InjectedBundleGlib.cpp: * WebProcess/MediaCache/WebMediaKeyStorageManager.cpp: * WebProcess/Plugins/Netscape/NetscapePluginStream.h: * WebProcess/Plugins/PluginProcessConnection.cpp: * WebProcess/WebCoreSupport/SessionStateConversion.cpp: * WebProcess/WebPage/gtk/WebInspectorUIGtk.cpp: * WebProcess/WebPage/win/WebInspectorUIWin.cpp: * WebProcess/cocoa/WebProcessCocoa.mm: Source/WebKitLegacy: * Storage/StorageAreaSync.cpp: * Storage/StorageSyncManager.cpp: * Storage/StorageTracker.cpp: Source/WebKitLegacy/mac: * Misc/WebNSFileManagerExtras.mm: * Storage/WebDatabaseProvider.mm: * WebView/WebView.mm: Source/WebKitLegacy/win: * Plugins/PluginDatabase.cpp: * Plugins/PluginPackage.h: * Plugins/PluginStream.h: * WebApplicationCache.cpp: * WebDatabaseManager.cpp: * WebDownloadCurl.cpp: * WebPreferences.cpp: * WebView.cpp: Source/WTF: * WTF.xcodeproj/project.pbxproj: * wtf/CMakeLists.txt: * wtf/FileMetadata.h: Renamed from Source/WebCore/platform/FileMetadata.h. * wtf/FileSystem.cpp: Renamed from Source/WebCore/platform/FileSystem.cpp. * wtf/FileSystem.h: Renamed from Source/WebCore/platform/FileSystem.h. * wtf/PlatformGTK.cmake: * wtf/PlatformMac.cmake: * wtf/PlatformPlayStation.cmake: * wtf/PlatformWPE.cmake: * wtf/PlatformWin.cmake: * wtf/cf/FileSystemCF.cpp: Renamed from Source/WebCore/platform/cf/FileSystemCF.cpp. * wtf/cocoa/FileSystemCocoa.mm: Renamed from Source/WebCore/platform/cocoa/FileSystemCocoa.mm. * wtf/glib/FileSystemGlib.cpp: Renamed from Source/WebCore/platform/glib/FileSystemGlib.cpp. * wtf/mac/FileSystemMac.mm: Renamed from Source/WebCore/platform/mac/FileSystemMac.mm. * wtf/posix/FileSystemPOSIX.cpp: Renamed from Source/WebCore/platform/posix/FileSystemPOSIX.cpp. * wtf/spi/mac/MetadataSPI.h: Renamed from Source/WebCore/PAL/pal/spi/mac/MetadataSPI.h. * wtf/win/FileSystemWin.cpp: Renamed from Source/WebCore/platform/win/FileSystemWin.cpp. * wtf/win/PathWalker.cpp: Renamed from Source/WebCore/platform/win/PathWalker.cpp. * wtf/win/PathWalker.h: Renamed from Source/WebCore/platform/win/PathWalker.h. Tools: * DumpRenderTree/win/DumpRenderTree.cpp: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformGTK.cmake: * TestWebKitAPI/PlatformJSCOnly.cmake: * TestWebKitAPI/PlatformPlayStation.cmake: * TestWebKitAPI/PlatformWPE.cmake: * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: * TestWebKitAPI/Tests/WTF/FileSystem.cpp: Renamed from Tools/TestWebKitAPI/Tests/WebCore/FileSystem.cpp. * TestWebKitAPI/Tests/WebCore/FileMonitor.cpp: * TestWebKitAPI/Tests/WebCore/SecurityOrigin.cpp: * TestWebKitAPI/Tests/WebCore/SharedBufferTest.cpp: * TestWebKitAPI/Tests/WebCore/cocoa/DatabaseTrackerTest.mm: * TestWebKitAPI/Tests/WebCore/curl/Cookies.cpp: * TestWebKitAPI/Tests/WebKitCocoa/Download.mm: * TestWebKitAPI/Tests/WebKitCocoa/DownloadProgress.mm: * TestWebKitAPI/win/PlatformUtilitiesWin.cpp: Canonical link: https://commits.webkit.org/208283@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@240437 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-01-24 17:25:57 +00:00
cf/FileSystemCF.cpp
[PAL] Unify PlatformUserPreferredLanguages.h with Language.h https://bugs.webkit.org/show_bug.cgi?id=176561 Reviewed by Brent Fulgham. Source/JavaScriptCore: * runtime/IntlObject.cpp: (JSC::defaultLocale): Source/WebCore: No new tests because there is no behavior change. * CMakeLists.txt: * WebCore.xcodeproj/project.pbxproj: * accessibility/AccessibilitySVGElement.cpp: * bindings/js/JSDOMWindowBase.cpp: * bindings/js/JSWorkerGlobalScopeBase.cpp: * dom/Document.cpp: * html/HTMLInputElement.cpp: * html/HTMLMediaElement.cpp: * html/shadow/MediaControlElements.cpp: * html/track/TrackBase.cpp: * page/CaptionUserPreferences.cpp: * page/CaptionUserPreferencesMediaAF.cpp: * page/DOMWindow.cpp: * page/Navigator.cpp: * page/NavigatorBase.cpp: * platform/graphics/FontGenericFamilies.cpp: * platform/graphics/avfoundation/MediaSelectionGroupAVFObjC.mm: * platform/network/HTTPParsers.cpp: * platform/text/PlatformLocale.h: * platform/text/cf/HyphenationCF.cpp: * platform/text/mac/LocaleMac.mm: * svg/SVGTests.cpp: * testing/InternalSettings.cpp: * testing/Internals.cpp: (WebCore::Internals::resetToConsistentState): (WebCore::Internals::userPreferredLanguages const): (WebCore::Internals::setUserPreferredLanguages): Source/WebKit: * UIProcess/WebProcessPool.cpp: * WebProcess/WebProcess.cpp: (WebKit::WebProcess::userPreferredLanguagesChanged const): Source/WebKitLegacy/mac: * Misc/WebNSUserDefaultsExtras.mm: Source/WTF: WebCore/platform/Language was the only* user of PlatformUserPreferredLanguages (with 1 exception). That exception is that JavaScriptCore needed the functionality of WebCore/platform/Language, but it couldn't get it because of the layering violation, so instead it erroneously called into PlatformUserPreferredLanguages instead. This patch merges these two files into WTF so JSC gets the right function and the PAL effort has one less file to move from WebCore/platform into PAL. * WTF.xcodeproj/project.pbxproj: * wtf/CMakeLists.txt: * wtf/Language.cpp: Renamed from Source/WebCore/platform/Language.cpp. (WTF::addLanguageChangeObserver): (WTF::userPreferredLanguages): * wtf/Language.h: Renamed from Source/WebCore/platform/Language.h. * wtf/PlatformGTK.cmake: * wtf/PlatformJSCOnly.cmake: * wtf/PlatformMac.cmake: * wtf/PlatformUserPreferredLanguages.h: Removed. * wtf/PlatformWPE.cmake: * wtf/PlatformWin.cmake: * wtf/cf/LanguageCF.cpp: Renamed from Source/WTF/wtf/PlatformUserPreferredLanguagesMac.mm. (WTF::httpStyleLanguageCode): (WTF::languagePreferencesDidChange): (WTF::platformUserPreferredLanguages): * wtf/unix/LanguageUnix.cpp: Renamed from Source/WTF/wtf/PlatformUserPreferredLanguagesUnix.cpp. * wtf/win/LanguageWin.cpp: Renamed from Source/WTF/wtf/PlatformUserPreferredLanguagesWin.cpp. Canonical link: https://commits.webkit.org/193121@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@221768 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-09-07 23:11:21 +00:00
cf/LanguageCF.cpp
cf/RunLoopCF.cpp
cf/SchedulePairCF.cpp
Move URL from WebCore to WTF https://bugs.webkit.org/show_bug.cgi?id=190234 Patch by Alex Christensen <achristensen@webkit.org> on 2018-11-30 Reviewed by Keith Miller. Source/WebCore: A URL is a low-level concept that does not depend on other classes in WebCore. We are starting to use URLs in JavaScriptCore for modules. I need URL and URLParser in a place with fewer dependencies for rdar://problem/44119696 * Modules/applepay/ApplePaySession.h: * Modules/applepay/ApplePayValidateMerchantEvent.h: * Modules/applepay/PaymentCoordinator.cpp: * Modules/applepay/PaymentCoordinator.h: * Modules/applepay/PaymentCoordinatorClient.h: * Modules/applepay/PaymentSession.h: * Modules/applicationmanifest/ApplicationManifest.h: * Modules/beacon/NavigatorBeacon.cpp: * Modules/cache/DOMCache.cpp: * Modules/fetch/FetchLoader.h: * Modules/mediasession/MediaSessionMetadata.h: * Modules/mediasource/MediaSourceRegistry.cpp: * Modules/mediasource/MediaSourceRegistry.h: * Modules/mediastream/MediaStream.cpp: * Modules/mediastream/MediaStreamRegistry.cpp: * Modules/mediastream/MediaStreamRegistry.h: * Modules/navigatorcontentutils/NavigatorContentUtilsClient.h: * Modules/notifications/Notification.h: * Modules/paymentrequest/MerchantValidationEvent.h: * Modules/paymentrequest/PaymentRequest.h: * Modules/plugins/PluginReplacement.h: * Modules/webaudio/AudioContext.h: * Modules/websockets/ThreadableWebSocketChannel.h: * Modules/websockets/WebSocket.h: * Modules/websockets/WebSocketHandshake.cpp: * Modules/websockets/WebSocketHandshake.h: * Modules/websockets/WorkerThreadableWebSocketChannel.h: * PlatformMac.cmake: * PlatformWin.cmake: * Sources.txt: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * bindings/js/CachedModuleScriptLoader.h: * bindings/js/CachedScriptFetcher.h: * bindings/js/ScriptController.cpp: (WebCore::ScriptController::executeIfJavaScriptURL): * bindings/js/ScriptController.h: * bindings/js/ScriptModuleLoader.h: * bindings/js/ScriptSourceCode.h: * bindings/scripts/CodeGeneratorJS.pm: (GenerateImplementation): * bindings/scripts/test/JS/JSInterfaceName.cpp: * bindings/scripts/test/JS/JSMapLike.cpp: * bindings/scripts/test/JS/JSReadOnlyMapLike.cpp: * bindings/scripts/test/JS/JSTestActiveDOMObject.cpp: * bindings/scripts/test/JS/JSTestCEReactions.cpp: * bindings/scripts/test/JS/JSTestCEReactionsStringifier.cpp: * bindings/scripts/test/JS/JSTestCallTracer.cpp: * bindings/scripts/test/JS/JSTestClassWithJSBuiltinConstructor.cpp: * bindings/scripts/test/JS/JSTestCustomConstructorWithNoInterfaceObject.cpp: * bindings/scripts/test/JS/JSTestDOMJIT.cpp: * bindings/scripts/test/JS/JSTestEnabledBySetting.cpp: * bindings/scripts/test/JS/JSTestEventConstructor.cpp: * bindings/scripts/test/JS/JSTestEventTarget.cpp: * bindings/scripts/test/JS/JSTestException.cpp: * bindings/scripts/test/JS/JSTestGenerateIsReachable.cpp: * bindings/scripts/test/JS/JSTestGlobalObject.cpp: * bindings/scripts/test/JS/JSTestIndexedSetterNoIdentifier.cpp: * bindings/scripts/test/JS/JSTestIndexedSetterThrowingException.cpp: * bindings/scripts/test/JS/JSTestIndexedSetterWithIdentifier.cpp: * bindings/scripts/test/JS/JSTestInterface.cpp: * bindings/scripts/test/JS/JSTestInterfaceLeadingUnderscore.cpp: * bindings/scripts/test/JS/JSTestIterable.cpp: * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp: * bindings/scripts/test/JS/JSTestNamedAndIndexedSetterNoIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedAndIndexedSetterThrowingException.cpp: * bindings/scripts/test/JS/JSTestNamedAndIndexedSetterWithIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedConstructor.cpp: * bindings/scripts/test/JS/JSTestNamedDeleterNoIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedDeleterThrowingException.cpp: * bindings/scripts/test/JS/JSTestNamedDeleterWithIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedDeleterWithIndexedGetter.cpp: * bindings/scripts/test/JS/JSTestNamedGetterCallWith.cpp: * bindings/scripts/test/JS/JSTestNamedGetterNoIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedGetterWithIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedSetterNoIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedSetterThrowingException.cpp: * bindings/scripts/test/JS/JSTestNamedSetterWithIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedSetterWithIndexedGetter.cpp: * bindings/scripts/test/JS/JSTestNamedSetterWithIndexedGetterAndSetter.cpp: * bindings/scripts/test/JS/JSTestNamedSetterWithOverrideBuiltins.cpp: * bindings/scripts/test/JS/JSTestNamedSetterWithUnforgableProperties.cpp: * bindings/scripts/test/JS/JSTestNamedSetterWithUnforgablePropertiesAndOverrideBuiltins.cpp: * bindings/scripts/test/JS/JSTestNode.cpp: * bindings/scripts/test/JS/JSTestObj.cpp: * bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp: * bindings/scripts/test/JS/JSTestOverloadedConstructorsWithSequence.cpp: * bindings/scripts/test/JS/JSTestOverrideBuiltins.cpp: * bindings/scripts/test/JS/JSTestPluginInterface.cpp: * bindings/scripts/test/JS/JSTestPromiseRejectionEvent.cpp: * bindings/scripts/test/JS/JSTestSerialization.cpp: * bindings/scripts/test/JS/JSTestSerializationIndirectInheritance.cpp: * bindings/scripts/test/JS/JSTestSerializationInherit.cpp: * bindings/scripts/test/JS/JSTestSerializationInheritFinal.cpp: * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp: * bindings/scripts/test/JS/JSTestStringifier.cpp: * bindings/scripts/test/JS/JSTestStringifierAnonymousOperation.cpp: * bindings/scripts/test/JS/JSTestStringifierNamedOperation.cpp: * bindings/scripts/test/JS/JSTestStringifierOperationImplementedAs.cpp: * bindings/scripts/test/JS/JSTestStringifierOperationNamedToString.cpp: * bindings/scripts/test/JS/JSTestStringifierReadOnlyAttribute.cpp: * bindings/scripts/test/JS/JSTestStringifierReadWriteAttribute.cpp: * bindings/scripts/test/JS/JSTestTypedefs.cpp: * contentextensions/ContentExtensionsBackend.cpp: (WebCore::ContentExtensions::ContentExtensionsBackend::processContentExtensionRulesForLoad): (WebCore::ContentExtensions::ContentExtensionsBackend::processContentExtensionRulesForPingLoad): (WebCore::ContentExtensions::applyBlockedStatusToRequest): * contentextensions/ContentExtensionsBackend.h: * css/CSSValue.h: * css/StyleProperties.h: * css/StyleResolver.h: * css/StyleSheet.h: * css/StyleSheetContents.h: * css/parser/CSSParserContext.h: (WebCore::CSSParserContextHash::hash): (WTF::HashTraits<WebCore::CSSParserContext>::constructDeletedValue): * css/parser/CSSParserIdioms.h: * dom/DataTransfer.cpp: (WebCore::DataTransfer::setDataFromItemList): * dom/Document.cpp: (WebCore::Document::setURL): (WebCore::Document::processHttpEquiv): (WebCore::Document::completeURL const): (WebCore::Document::ensureTemplateDocument): * dom/Document.h: (WebCore::Document::urlForBindings const): * dom/Element.cpp: (WebCore::Element::isJavaScriptURLAttribute const): * dom/InlineStyleSheetOwner.cpp: (WebCore::parserContextForElement): * dom/Node.cpp: (WebCore::Node::baseURI const): * dom/Node.h: * dom/ScriptElement.h: * dom/ScriptExecutionContext.h: * dom/SecurityContext.h: * editing/Editor.cpp: (WebCore::Editor::pasteboardWriterURL): * editing/Editor.h: * editing/MarkupAccumulator.cpp: (WebCore::MarkupAccumulator::appendQuotedURLAttributeValue): * editing/cocoa/DataDetection.h: * editing/cocoa/EditorCocoa.mm: (WebCore::Editor::userVisibleString): * editing/cocoa/WebContentReaderCocoa.mm: (WebCore::replaceRichContentWithAttachments): (WebCore::WebContentReader::readWebArchive): * editing/mac/EditorMac.mm: (WebCore::Editor::plainTextFromPasteboard): (WebCore::Editor::writeImageToPasteboard): * editing/markup.cpp: (WebCore::removeSubresourceURLAttributes): (WebCore::createFragmentFromMarkup): * editing/markup.h: * fileapi/AsyncFileStream.cpp: * fileapi/AsyncFileStream.h: * fileapi/Blob.h: * fileapi/BlobURL.cpp: * fileapi/BlobURL.h: * fileapi/File.h: * fileapi/FileReaderLoader.h: * fileapi/ThreadableBlobRegistry.h: * history/CachedFrame.h: * history/HistoryItem.h: * html/DOMURL.cpp: (WebCore::DOMURL::create): * html/DOMURL.h: * html/HTMLAttachmentElement.cpp: (WebCore::HTMLAttachmentElement::archiveResourceURL): * html/HTMLFrameElementBase.cpp: (WebCore::HTMLFrameElementBase::isURLAllowed const): (WebCore::HTMLFrameElementBase::openURL): (WebCore::HTMLFrameElementBase::setLocation): * html/HTMLInputElement.h: * html/HTMLLinkElement.h: * html/HTMLMediaElement.cpp: (WTF::LogArgument<URL>::toString): (WTF::LogArgument<WebCore::URL>::toString): Deleted. * html/HTMLPlugInImageElement.cpp: (WebCore::HTMLPlugInImageElement::allowedToLoadFrameURL): * html/ImageBitmap.h: * html/MediaFragmentURIParser.h: * html/PublicURLManager.cpp: * html/PublicURLManager.h: * html/URLInputType.cpp: * html/URLRegistry.h: * html/URLSearchParams.cpp: (WebCore::URLSearchParams::URLSearchParams): (WebCore::URLSearchParams::toString const): (WebCore::URLSearchParams::updateURL): (WebCore::URLSearchParams::updateFromAssociatedURL): * html/URLUtils.h: (WebCore::URLUtils<T>::setHost): (WebCore::URLUtils<T>::setPort): * html/canvas/CanvasRenderingContext.cpp: * html/canvas/CanvasRenderingContext.h: * html/parser/HTMLParserIdioms.cpp: * html/parser/XSSAuditor.cpp: (WebCore::semicolonSeparatedValueContainsJavaScriptURL): (WebCore::XSSAuditor::filterScriptToken): (WebCore::XSSAuditor::filterObjectToken): (WebCore::XSSAuditor::filterParamToken): (WebCore::XSSAuditor::filterEmbedToken): (WebCore::XSSAuditor::filterFormToken): (WebCore::XSSAuditor::filterInputToken): (WebCore::XSSAuditor::filterButtonToken): (WebCore::XSSAuditor::eraseDangerousAttributesIfInjected): (WebCore::XSSAuditor::isLikelySafeResource): * html/parser/XSSAuditor.h: * html/parser/XSSAuditorDelegate.h: * inspector/InspectorFrontendHost.cpp: (WebCore::InspectorFrontendHost::openInNewTab): * inspector/InspectorInstrumentation.h: * inspector/agents/InspectorNetworkAgent.cpp: * inspector/agents/InspectorNetworkAgent.h: * inspector/agents/InspectorPageAgent.h: * inspector/agents/InspectorWorkerAgent.h: * loader/ApplicationManifestLoader.h: * loader/CookieJar.h: * loader/CrossOriginAccessControl.h: * loader/CrossOriginPreflightResultCache.h: * loader/DocumentLoader.cpp: (WebCore::DocumentLoader::willSendRequest): (WebCore::DocumentLoader::maybeLoadEmpty): * loader/DocumentLoader.h: (WebCore::DocumentLoader::serverRedirectSourceForHistory const): * loader/DocumentWriter.h: * loader/FormSubmission.h: * loader/FrameLoader.cpp: (WebCore::FrameLoader::submitForm): (WebCore::FrameLoader::receivedFirstData): (WebCore::FrameLoader::loadWithDocumentLoader): (WebCore::FrameLoader::continueLoadAfterNavigationPolicy): (WebCore::createWindow): * loader/FrameLoaderClient.h: * loader/HistoryController.cpp: (WebCore::HistoryController::currentItemShouldBeReplaced const): (WebCore::HistoryController::initializeItem): * loader/LinkLoader.h: * loader/LoadTiming.h: * loader/LoaderStrategy.h: * loader/MixedContentChecker.cpp: (WebCore::MixedContentChecker::checkFormForMixedContent const): * loader/MixedContentChecker.h: * loader/NavigationScheduler.cpp: (WebCore::NavigationScheduler::shouldScheduleNavigation const): * loader/NavigationScheduler.h: * loader/PingLoader.h: * loader/PolicyChecker.cpp: (WebCore::PolicyChecker::checkNavigationPolicy): * loader/ResourceLoadInfo.h: * loader/ResourceLoadObserver.cpp: (WebCore::ResourceLoadObserver::requestStorageAccessUnderOpener): * loader/ResourceLoadObserver.h: * loader/ResourceLoadStatistics.h: * loader/ResourceLoader.h: * loader/ResourceTiming.h: * loader/SubframeLoader.cpp: (WebCore::SubframeLoader::requestFrame): * loader/SubframeLoader.h: * loader/SubstituteData.h: * loader/appcache/ApplicationCache.h: * loader/appcache/ApplicationCacheGroup.h: * loader/appcache/ApplicationCacheHost.h: * loader/appcache/ApplicationCacheStorage.cpp: * loader/appcache/ApplicationCacheStorage.h: * loader/appcache/ManifestParser.cpp: * loader/appcache/ManifestParser.h: * loader/archive/ArchiveResourceCollection.h: * loader/archive/cf/LegacyWebArchive.cpp: (WebCore::LegacyWebArchive::createFromSelection): * loader/cache/CachedResource.cpp: * loader/cache/CachedResourceLoader.h: * loader/cache/CachedStyleSheetClient.h: * loader/cache/MemoryCache.h: * loader/icon/IconLoader.h: * loader/mac/LoaderNSURLExtras.mm: * page/CaptionUserPreferencesMediaAF.cpp: * page/ChromeClient.h: * page/ClientOrigin.h: * page/ContextMenuClient.h: * page/ContextMenuController.cpp: (WebCore::ContextMenuController::checkOrEnableIfNeeded const): * page/DOMWindow.cpp: (WebCore::DOMWindow::isInsecureScriptAccess): * page/DragController.cpp: (WebCore::DragController::startDrag): * page/DragController.h: * page/EventSource.h: * page/Frame.h: * page/FrameView.h: * page/History.h: * page/Location.cpp: (WebCore::Location::url const): (WebCore::Location::reload): * page/Location.h: * page/Page.h: * page/PageSerializer.h: * page/Performance.h: * page/PerformanceResourceTiming.cpp: * page/SecurityOrigin.cpp: (WebCore::SecurityOrigin::SecurityOrigin): (WebCore::SecurityOrigin::create): * page/SecurityOrigin.h: * page/SecurityOriginData.h: * page/SecurityOriginHash.h: * page/SecurityPolicy.cpp: (WebCore::SecurityPolicy::shouldInheritSecurityOriginFromOwner): * page/SecurityPolicy.h: * page/SettingsBase.h: * page/ShareData.h: * page/SocketProvider.h: * page/UserContentProvider.h: * page/UserContentURLPattern.cpp: * page/UserContentURLPattern.h: * page/UserScript.h: * page/UserStyleSheet.h: * page/VisitedLinkStore.h: * page/csp/ContentSecurityPolicy.h: * page/csp/ContentSecurityPolicyClient.h: * page/csp/ContentSecurityPolicyDirectiveList.h: * page/csp/ContentSecurityPolicySource.cpp: (WebCore::ContentSecurityPolicySource::portMatches const): * page/csp/ContentSecurityPolicySource.h: * page/csp/ContentSecurityPolicySourceList.cpp: * page/csp/ContentSecurityPolicySourceList.h: * page/csp/ContentSecurityPolicySourceListDirective.cpp: * platform/ContentFilterUnblockHandler.h: * platform/ContextMenuItem.h: * platform/Cookie.h: * platform/CookiesStrategy.h: * platform/DragData.h: * platform/DragImage.h: * platform/FileStream.h: * platform/LinkIcon.h: * platform/Pasteboard.cpp: (WebCore::Pasteboard::canExposeURLToDOMWhenPasteboardContainsFiles): * platform/Pasteboard.h: * platform/PasteboardStrategy.h: * platform/PasteboardWriterData.cpp: (WebCore::PasteboardWriterData::setURLData): (WebCore::PasteboardWriterData::setURL): Deleted. * platform/PasteboardWriterData.h: * platform/PlatformPasteboard.h: * platform/PromisedAttachmentInfo.h: * platform/SSLKeyGenerator.h: * platform/SchemeRegistry.cpp: (WebCore::SchemeRegistry::isBuiltinScheme): * platform/SharedBuffer.h: * platform/SharedStringHash.cpp: * platform/SharedStringHash.h: * platform/SourcesSoup.txt: * platform/UserAgent.h: * platform/UserAgentQuirks.cpp: * platform/UserAgentQuirks.h: * platform/cocoa/NetworkExtensionContentFilter.h: * platform/cocoa/NetworkExtensionContentFilter.mm: (WebCore::NetworkExtensionContentFilter::willSendRequest): * platform/glib/SSLKeyGeneratorGLib.cpp: Copied from Source/WebCore/page/ShareData.h. (WebCore::getSupportedKeySizes): (WebCore::signedPublicKeyAndChallengeString): * platform/glib/UserAgentGLib.cpp: * platform/graphics/GraphicsContext.h: * platform/graphics/Image.cpp: * platform/graphics/Image.h: * platform/graphics/ImageObserver.h: * platform/graphics/ImageSource.cpp: * platform/graphics/ImageSource.h: * platform/graphics/MediaPlayer.h: * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp: * platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp: * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: * platform/graphics/cg/GraphicsContextCG.cpp: * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp: * platform/graphics/gstreamer/mse/MediaPlayerPrivateGStreamerMSE.cpp: * platform/graphics/gstreamer/mse/WebKitMediaSourceGStreamer.cpp: (webKitMediaSrcSetUri): * platform/graphics/iso/ISOVTTCue.cpp: * platform/graphics/win/GraphicsContextDirect2D.cpp: * platform/gtk/DragImageGtk.cpp: * platform/gtk/PasteboardGtk.cpp: * platform/gtk/PlatformPasteboardGtk.cpp: * platform/gtk/SelectionData.h: * platform/ios/PasteboardIOS.mm: * platform/ios/PlatformPasteboardIOS.mm: (WebCore::PlatformPasteboard::write): * platform/ios/QuickLook.h: * platform/mac/DragDataMac.mm: (WebCore::DragData::asPlainText const): * platform/mac/DragImageMac.mm: * platform/mac/FileSystemMac.mm: (WebCore::FileSystem::setMetadataURL): * platform/mac/PasteboardMac.mm: * platform/mac/PasteboardWriter.mm: (WebCore::createPasteboardWriter): * platform/mac/PlatformPasteboardMac.mm: * platform/mac/PublicSuffixMac.mm: (WebCore::decodeHostName): * platform/mac/SSLKeyGeneratorMac.mm: * platform/mac/WebCoreNSURLExtras.h: * platform/mac/WebCoreNSURLExtras.mm: (WebCore::isArmenianLookalikeCharacter): Deleted. (WebCore::isArmenianScriptCharacter): Deleted. (WebCore::isASCIIDigitOrValidHostCharacter): Deleted. (WebCore::isLookalikeCharacter): Deleted. (WebCore::whiteListIDNScript): Deleted. (WebCore::readIDNScriptWhiteListFile): Deleted. (WebCore::allCharactersInIDNScriptWhiteList): Deleted. (WebCore::isSecondLevelDomainNameAllowedByTLDRules): Deleted. (WebCore::isRussianDomainNameCharacter): Deleted. (WebCore::allCharactersAllowedByTLDRules): Deleted. (WebCore::mapHostNameWithRange): Deleted. (WebCore::hostNameNeedsDecodingWithRange): Deleted. (WebCore::hostNameNeedsEncodingWithRange): Deleted. (WebCore::decodeHostNameWithRange): Deleted. (WebCore::encodeHostNameWithRange): Deleted. (WebCore::decodeHostName): Deleted. (WebCore::encodeHostName): Deleted. (WebCore::collectRangesThatNeedMapping): Deleted. (WebCore::collectRangesThatNeedEncoding): Deleted. (WebCore::collectRangesThatNeedDecoding): Deleted. (WebCore::applyHostNameFunctionToMailToURLString): Deleted. (WebCore::applyHostNameFunctionToURLString): Deleted. (WebCore::mapHostNames): Deleted. (WebCore::stringByTrimmingWhitespace): Deleted. (WebCore::URLByTruncatingOneCharacterBeforeComponent): Deleted. (WebCore::URLByRemovingResourceSpecifier): Deleted. (WebCore::URLWithData): Deleted. (WebCore::dataWithUserTypedString): Deleted. (WebCore::URLWithUserTypedString): Deleted. (WebCore::URLWithUserTypedStringDeprecated): Deleted. (WebCore::hasQuestionMarkOnlyQueryString): Deleted. (WebCore::dataForURLComponentType): Deleted. (WebCore::URLByRemovingComponentAndSubsequentCharacter): Deleted. (WebCore::URLByRemovingUserInfo): Deleted. (WebCore::originalURLData): Deleted. (WebCore::createStringWithEscapedUnsafeCharacters): Deleted. (WebCore::userVisibleString): Deleted. (WebCore::isUserVisibleURL): Deleted. (WebCore::rangeOfURLScheme): Deleted. (WebCore::looksLikeAbsoluteURL): Deleted. * platform/mediastream/MediaEndpointConfiguration.h: * platform/network/BlobPart.h: * platform/network/BlobRegistry.h: * platform/network/BlobRegistryImpl.h: * platform/network/BlobResourceHandle.cpp: * platform/network/CookieRequestHeaderFieldProxy.h: * platform/network/CredentialStorage.cpp: * platform/network/CredentialStorage.h: * platform/network/DataURLDecoder.cpp: * platform/network/DataURLDecoder.h: * platform/network/FormData.h: * platform/network/ProxyServer.h: * platform/network/ResourceErrorBase.h: * platform/network/ResourceHandle.cpp: (WebCore::ResourceHandle::didReceiveResponse): * platform/network/ResourceHandle.h: * platform/network/ResourceHandleClient.h: * platform/network/ResourceRequestBase.cpp: (WebCore::ResourceRequestBase::redirectedRequest const): * platform/network/ResourceRequestBase.h: * platform/network/ResourceResponseBase.h: * platform/network/SocketStreamHandle.h: * platform/network/cf/DNSResolveQueueCFNet.cpp: * platform/network/cf/NetworkStorageSessionCFNet.cpp: * platform/network/cf/ProxyServerCFNet.cpp: * platform/network/cf/ResourceErrorCF.cpp: * platform/network/cocoa/NetworkStorageSessionCocoa.mm: * platform/network/curl/CookieJarCurlDatabase.cpp: Added. (WebCore::cookiesForSession): (WebCore::CookieJarCurlDatabase::setCookiesFromDOM const): (WebCore::CookieJarCurlDatabase::setCookiesFromHTTPResponse const): (WebCore::CookieJarCurlDatabase::cookiesForDOM const): (WebCore::CookieJarCurlDatabase::cookieRequestHeaderFieldValue const): (WebCore::CookieJarCurlDatabase::cookiesEnabled const): (WebCore::CookieJarCurlDatabase::getRawCookies const): (WebCore::CookieJarCurlDatabase::deleteCookie const): (WebCore::CookieJarCurlDatabase::getHostnamesWithCookies const): (WebCore::CookieJarCurlDatabase::deleteCookiesForHostnames const): (WebCore::CookieJarCurlDatabase::deleteAllCookies const): (WebCore::CookieJarCurlDatabase::deleteAllCookiesModifiedSince const): * platform/network/curl/CookieJarDB.cpp: * platform/network/curl/CookieUtil.h: * platform/network/curl/CurlContext.h: * platform/network/curl/CurlProxySettings.h: * platform/network/curl/CurlResponse.h: * platform/network/curl/NetworkStorageSessionCurl.cpp: * platform/network/curl/ProxyServerCurl.cpp: * platform/network/curl/SocketStreamHandleImplCurl.cpp: * platform/network/mac/ResourceErrorMac.mm: * platform/network/soup/NetworkStorageSessionSoup.cpp: * platform/network/soup/ProxyServerSoup.cpp: * platform/network/soup/ResourceHandleSoup.cpp: * platform/network/soup/ResourceRequest.h: * platform/network/soup/ResourceRequestSoup.cpp: * platform/network/soup/SocketStreamHandleImplSoup.cpp: * platform/network/soup/SoupNetworkSession.cpp: * platform/network/soup/SoupNetworkSession.h: * platform/text/TextEncoding.h: * platform/win/BString.cpp: * platform/win/BString.h: * platform/win/ClipboardUtilitiesWin.cpp: (WebCore::markupToCFHTML): * platform/win/ClipboardUtilitiesWin.h: * platform/win/DragImageWin.cpp: * platform/win/PasteboardWin.cpp: * plugins/PluginData.h: * rendering/HitTestResult.h: * rendering/RenderAttachment.cpp: * svg/SVGImageLoader.cpp: (WebCore::SVGImageLoader::sourceURI const): * svg/SVGURIReference.cpp: * svg/graphics/SVGImage.h: * svg/graphics/SVGImageCache.h: * svg/graphics/SVGImageForContainer.h: * testing/Internals.cpp: (WebCore::Internals::resetToConsistentState): * testing/Internals.mm: (WebCore::Internals::userVisibleString): * testing/MockContentFilter.cpp: (WebCore::MockContentFilter::willSendRequest): * testing/MockPaymentCoordinator.cpp: * testing/js/WebCoreTestSupport.cpp: * workers/AbstractWorker.h: * workers/WorkerGlobalScope.h: * workers/WorkerGlobalScopeProxy.h: * workers/WorkerInspectorProxy.h: * workers/WorkerLocation.h: * workers/WorkerScriptLoader.h: * workers/WorkerThread.cpp: * workers/WorkerThread.h: * workers/service/ServiceWorker.h: * workers/service/ServiceWorkerClientData.h: * workers/service/ServiceWorkerContainer.cpp: * workers/service/ServiceWorkerContextData.h: * workers/service/ServiceWorkerData.h: * workers/service/ServiceWorkerJobData.h: * workers/service/ServiceWorkerRegistrationKey.cpp: * workers/service/ServiceWorkerRegistrationKey.h: (WTF::HashTraits<WebCore::ServiceWorkerRegistrationKey>::constructDeletedValue): * worklets/WorkletGlobalScope.h: * xml/XMLHttpRequest.h: Source/WebKit: * NetworkProcess/Cookies/WebCookieManager.cpp: * NetworkProcess/Cookies/WebCookieManager.h: * NetworkProcess/Cookies/WebCookieManager.messages.in: * NetworkProcess/CustomProtocols/Cocoa/LegacyCustomProtocolManagerCocoa.mm: * NetworkProcess/Downloads/Download.h: * NetworkProcess/Downloads/DownloadManager.cpp: (WebKit::DownloadManager::publishDownloadProgress): * NetworkProcess/Downloads/DownloadManager.h: * NetworkProcess/Downloads/PendingDownload.cpp: (WebKit::PendingDownload::publishProgress): * NetworkProcess/Downloads/PendingDownload.h: * NetworkProcess/Downloads/cocoa/DownloadCocoa.mm: (WebKit::Download::publishProgress): * NetworkProcess/FileAPI/NetworkBlobRegistry.cpp: (WebKit::NetworkBlobRegistry::registerBlobURL): (WebKit::NetworkBlobRegistry::registerBlobURLForSlice): (WebKit::NetworkBlobRegistry::unregisterBlobURL): (WebKit::NetworkBlobRegistry::blobSize): (WebKit::NetworkBlobRegistry::filesInBlob): * NetworkProcess/FileAPI/NetworkBlobRegistry.h: * NetworkProcess/NetworkConnectionToWebProcess.h: * NetworkProcess/NetworkConnectionToWebProcess.messages.in: * NetworkProcess/NetworkDataTask.cpp: (WebKit::NetworkDataTask::didReceiveResponse): * NetworkProcess/NetworkDataTaskBlob.cpp: * NetworkProcess/NetworkLoadChecker.h: (WebKit::NetworkLoadChecker::setContentExtensionController): (WebKit::NetworkLoadChecker::url const): * NetworkProcess/NetworkProcess.cpp: (WebKit::NetworkProcess::writeBlobToFilePath): (WebKit::NetworkProcess::publishDownloadProgress): (WebKit::NetworkProcess::preconnectTo): * NetworkProcess/NetworkProcess.h: * NetworkProcess/NetworkProcess.messages.in: * NetworkProcess/NetworkResourceLoadParameters.h: * NetworkProcess/NetworkResourceLoader.cpp: (WebKit::logBlockedCookieInformation): (WebKit::logCookieInformationInternal): * NetworkProcess/NetworkResourceLoader.h: * NetworkProcess/NetworkSocketStream.cpp: (WebKit::NetworkSocketStream::create): * NetworkProcess/NetworkSocketStream.h: * NetworkProcess/PingLoad.h: * NetworkProcess/ServiceWorker/WebSWServerConnection.h: * NetworkProcess/ServiceWorker/WebSWServerConnection.messages.in: * NetworkProcess/ServiceWorker/WebSWServerToContextConnection.messages.in: * NetworkProcess/cache/CacheStorageEngine.cpp: (WebKit::CacheStorage::Engine::retrieveRecords): * NetworkProcess/cache/CacheStorageEngine.h: * NetworkProcess/cache/CacheStorageEngineCache.h: * NetworkProcess/cache/CacheStorageEngineConnection.cpp: (WebKit::CacheStorageEngineConnection::retrieveRecords): * NetworkProcess/cache/CacheStorageEngineConnection.h: * NetworkProcess/cache/CacheStorageEngineConnection.messages.in: * NetworkProcess/cache/NetworkCache.h: * NetworkProcess/cache/NetworkCacheStatistics.cpp: (WebKit::NetworkCache::Statistics::recordRetrievedCachedEntry): (WebKit::NetworkCache::Statistics::recordRevalidationSuccess): * NetworkProcess/cache/NetworkCacheSubresourcesEntry.h: (WebKit::NetworkCache::SubresourceInfo::firstPartyForCookies const): * NetworkProcess/capture/NetworkCaptureEvent.cpp: (WebKit::NetworkCapture::Request::operator WebCore::ResourceRequest const): (WebKit::NetworkCapture::Response::operator WebCore::ResourceResponse const): (WebKit::NetworkCapture::Error::operator WebCore::ResourceError const): * NetworkProcess/capture/NetworkCaptureManager.cpp: (WebKit::NetworkCapture::Manager::findBestFuzzyMatch): (WebKit::NetworkCapture::Manager::fuzzyMatchURLs): (WebKit::NetworkCapture::Manager::urlIdentifyingCommonDomain): * NetworkProcess/capture/NetworkCaptureManager.h: * NetworkProcess/capture/NetworkCaptureResource.cpp: (WebKit::NetworkCapture::Resource::url): (WebKit::NetworkCapture::Resource::queryParameters): * NetworkProcess/capture/NetworkCaptureResource.h: * NetworkProcess/cocoa/NetworkDataTaskCocoa.mm: (WebKit::NetworkDataTaskCocoa::willPerformHTTPRedirection): * NetworkProcess/cocoa/NetworkProcessCocoa.mm: (WebKit::NetworkProcess::deleteHSTSCacheForHostNames): * NetworkProcess/cocoa/NetworkSessionCocoa.mm: (-[WKNetworkSessionDelegate URLSession:task:didReceiveChallenge:completionHandler:]): * PluginProcess/mac/PluginProcessMac.mm: (WebKit::openCFURLRef): (WebKit::replacedNSWorkspace_launchApplicationAtURL_options_configuration_error): * Shared/API/APIURL.h: (API::URL::create): (API::URL::equals): (API::URL::URL): (API::URL::url const): (API::URL::parseURLIfNecessary const): * Shared/API/APIUserContentURLPattern.h: (API::UserContentURLPattern::matchesURL const): * Shared/API/c/WKURLRequest.cpp: * Shared/API/c/WKURLResponse.cpp: * Shared/API/c/cf/WKURLCF.mm: (WKURLCreateWithCFURL): (WKURLCopyCFURL): * Shared/API/glib/WebKitURIRequest.cpp: * Shared/API/glib/WebKitURIResponse.cpp: * Shared/APIWebArchiveResource.mm: (API::WebArchiveResource::WebArchiveResource): * Shared/AssistedNodeInformation.h: * Shared/Cocoa/WKNSURLExtras.mm: (-[NSURL _web_originalDataAsWTFString]): (): Deleted. * Shared/SessionState.h: * Shared/WebBackForwardListItem.cpp: (WebKit::WebBackForwardListItem::itemIsInSameDocument const): * Shared/WebCoreArgumentCoders.cpp: * Shared/WebCoreArgumentCoders.h: * Shared/WebErrors.h: * Shared/WebHitTestResultData.cpp: * Shared/cf/ArgumentCodersCF.cpp: (IPC::encode): (IPC::decode): * Shared/gtk/WebErrorsGtk.cpp: * Shared/ios/InteractionInformationAtPosition.h: * UIProcess/API/APIHTTPCookieStore.h: * UIProcess/API/APINavigation.cpp: (API::Navigation::appendRedirectionURL): * UIProcess/API/APINavigation.h: (API::Navigation::takeRedirectChain): * UIProcess/API/APINavigationAction.h: * UIProcess/API/APINavigationClient.h: (API::NavigationClient::signedPublicKeyAndChallengeString): (API::NavigationClient::contentRuleListNotification): (API::NavigationClient::webGLLoadPolicy const): (API::NavigationClient::resolveWebGLLoadPolicy const): * UIProcess/API/APIUIClient.h: (API::UIClient::saveDataToFileInDownloadsFolder): * UIProcess/API/APIUserScript.cpp: (API::UserScript::generateUniqueURL): * UIProcess/API/APIUserScript.h: * UIProcess/API/APIUserStyleSheet.cpp: (API::UserStyleSheet::generateUniqueURL): * UIProcess/API/APIUserStyleSheet.h: * UIProcess/API/C/WKOpenPanelResultListener.cpp: (filePathsFromFileURLs): * UIProcess/API/C/WKPage.cpp: (WKPageLoadPlainTextStringWithUserData): (WKPageSetPageUIClient): (WKPageSetPageNavigationClient): * UIProcess/API/C/WKPageGroup.cpp: (WKPageGroupAddUserStyleSheet): (WKPageGroupAddUserScript): * UIProcess/API/C/WKWebsiteDataStoreRef.cpp: (WKWebsiteDataStoreSetResourceLoadStatisticsPrevalentResourceForDebugMode): (WKWebsiteDataStoreSetStatisticsLastSeen): (WKWebsiteDataStoreSetStatisticsPrevalentResource): (WKWebsiteDataStoreSetStatisticsVeryPrevalentResource): (WKWebsiteDataStoreIsStatisticsPrevalentResource): (WKWebsiteDataStoreIsStatisticsVeryPrevalentResource): (WKWebsiteDataStoreIsStatisticsRegisteredAsSubresourceUnder): (WKWebsiteDataStoreIsStatisticsRegisteredAsSubFrameUnder): (WKWebsiteDataStoreIsStatisticsRegisteredAsRedirectingTo): (WKWebsiteDataStoreSetStatisticsHasHadUserInteraction): (WKWebsiteDataStoreIsStatisticsHasHadUserInteraction): (WKWebsiteDataStoreSetStatisticsGrandfathered): (WKWebsiteDataStoreIsStatisticsGrandfathered): (WKWebsiteDataStoreSetStatisticsSubframeUnderTopFrameOrigin): (WKWebsiteDataStoreSetStatisticsSubresourceUnderTopFrameOrigin): (WKWebsiteDataStoreSetStatisticsSubresourceUniqueRedirectTo): (WKWebsiteDataStoreSetStatisticsSubresourceUniqueRedirectFrom): (WKWebsiteDataStoreSetStatisticsTopFrameUniqueRedirectTo): (WKWebsiteDataStoreSetStatisticsTopFrameUniqueRedirectFrom): * UIProcess/API/Cocoa/WKHTTPCookieStore.mm: * UIProcess/API/Cocoa/WKUserScript.mm: (-[WKUserScript _initWithSource:injectionTime:forMainFrameOnly:legacyWhitelist:legacyBlacklist:associatedURL:userContentWorld:]): * UIProcess/API/Cocoa/WKWebView.mm: (-[WKWebView _showSafeBrowsingWarning:completionHandler:]): (-[WKWebView _showSafeBrowsingWarningWithTitle:warning:details:completionHandler:]): * UIProcess/API/Cocoa/WKWebViewConfiguration.mm: (-[WKWebViewConfiguration setURLSchemeHandler:forURLScheme:]): (-[WKWebViewConfiguration urlSchemeHandlerForURLScheme:]): * UIProcess/API/Cocoa/WKWebViewInternal.h: * UIProcess/API/Cocoa/WKWebsiteDataStore.mm: * UIProcess/API/Cocoa/_WKApplicationManifest.mm: (-[_WKApplicationManifest initWithCoder:]): (+[_WKApplicationManifest applicationManifestFromJSON:manifestURL:documentURL:]): * UIProcess/API/Cocoa/_WKUserStyleSheet.mm: (-[_WKUserStyleSheet initWithSource:forMainFrameOnly:legacyWhitelist:legacyBlacklist:baseURL:userContentWorld:]): * UIProcess/API/glib/IconDatabase.cpp: * UIProcess/API/glib/WebKitCookieManager.cpp: (webkit_cookie_manager_get_cookies): * UIProcess/API/glib/WebKitFileChooserRequest.cpp: * UIProcess/API/glib/WebKitSecurityOrigin.cpp: (webkit_security_origin_new_for_uri): * UIProcess/API/glib/WebKitUIClient.cpp: * UIProcess/API/glib/WebKitURISchemeRequest.cpp: * UIProcess/API/glib/WebKitWebView.cpp: (webkit_web_view_load_plain_text): * UIProcess/API/gtk/WebKitRemoteInspectorProtocolHandler.cpp: * UIProcess/ApplePay/WebPaymentCoordinatorProxy.cpp: (WebKit::WebPaymentCoordinatorProxy::showPaymentUI): (WebKit::WebPaymentCoordinatorProxy::validateMerchant): * UIProcess/ApplePay/WebPaymentCoordinatorProxy.h: * UIProcess/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.h: * UIProcess/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm: (WebKit::toPKPaymentRequest): * UIProcess/ApplePay/ios/WebPaymentCoordinatorProxyIOS.mm: (WebKit::WebPaymentCoordinatorProxy::platformShowPaymentUI): * UIProcess/ApplePay/mac/WebPaymentCoordinatorProxyMac.mm: (WebKit::WebPaymentCoordinatorProxy::platformShowPaymentUI): * UIProcess/Automation/WebAutomationSession.cpp: (WebKit::WebAutomationSession::navigateBrowsingContext): (WebKit::domainByAddingDotPrefixIfNeeded): (WebKit::WebAutomationSession::addSingleCookie): (WebKit::WebAutomationSession::deleteAllCookies): * UIProcess/Cocoa/DownloadClient.mm: (WebKit::DownloadClient::didFinish): * UIProcess/Cocoa/NavigationState.h: * UIProcess/Cocoa/NavigationState.mm: (WebKit::NavigationState::NavigationClient::webGLLoadPolicy const): (WebKit::NavigationState::NavigationClient::resolveWebGLLoadPolicy const): (WebKit::NavigationState::NavigationClient::contentRuleListNotification): (WebKit::NavigationState::NavigationClient::willPerformClientRedirect): (WebKit::NavigationState::NavigationClient::didPerformClientRedirect): (WebKit::NavigationState::NavigationClient::signedPublicKeyAndChallengeString): * UIProcess/Cocoa/SafeBrowsingResultCocoa.mm: Copied from Source/WebKit/WebProcess/Network/WebSocketProvider.h. (WebKit::SafeBrowsingResult::SafeBrowsingResult): * UIProcess/Cocoa/SafeBrowsingWarningCocoa.mm: (WebKit::reportAnErrorURL): (WebKit::malwareDetailsURL): (WebKit::safeBrowsingDetailsText): (WebKit::SafeBrowsingWarning::SafeBrowsingWarning): * UIProcess/Cocoa/SystemPreviewControllerCocoa.mm: (-[_WKPreviewControllerDataSource finish:]): (WebKit::SystemPreviewController::finish): * UIProcess/Cocoa/UIDelegate.h: * UIProcess/Cocoa/UIDelegate.mm: (WebKit::UIDelegate::UIClient::createNewPage): (WebKit::UIDelegate::UIClient::saveDataToFileInDownloadsFolder): (WebKit::requestUserMediaAuthorizationForDevices): (WebKit::UIDelegate::UIClient::checkUserMediaPermissionForOrigin): * UIProcess/Cocoa/WKReloadFrameErrorRecoveryAttempter.mm: (-[WKReloadFrameErrorRecoveryAttempter attemptRecovery]): * UIProcess/Cocoa/WKSafeBrowsingWarning.h: * UIProcess/Cocoa/WKSafeBrowsingWarning.mm: (-[WKSafeBrowsingWarning initWithFrame:safeBrowsingWarning:completionHandler:]): * UIProcess/Cocoa/WebPasteboardProxyCocoa.mm: * UIProcess/Cocoa/WebViewImpl.h: * UIProcess/Cocoa/WebViewImpl.mm: (WebKit::WebViewImpl::showSafeBrowsingWarning): (WebKit::WebViewImpl::writeToURLForFilePromiseProvider): * UIProcess/Downloads/DownloadProxy.cpp: (WebKit::DownloadProxy::publishProgress): * UIProcess/Downloads/DownloadProxy.h: (WebKit::DownloadProxy::setRedirectChain): (WebKit::DownloadProxy::redirectChain const): * UIProcess/FrameLoadState.cpp: (WebKit::FrameLoadState::didStartProvisionalLoad): (WebKit::FrameLoadState::didReceiveServerRedirectForProvisionalLoad): (WebKit::FrameLoadState::didSameDocumentNotification): (WebKit::FrameLoadState::setUnreachableURL): * UIProcess/FrameLoadState.h: (WebKit::FrameLoadState::url const): (WebKit::FrameLoadState::setURL): (WebKit::FrameLoadState::provisionalURL const): (WebKit::FrameLoadState::unreachableURL const): * UIProcess/Network/NetworkProcessProxy.cpp: (WebKit::NetworkProcessProxy::writeBlobToFilePath): * UIProcess/Network/NetworkProcessProxy.h: * UIProcess/PageClient.h: (WebKit::PageClient::showSafeBrowsingWarning): * UIProcess/PageLoadState.cpp: (WebKit::PageLoadState::hasOnlySecureContent): * UIProcess/Plugins/PluginInfoStore.cpp: * UIProcess/Plugins/PluginInfoStore.h: * UIProcess/Plugins/mac/PluginProcessProxyMac.mm: * UIProcess/SafeBrowsingResult.h: Copied from Source/WebKit/UIProcess/SystemPreviewController.h. (WebKit::SafeBrowsingResult::create): (WebKit::SafeBrowsingResult::url const): (WebKit::SafeBrowsingResult::provider const): (WebKit::SafeBrowsingResult::isPhishing const): (WebKit::SafeBrowsingResult::isMalware const): (WebKit::SafeBrowsingResult::isUnwantedSoftware const): (WebKit::SafeBrowsingResult::isKnownToBeUnsafe const): * UIProcess/SafeBrowsingWarning.h: (WebKit::SafeBrowsingWarning::create): * UIProcess/SuspendedPageProxy.cpp: * UIProcess/SystemPreviewController.h: * UIProcess/WebCookieManagerProxy.h: * UIProcess/WebFrameProxy.h: (WebKit::WebFrameProxy::url const): (WebKit::WebFrameProxy::provisionalURL const): (WebKit::WebFrameProxy::unreachableURL const): * UIProcess/WebInspectorProxy.h: * UIProcess/WebOpenPanelResultListenerProxy.cpp: * UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::loadDataWithNavigation): (WebKit::WebPageProxy::loadAlternateHTML): (WebKit::WebPageProxy::loadWebArchiveData): (WebKit::WebPageProxy::navigateToPDFLinkWithSimulatedClick): (WebKit::WebPageProxy::continueNavigationInNewProcess): (WebKit::WebPageProxy::didStartProvisionalLoadForFrame): (WebKit::WebPageProxy::didChangeProvisionalURLForFrame): (WebKit::WebPageProxy::didSameDocumentNavigationForFrame): (WebKit::WebPageProxy::contentRuleListNotification): (WebKit::WebPageProxy::processDidTerminate): (WebKit::WebPageProxy::signedPublicKeyAndChallengeString): (WebKit::WebPageProxy::setURLSchemeHandlerForScheme): * UIProcess/WebPageProxy.h: * UIProcess/WebPageProxy.messages.in: * UIProcess/WebProcessPool.cpp: (WebKit::WebProcessPool::tryPrewarmWithDomainInformation): * UIProcess/WebProcessPool.h: * UIProcess/WebProcessProxy.cpp: (WebKit::WebProcessProxy::processDidTerminateOrFailedToLaunch): * UIProcess/WebProcessProxy.h: * UIProcess/WebResourceLoadStatisticsStore.cpp: (WebKit::WebResourceLoadStatisticsStore::setPrevalentResourceForDebugMode): (WebKit::WebResourceLoadStatisticsStore::logFrameNavigation): * UIProcess/WebResourceLoadStatisticsStore.h: * UIProcess/ios/DragDropInteractionState.h: * UIProcess/ios/PageClientImplIOS.h: * UIProcess/ios/PageClientImplIOS.mm: (WebKit::PageClientImpl::showSafeBrowsingWarning): * UIProcess/ios/WKActionSheetAssistant.mm: (-[WKActionSheetAssistant _createSheetWithElementActions:showLinkTitle:]): * UIProcess/ios/WKContentViewInteraction.mm: (-[WKContentView actionSheetAssistant:shareElementWithURL:rect:]): (-[WKContentView _presentedViewControllerForPreviewItemController:]): * UIProcess/ios/WKGeolocationProviderIOS.mm: (-[WKGeolocationProviderIOS geolocationAuthorizationGranted]): * UIProcess/ios/WKLegacyPDFView.mm: (-[WKLegacyPDFView actionSheetAssistant:shareElementWithURL:rect:]): * UIProcess/ios/WKPDFView.mm: (-[WKPDFView actionSheetAssistant:shareElementWithURL:rect:]): * UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm: (-[WKFullScreenWindowController _updateLocationInfo]): * UIProcess/mac/LegacySessionStateCoding.cpp: (WebKit::decodeLegacySessionState): * UIProcess/mac/PageClientImplMac.h: * UIProcess/mac/PageClientImplMac.mm: (WebKit::PageClientImpl::showSafeBrowsingWarning): * UIProcess/mac/WKImmediateActionController.mm: (-[WKImmediateActionController _defaultAnimationController]): * UIProcess/win/WebInspectorProxyWin.cpp: * WebProcess/ApplePay/WebPaymentCoordinator.cpp: (WebKit::WebPaymentCoordinator::showPaymentUI): (WebKit::WebPaymentCoordinator::validateMerchant): * WebProcess/ApplePay/WebPaymentCoordinator.h: * WebProcess/Cache/WebCacheStorageConnection.cpp: (WebKit::WebCacheStorageConnection::doRetrieveRecords): * WebProcess/Cache/WebCacheStorageConnection.h: * WebProcess/FileAPI/BlobRegistryProxy.cpp: (WebKit::BlobRegistryProxy::registerFileBlobURL): * WebProcess/FileAPI/BlobRegistryProxy.h: * WebProcess/InjectedBundle/API/APIInjectedBundlePageLoaderClient.h: (API::InjectedBundle::PageLoaderClient::willLoadDataRequest): (API::InjectedBundle::PageLoaderClient::userAgentForURL const): * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp: (WKBundleFrameAllowsFollowingLink): (WKBundleFrameCopySuggestedFilenameForResourceWithURL): (WKBundleFrameCopyMIMETypeForResourceWithURL): * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp: (WKBundlePageHasLocalDataForURL): * WebProcess/InjectedBundle/API/gtk/DOM/ConvertToUTF8String.cpp: (convertToUTF8String): * WebProcess/InjectedBundle/API/gtk/DOM/ConvertToUTF8String.h: * WebProcess/InjectedBundle/InjectedBundleHitTestResult.cpp: * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h: * WebProcess/MediaCache/WebMediaKeyStorageManager.cpp: * WebProcess/Network/WebLoaderStrategy.cpp: (WebKit::WebLoaderStrategy::preconnectTo): * WebProcess/Network/WebLoaderStrategy.h: * WebProcess/Network/WebSocketProvider.h: * WebProcess/Network/WebSocketStream.cpp: (WebKit::WebSocketStream::WebSocketStream): * WebProcess/Network/WebSocketStream.h: * WebProcess/Plugins/Netscape/NetscapePlugin.cpp: * WebProcess/Plugins/Netscape/NetscapePlugin.h: * WebProcess/Plugins/Netscape/NetscapePluginStream.h: * WebProcess/Plugins/PDF/PDFPlugin.h: * WebProcess/Plugins/PDF/PDFPlugin.mm: (WebKit::PDFPlugin::clickedLink): * WebProcess/Plugins/Plugin.h: * WebProcess/Plugins/PluginController.h: * WebProcess/Plugins/PluginProxy.h: * WebProcess/Plugins/PluginView.cpp: (WebKit::PluginView::performURLRequest): (WebKit::PluginView::performJavaScriptURLRequest): * WebProcess/Plugins/WebPluginInfoProvider.cpp: (WebKit::WebPluginInfoProvider::webVisiblePluginInfo): * WebProcess/Plugins/WebPluginInfoProvider.h: * WebProcess/Storage/WebSWClientConnection.h: * WebProcess/Storage/WebSWContextManagerConnection.h: * WebProcess/UserContent/WebUserContentController.h: * WebProcess/WebCoreSupport/WebChromeClient.cpp: (WebKit::WebChromeClient::signedPublicKeyAndChallengeString const): * WebProcess/WebCoreSupport/WebChromeClient.h: * WebProcess/WebCoreSupport/WebContextMenuClient.h: * WebProcess/WebCoreSupport/WebDragClient.h: * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp: (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForResponse): (WebKit::WebFrameLoaderClient::shouldForceUniversalAccessFromLocalURL): * WebProcess/WebCoreSupport/WebFrameLoaderClient.h: * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp: (WebKit::WebPlatformStrategies::readURLFromPasteboard): * WebProcess/WebCoreSupport/WebPlatformStrategies.h: * WebProcess/WebCoreSupport/mac/WebDragClientMac.mm: (WebKit::WebDragClient::declareAndWriteDragImage): * WebProcess/WebCoreSupport/mac/WebEditorClientMac.mm: * WebProcess/WebPage/VisitedLinkTableController.h: * WebProcess/WebPage/WebFrame.cpp: (WebKit::WebFrame::allowsFollowingLink const): * WebProcess/WebPage/WebFrame.h: * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::loadURLInFrame): (WebKit::WebPage::loadData): (WebKit::WebPage::loadAlternateHTML): (WebKit::WebPage::dumpHistoryForTesting): (WebKit::WebPage::sendCSPViolationReport): (WebKit::WebPage::addUserScript): (WebKit::WebPage::addUserStyleSheet): * WebProcess/WebPage/WebPage.h: * WebProcess/WebPage/WebPage.messages.in: * WebProcess/WebPage/gtk/WebPrintOperationGtk.cpp: (WebKit::WebPrintOperationGtk::frameURL const): * WebProcess/WebPage/gtk/WebPrintOperationGtk.h: * WebProcess/WebProcess.cpp: (WebKit::WebProcess::sendPrewarmInformation): * WebProcess/WebProcess.h: * WebProcess/cocoa/WebProcessCocoa.mm: (WebKit::activePagesOrigins): Source/WebKitLegacy: * WebCoreSupport/WebResourceLoadScheduler.cpp: * WebCoreSupport/WebResourceLoadScheduler.h: Source/WebKitLegacy/mac: * DOM/DOMAttr.mm: * DOM/DOMBlob.mm: * DOM/DOMCSSCharsetRule.mm: * DOM/DOMCSSImportRule.mm: * DOM/DOMCSSMediaRule.mm: * DOM/DOMCSSPageRule.mm: * DOM/DOMCSSPrimitiveValue.mm: * DOM/DOMCSSRule.mm: * DOM/DOMCSSStyleDeclaration.mm: * DOM/DOMCSSStyleRule.mm: * DOM/DOMCSSStyleSheet.mm: * DOM/DOMCSSValue.mm: * DOM/DOMCharacterData.mm: * DOM/DOMCounter.mm: * DOM/DOMDocument.mm: * DOM/DOMDocumentFragment.mm: * DOM/DOMDocumentType.mm: * DOM/DOMEvent.mm: * DOM/DOMFile.mm: * DOM/DOMHTMLAnchorElement.mm: * DOM/DOMHTMLAppletElement.mm: * DOM/DOMHTMLAreaElement.mm: * DOM/DOMHTMLBRElement.mm: * DOM/DOMHTMLBaseElement.mm: * DOM/DOMHTMLBaseFontElement.mm: * DOM/DOMHTMLBodyElement.mm: * DOM/DOMHTMLButtonElement.mm: * DOM/DOMHTMLCanvasElement.mm: * DOM/DOMHTMLCollection.mm: * DOM/DOMHTMLDivElement.mm: * DOM/DOMHTMLDocument.mm: * DOM/DOMHTMLElement.mm: * DOM/DOMHTMLEmbedElement.mm: * DOM/DOMHTMLFieldSetElement.mm: * DOM/DOMHTMLFontElement.mm: * DOM/DOMHTMLFormElement.mm: * DOM/DOMHTMLFrameElement.mm: * DOM/DOMHTMLFrameSetElement.mm: * DOM/DOMHTMLHRElement.mm: * DOM/DOMHTMLHeadElement.mm: * DOM/DOMHTMLHeadingElement.mm: * DOM/DOMHTMLHtmlElement.mm: * DOM/DOMHTMLIFrameElement.mm: * DOM/DOMHTMLImageElement.mm: * DOM/DOMHTMLInputElement.mm: * DOM/DOMHTMLLIElement.mm: * DOM/DOMHTMLLabelElement.mm: * DOM/DOMHTMLLegendElement.mm: * DOM/DOMHTMLLinkElement.mm: * DOM/DOMHTMLMapElement.mm: * DOM/DOMHTMLMarqueeElement.mm: * DOM/DOMHTMLMediaElement.mm: * DOM/DOMHTMLMetaElement.mm: * DOM/DOMHTMLModElement.mm: * DOM/DOMHTMLOListElement.mm: * DOM/DOMHTMLObjectElement.mm: * DOM/DOMHTMLOptGroupElement.mm: * DOM/DOMHTMLOptionElement.mm: * DOM/DOMHTMLOptionsCollection.mm: * DOM/DOMHTMLParagraphElement.mm: * DOM/DOMHTMLParamElement.mm: * DOM/DOMHTMLQuoteElement.mm: * DOM/DOMHTMLScriptElement.mm: * DOM/DOMHTMLSelectElement.mm: * DOM/DOMHTMLStyleElement.mm: * DOM/DOMHTMLTableCaptionElement.mm: * DOM/DOMHTMLTableCellElement.mm: * DOM/DOMHTMLTableColElement.mm: * DOM/DOMHTMLTableElement.mm: * DOM/DOMHTMLTableRowElement.mm: * DOM/DOMHTMLTableSectionElement.mm: * DOM/DOMHTMLTitleElement.mm: * DOM/DOMHTMLUListElement.mm: * DOM/DOMHTMLVideoElement.mm: * DOM/DOMKeyboardEvent.mm: * DOM/DOMMediaList.mm: * DOM/DOMMouseEvent.mm: * DOM/DOMMutationEvent.mm: * DOM/DOMNamedNodeMap.mm: * DOM/DOMProcessingInstruction.mm: * DOM/DOMRange.mm: * DOM/DOMStyleSheet.mm: * DOM/DOMText.mm: * DOM/DOMTextEvent.mm: * DOM/DOMTokenList.mm: * DOM/DOMUIEvent.mm: * DOM/DOMXPathResult.mm: * History/WebHistoryItem.mm: * Misc/WebNSURLExtras.mm: (-[NSURL _web_userVisibleString]): (-[NSURL _web_URLByRemovingUserInfo]): (-[NSURL _web_dataForURLComponentType:]): (-[NSURL _web_schemeData]): (-[NSURL _web_hostData]): * Misc/WebUserContentURLPattern.mm: * Plugins/Hosted/NetscapePluginInstanceProxy.mm: * Plugins/WebNetscapePluginStream.h: (WebNetscapePluginStream::setRequestURL): * WebCoreSupport/WebChromeClient.h: * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::signedPublicKeyAndChallengeString const): * WebCoreSupport/WebContextMenuClient.h: * WebCoreSupport/WebContextMenuClient.mm: * WebCoreSupport/WebDragClient.h: * WebCoreSupport/WebFrameLoaderClient.h: * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::updateGlobalHistory): * WebCoreSupport/WebPaymentCoordinatorClient.h: * WebCoreSupport/WebPaymentCoordinatorClient.mm: (WebPaymentCoordinatorClient::showPaymentUI): * WebCoreSupport/WebPlatformStrategies.h: * WebCoreSupport/WebPlatformStrategies.mm: (WebPlatformStrategies::readURLFromPasteboard): * WebCoreSupport/WebPluginInfoProvider.h: * WebCoreSupport/WebPluginInfoProvider.mm: (WebPluginInfoProvider::webVisiblePluginInfo): * WebCoreSupport/WebSecurityOrigin.mm: * WebCoreSupport/WebVisitedLinkStore.h: * WebView/WebDataSource.mm: * WebView/WebFrame.mm: (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]): * WebView/WebImmediateActionController.mm: (-[WebImmediateActionController _defaultAnimationController]): * WebView/WebPDFView.mm: * WebView/WebScriptDebugger.mm: * WebView/WebViewInternal.h: Source/WebKitLegacy/win: * MarshallingHelpers.cpp: * MarshallingHelpers.h: * Plugins/PluginDatabase.cpp: * Plugins/PluginDatabase.h: * Plugins/PluginDatabaseWin.cpp: * Plugins/PluginStream.h: * Plugins/PluginView.h: * WebCoreSupport/WebContextMenuClient.h: * WebCoreSupport/WebDesktopNotificationsDelegate.cpp: * WebCoreSupport/WebDesktopNotificationsDelegate.h: * WebCoreSupport/WebFrameLoaderClient.h: * WebCoreSupport/WebPlatformStrategies.h: * WebCoreSupport/WebPluginInfoProvider.cpp: (WebPluginInfoProvider::webVisiblePluginInfo): * WebCoreSupport/WebPluginInfoProvider.h: * WebCoreSupport/WebVisitedLinkStore.h: * WebDataSource.cpp: * WebDownload.h: * WebElementPropertyBag.cpp: * WebFrame.h: * WebHistory.cpp: * WebHistory.h: * WebHistoryItem.cpp: * WebResource.cpp: (WebResource::WebResource): * WebResource.h: * WebSecurityOrigin.cpp: * WebURLResponse.cpp: (WebURLResponse::createInstance): * WebUserContentURLPattern.cpp: * WebView.h: Source/WTF: * WTF.xcodeproj/project.pbxproj: * wtf/CMakeLists.txt: * wtf/Forward.h: * wtf/PlatformGTK.cmake: * wtf/PlatformMac.cmake: * wtf/PlatformWPE.cmake: * wtf/PlatformWin.cmake: * wtf/URL.cpp: Renamed from Source/WebCore/platform/URL.cpp. (WTF::URL::protocolIs): * wtf/URL.h: Renamed from Source/WebCore/platform/URL.h. * wtf/URLHash.h: Renamed from Source/WebCore/platform/URLHash.h. (WTF::URLHash::hash): (WTF::URLHash::equal): * wtf/URLParser.cpp: Renamed from Source/WebCore/platform/URLParser.cpp. (WTF::URLParser::isInUserInfoEncodeSet): (WTF::URLParser::parseAuthority): * wtf/URLParser.h: Renamed from Source/WebCore/platform/URLParser.h. (WTF::URLParser::URLParser): (WTF::URLParser::result): * wtf/cf/CFURLExtras.cpp: Renamed from Source/WebCore/platform/cf/CFURLExtras.cpp. * wtf/cf/CFURLExtras.h: Renamed from Source/WebCore/platform/cf/CFURLExtras.h. * wtf/cf/URLCF.cpp: Renamed from Source/WebCore/platform/cf/URLCF.cpp. * wtf/cocoa/NSURLExtras.h: Copied from Source/WebCore/loader/archive/ArchiveResourceCollection.h. * wtf/cocoa/NSURLExtras.mm: Copied from Source/WebCore/platform/mac/WebCoreNSURLExtras.mm. (WTF::isArmenianLookalikeCharacter): (WTF::isArmenianScriptCharacter): (WTF::isASCIIDigitOrValidHostCharacter): (WTF::isLookalikeCharacter): (WTF::whiteListIDNScript): (WTF::readIDNScriptWhiteListFile): (WTF::allCharactersInIDNScriptWhiteList): (WTF::isSecondLevelDomainNameAllowedByTLDRules): (WTF::isRussianDomainNameCharacter): (WTF::allCharactersAllowedByTLDRules): (WTF::mapHostNameWithRange): (WTF::hostNameNeedsDecodingWithRange): (WTF::hostNameNeedsEncodingWithRange): (WTF::decodeHostNameWithRange): (WTF::encodeHostNameWithRange): (WTF::decodeHostName): (WTF::encodeHostName): (WTF::collectRangesThatNeedMapping): (WTF::collectRangesThatNeedEncoding): (WTF::collectRangesThatNeedDecoding): (WTF::applyHostNameFunctionToMailToURLString): (WTF::applyHostNameFunctionToURLString): (WTF::mapHostNames): (WTF::stringByTrimmingWhitespace): (WTF::URLByTruncatingOneCharacterBeforeComponent): (WTF::URLByRemovingResourceSpecifier): (WTF::URLWithData): (WTF::dataWithUserTypedString): (WTF::URLWithUserTypedString): (WTF::URLWithUserTypedStringDeprecated): (WTF::hasQuestionMarkOnlyQueryString): (WTF::dataForURLComponentType): (WTF::URLByRemovingComponentAndSubsequentCharacter): (WTF::URLByRemovingUserInfo): (WTF::originalURLData): (WTF::createStringWithEscapedUnsafeCharacters): (WTF::userVisibleString): (WTF::isUserVisibleURL): (WTF::rangeOfURLScheme): (WTF::looksLikeAbsoluteURL): * wtf/cocoa/URLCocoa.mm: Renamed from Source/WebCore/platform/mac/URLMac.mm. (WTF::URL::URL): (WTF::URL::createCFURL const): * wtf/glib/GUniquePtrSoup.h: Renamed from Source/WebCore/platform/network/soup/GUniquePtrSoup.h. * wtf/glib/URLSoup.cpp: Renamed from Source/WebCore/platform/soup/URLSoup.cpp. Tools: * TestWebKitAPI/Tests/WebCore/ContentExtensions.cpp: * TestWebKitAPI/Tests/WebCore/SecurityOrigin.cpp: * TestWebKitAPI/Tests/WebCore/URL.cpp: (TestWebKitAPI::createURL): (TestWebKitAPI::TEST_F): * TestWebKitAPI/Tests/WebCore/URLParser.cpp: (TestWebKitAPI::checkURL): (TestWebKitAPI::checkRelativeURL): (TestWebKitAPI::checkURLDifferences): (TestWebKitAPI::checkRelativeURLDifferences): * TestWebKitAPI/Tests/WebCore/UserAgentQuirks.cpp: * TestWebKitAPI/Tests/WebCore/YouTubePluginReplacement.cpp: * TestWebKitAPI/Tests/WebCore/cocoa/URLExtras.mm: (TestWebKitAPI::originalDataAsString): (TestWebKitAPI::userVisibleString): (TestWebKitAPI::literalURL): (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/WebKitCocoa/LoadAlternateHTMLString.mm: (TEST): * TestWebKitAPI/Tests/WebKitCocoa/LoadInvalidURLRequest.mm: (literalURL): * TestWebKitAPI/Tests/WebKitGLib/TestCookieManager.cpp: * TestWebKitAPI/Tests/mac/LoadInvalidURLRequest.mm: (-[LoadInvalidURLWebFrameLoadDelegate webView:didFailProvisionalLoadWithError:forFrame:]): * TestWebKitAPI/Tests/mac/SSLKeyGenerator.mm: * TestWebKitAPI/win/PlatformUtilitiesWin.cpp: (TestWebKitAPI::Util::createURLForResource): * lldb/lldb_webkit.py: (__lldb_init_module): (WTFURL_SummaryProvider): (WTFURLProvider): (WebCoreURL_SummaryProvider): Deleted. (WebCoreURLProvider): Deleted. (WebCoreURLProvider.__init__): Deleted. (WebCoreURLProvider.to_string): Deleted. Canonical link: https://commits.webkit.org/206915@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@238771 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-12-01 03:28:36 +00:00
cf/URLCF.cpp
cocoa/AutodrainedPool.cpp
cocoa/CPUTimeCocoa.cpp
cocoa/CrashReporter.cpp
cocoa/Entitlements.mm
Move FileSystem to WTF https://bugs.webkit.org/show_bug.cgi?id=193602 Reviewed by Yusuke Suzuki. Source/WebCore: * Modules/encryptedmedia/CDM.cpp: * Modules/encryptedmedia/legacy/WebKitMediaKeySession.cpp: * Modules/entriesapi/DOMFileSystem.cpp: * Modules/entriesapi/FileSystemEntry.cpp: * Modules/indexeddb/IDBDatabaseIdentifier.cpp: * Modules/indexeddb/server/SQLiteIDBBackingStore.cpp: * Modules/indexeddb/server/SQLiteIDBTransaction.cpp: * Modules/indexeddb/shared/InProcessIDBServer.cpp: * Modules/webdatabase/DatabaseTracker.cpp: * Modules/webdatabase/OriginLock.cpp: * Modules/webdatabase/OriginLock.h: * Modules/webdatabase/cocoa/DatabaseManagerCocoa.mm: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWin.cmake: * Sources.txt: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * bindings/js/GCController.cpp: * dom/DataTransferItem.cpp: * editing/cocoa/WebContentReaderCocoa.mm: * fileapi/File.cpp: * fileapi/FileCocoa.mm: * html/FileInputType.cpp: * html/FileListCreator.cpp: * loader/appcache/ApplicationCacheHost.cpp: * loader/appcache/ApplicationCacheStorage.cpp: * page/Page.cpp: * page/SecurityOrigin.cpp: * page/SecurityOriginData.cpp: * platform/FileHandle.h: * platform/FileStream.cpp: * platform/FileStream.h: * platform/SharedBuffer.h: * platform/SourcesGLib.txt: * platform/cocoa/FileMonitorCocoa.mm: * platform/glib/FileMonitorGLib.cpp: * platform/glib/SharedBufferGlib.cpp: * platform/graphics/avfoundation/objc/CDMSessionAVContentKeySession.mm: * platform/graphics/avfoundation/objc/CDMSessionAVStreamSession.mm: * platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.mm: * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm: * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp: * platform/ios/QuickLook.mm: * platform/ios/WebItemProviderPasteboard.mm: * platform/mediarecorder/cocoa/MediaRecorderPrivateWriterCocoa.mm: * platform/network/BlobDataFileReference.cpp: * platform/network/BlobRegistryImpl.cpp: * platform/network/BlobResourceHandle.cpp: * platform/network/FormData.cpp: * platform/network/cf/FormDataStreamCFNet.cpp: * platform/network/cocoa/ResourceRequestCocoa.mm: * platform/network/curl/CookieJarDB.cpp: * platform/network/curl/CurlCacheEntry.h: * platform/network/curl/CurlCacheManager.cpp: * platform/network/curl/CurlFormDataStream.h: * platform/network/curl/CurlRequest.h: * platform/network/curl/NetworkStorageSessionCurl.cpp: * platform/network/curl/ResourceHandleCurl.cpp: * platform/network/mac/BlobDataFileReferenceMac.mm: * platform/network/soup/ResourceHandleSoup.cpp: * platform/network/soup/SoupNetworkSession.cpp: * platform/posix/SharedBufferPOSIX.cpp: * platform/sql/SQLiteFileSystem.cpp: * platform/text/hyphen/HyphenationLibHyphen.cpp: * platform/win/SearchPopupMenuDB.cpp: * rendering/RenderTheme.cpp: * rendering/RenderThemeGtk.cpp: * rendering/RenderThemeWin.cpp: * workers/service/server/RegistrationDatabase.cpp: Source/WebCore/PAL: * PAL.xcodeproj/project.pbxproj: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/Classifier/ResourceLoadStatisticsPersistentStorage.cpp: * NetworkProcess/NetworkDataTaskBlob.h: * NetworkProcess/NetworkProcess.cpp: * NetworkProcess/cache/CacheStorageEngine.cpp: * NetworkProcess/cache/CacheStorageEngineCaches.cpp: * NetworkProcess/cache/NetworkCache.cpp: * NetworkProcess/cache/NetworkCacheBlobStorage.cpp: * NetworkProcess/cache/NetworkCacheData.cpp: * NetworkProcess/cache/NetworkCacheFileSystem.cpp: * NetworkProcess/cache/NetworkCacheFileSystem.h: * NetworkProcess/cache/NetworkCacheIOChannelCocoa.mm: * NetworkProcess/cache/NetworkCacheIOChannelSoup.cpp: * NetworkProcess/cache/NetworkCacheStatistics.cpp: * NetworkProcess/cache/NetworkCacheStorage.cpp: * NetworkProcess/cocoa/NetworkDataTaskCocoa.mm: * NetworkProcess/cocoa/NetworkSessionCocoa.mm: * NetworkProcess/mac/NetworkProcessMac.mm: * NetworkProcess/soup/NetworkProcessSoup.cpp: * PluginProcess/unix/PluginProcessMainUnix.cpp: * Shared/PersistencyUtils.cpp: * Shared/Plugins/Netscape/unix/NetscapePluginModuleUnix.cpp: * Shared/Plugins/unix/PluginSearchPath.cpp: * Shared/WebMemorySampler.h: * Shared/glib/ProcessExecutablePathGLib.cpp: * Shared/ios/ChildProcessIOS.mm: * Shared/mac/ChildProcessMac.mm: * Shared/mac/SandboxExtensionMac.mm: * UIProcess/API/APIContentRuleListStore.cpp: * UIProcess/API/Cocoa/APIWebsiteDataStoreCocoa.mm: * UIProcess/API/glib/APIWebsiteDataStoreGLib.cpp: * UIProcess/API/glib/IconDatabase.cpp: * UIProcess/API/glib/WebKitFaviconDatabase.cpp: * UIProcess/API/glib/WebKitFileChooserRequest.cpp: * UIProcess/API/glib/WebKitWebContext.cpp: * UIProcess/API/glib/WebKitWebsiteDataManager.cpp: * UIProcess/API/win/APIWebsiteDataStoreWin.cpp: * UIProcess/Automation/WebAutomationSession.cpp: * UIProcess/Cocoa/DownloadClient.mm: * UIProcess/Cocoa/WebProcessPoolCocoa.mm: * UIProcess/Cocoa/WebViewImpl.mm: * UIProcess/DeviceIdHashSaltStorage.cpp: * UIProcess/Downloads/DownloadProxy.cpp: * UIProcess/Launcher/glib/BubblewrapLauncher.cpp: * UIProcess/Launcher/glib/ProcessLauncherGLib.cpp: * UIProcess/Plugins/gtk/PluginInfoCache.cpp: * UIProcess/Plugins/mac/PluginProcessProxyMac.mm: * UIProcess/Plugins/unix/PluginInfoStoreUnix.cpp: * UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp: * UIProcess/ServiceWorkerProcessProxy.cpp: * UIProcess/WebStorage/LocalStorageDatabase.cpp: * UIProcess/WebStorage/LocalStorageDatabaseTracker.cpp: * UIProcess/WebsiteData/Cocoa/WebsiteDataStoreCocoa.mm: * UIProcess/WebsiteData/WebsiteDataStore.cpp: * UIProcess/glib/WebProcessProxyGLib.cpp: * UIProcess/gtk/WebInspectorProxyGtk.cpp: * UIProcess/gtk/WebProcessPoolGtk.cpp: * UIProcess/ios/WKContentViewInteraction.mm: * UIProcess/ios/forms/WKFileUploadPanel.mm: * UIProcess/mac/WebPageProxyMac.mm: * UIProcess/win/WebProcessPoolWin.cpp: * UIProcess/win/WebView.cpp: * UIProcess/wpe/WebProcessPoolWPE.cpp: * WebProcess/InjectedBundle/API/glib/WebKitExtensionManager.cpp: * WebProcess/InjectedBundle/glib/InjectedBundleGlib.cpp: * WebProcess/MediaCache/WebMediaKeyStorageManager.cpp: * WebProcess/Plugins/Netscape/NetscapePluginStream.h: * WebProcess/Plugins/PluginProcessConnection.cpp: * WebProcess/WebCoreSupport/SessionStateConversion.cpp: * WebProcess/WebPage/gtk/WebInspectorUIGtk.cpp: * WebProcess/WebPage/win/WebInspectorUIWin.cpp: * WebProcess/cocoa/WebProcessCocoa.mm: Source/WebKitLegacy: * Storage/StorageAreaSync.cpp: * Storage/StorageSyncManager.cpp: * Storage/StorageTracker.cpp: Source/WebKitLegacy/mac: * Misc/WebNSFileManagerExtras.mm: * Storage/WebDatabaseProvider.mm: * WebView/WebView.mm: Source/WebKitLegacy/win: * Plugins/PluginDatabase.cpp: * Plugins/PluginPackage.h: * Plugins/PluginStream.h: * WebApplicationCache.cpp: * WebDatabaseManager.cpp: * WebDownloadCurl.cpp: * WebPreferences.cpp: * WebView.cpp: Source/WTF: * WTF.xcodeproj/project.pbxproj: * wtf/CMakeLists.txt: * wtf/FileMetadata.h: Renamed from Source/WebCore/platform/FileMetadata.h. * wtf/FileSystem.cpp: Renamed from Source/WebCore/platform/FileSystem.cpp. * wtf/FileSystem.h: Renamed from Source/WebCore/platform/FileSystem.h. * wtf/PlatformGTK.cmake: * wtf/PlatformMac.cmake: * wtf/PlatformPlayStation.cmake: * wtf/PlatformWPE.cmake: * wtf/PlatformWin.cmake: * wtf/cf/FileSystemCF.cpp: Renamed from Source/WebCore/platform/cf/FileSystemCF.cpp. * wtf/cocoa/FileSystemCocoa.mm: Renamed from Source/WebCore/platform/cocoa/FileSystemCocoa.mm. * wtf/glib/FileSystemGlib.cpp: Renamed from Source/WebCore/platform/glib/FileSystemGlib.cpp. * wtf/mac/FileSystemMac.mm: Renamed from Source/WebCore/platform/mac/FileSystemMac.mm. * wtf/posix/FileSystemPOSIX.cpp: Renamed from Source/WebCore/platform/posix/FileSystemPOSIX.cpp. * wtf/spi/mac/MetadataSPI.h: Renamed from Source/WebCore/PAL/pal/spi/mac/MetadataSPI.h. * wtf/win/FileSystemWin.cpp: Renamed from Source/WebCore/platform/win/FileSystemWin.cpp. * wtf/win/PathWalker.cpp: Renamed from Source/WebCore/platform/win/PathWalker.cpp. * wtf/win/PathWalker.h: Renamed from Source/WebCore/platform/win/PathWalker.h. Tools: * DumpRenderTree/win/DumpRenderTree.cpp: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformGTK.cmake: * TestWebKitAPI/PlatformJSCOnly.cmake: * TestWebKitAPI/PlatformPlayStation.cmake: * TestWebKitAPI/PlatformWPE.cmake: * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: * TestWebKitAPI/Tests/WTF/FileSystem.cpp: Renamed from Tools/TestWebKitAPI/Tests/WebCore/FileSystem.cpp. * TestWebKitAPI/Tests/WebCore/FileMonitor.cpp: * TestWebKitAPI/Tests/WebCore/SecurityOrigin.cpp: * TestWebKitAPI/Tests/WebCore/SharedBufferTest.cpp: * TestWebKitAPI/Tests/WebCore/cocoa/DatabaseTrackerTest.mm: * TestWebKitAPI/Tests/WebCore/curl/Cookies.cpp: * TestWebKitAPI/Tests/WebKitCocoa/Download.mm: * TestWebKitAPI/Tests/WebKitCocoa/DownloadProgress.mm: * TestWebKitAPI/win/PlatformUtilitiesWin.cpp: Canonical link: https://commits.webkit.org/208283@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@240437 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-01-24 17:25:57 +00:00
cocoa/FileSystemCocoa.mm
REGRESSION(r185816): In the Hong Kong locale, navigator.language reports it's in the Taiwan locale https://bugs.webkit.org/show_bug.cgi?id=200043 Source/WTF: <rdar://problem/44119496> Reviewed by Dean Jackson. We ask the system for the current locale using CFLocaleCopyPreferredLanguages(), and then round-trip it through CFBundleGetLocalizationInfoForLocalization() / CFBundleCopyLocalizationForLocalizationInfo(). This was to work around the fact that CFLocaleCopyPreferredLanguages() previously didn't report BCP47 language codes. However, that round-tripping was introducing errors, such as "zh-Hant-HK" was getting turned into "zh-Hant-TW" which is clearly wrong. The CFBundle functions were never supposed to be used in this way. Instead, we can use CFLocaleCreateCanonicalLanguageIdentifierFromString() which is intended to canonicalize locale identifiers, and does return BCP47 language codes. However, this function preserves more fingerprinting entropy than the old code path, so we pass the input through new NSLocale SPI to minimize the entropy revealed. * WTF.xcodeproj/project.pbxproj: * wtf/Language.h: * wtf/Platform.h: * wtf/PlatformMac.cmake: * wtf/cf/LanguageCF.cpp: (WTF::httpStyleLanguageCode): (WTF::platformUserPreferredLanguages): * wtf/cocoa/LanguageCocoa.mm: Added. (WTF::minimizedLanguagesFromLanguages): * wtf/spi/cocoa/NSLocaleSPI.h: Added. Tools: Reviewed by Dean Jackson. Migrate system language tests to LayoutTests, to match the rest of our system language tests. * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: * TestWebKitAPI/Tests/mac/NavigatorLanguage.mm: Removed. LayoutTests: <rdar://problem/44119496> Reviewed by Dean Jackson. Migrate and update tests from TestWebKitAPI to LayoutTests, to match the rest of our system language tests. * platform/mac/TestExpectations: Mark these tests as possibly failing on older versions of macOS. * fast/text/international/system-language/navigator-language/navigator-language-en-GB-expected.txt: Added. * fast/text/international/system-language/navigator-language/navigator-language-en-GB.html: Added. * fast/text/international/system-language/navigator-language/navigator-language-en-US-expected.txt: Added. * fast/text/international/system-language/navigator-language/navigator-language-en-US.html: Added. * fast/text/international/system-language/navigator-language/navigator-language-en-expected.txt: Added. * fast/text/international/system-language/navigator-language/navigator-language-en.html: Added. * fast/text/international/system-language/navigator-language/navigator-language-es-419-expected.txt: Added. * fast/text/international/system-language/navigator-language/navigator-language-es-419.html: Added. * fast/text/international/system-language/navigator-language/navigator-language-es-ES-expected.txt: Added. * fast/text/international/system-language/navigator-language/navigator-language-es-ES.html: Added. * fast/text/international/system-language/navigator-language/navigator-language-es-MX-expected.txt: Added. * fast/text/international/system-language/navigator-language/navigator-language-es-MX.html: Added. * fast/text/international/system-language/navigator-language/navigator-language-es-expected.txt: Added. * fast/text/international/system-language/navigator-language/navigator-language-es.html: Added. * fast/text/international/system-language/navigator-language/navigator-language-fr-CA-expected.txt: Added. * fast/text/international/system-language/navigator-language/navigator-language-fr-CA.html: Added. * fast/text/international/system-language/navigator-language/navigator-language-fr-expected.txt: Added. * fast/text/international/system-language/navigator-language/navigator-language-fr.html: Added. * fast/text/international/system-language/navigator-language/navigator-language-hi-expected.txt: Added. * fast/text/international/system-language/navigator-language/navigator-language-hi.html: Added. * fast/text/international/system-language/navigator-language/navigator-language-ja-expected.txt: Added. * fast/text/international/system-language/navigator-language/navigator-language-ja.html: Added. * fast/text/international/system-language/navigator-language/navigator-language-pt-BR-expected.txt: Added. * fast/text/international/system-language/navigator-language/navigator-language-pt-BR.html: Added. * fast/text/international/system-language/navigator-language/navigator-language-pt-PT-expected.txt: Added. * fast/text/international/system-language/navigator-language/navigator-language-pt-PT.html: Added. * fast/text/international/system-language/navigator-language/navigator-language-ru-expected.txt: Added. * fast/text/international/system-language/navigator-language/navigator-language-ru.html: Added. * fast/text/international/system-language/navigator-language/navigator-language-zh-HK-expected.txt: Added. * fast/text/international/system-language/navigator-language/navigator-language-zh-HK.html: Added. * fast/text/international/system-language/navigator-language/navigator-language-zh-Hans-expected.txt: Added. * fast/text/international/system-language/navigator-language/navigator-language-zh-Hans.html: Added. * fast/text/international/system-language/navigator-language/navigator-language-zh-Hant-HK-expected.txt: Added. * fast/text/international/system-language/navigator-language/navigator-language-zh-Hant-HK.html: Added. * fast/text/international/system-language/navigator-language/navigator-language-zh-Hant-expected.txt: Added. * fast/text/international/system-language/navigator-language/navigator-language-zh-Hant.html: Added. * fast/text/international/system-language/navigator-language/navigator-language-zh-TW-expected.txt: Added. * fast/text/international/system-language/navigator-language/navigator-language-zh-TW.html: Added. * js/dom/navigator-language-expected.txt: Canonical link: https://commits.webkit.org/219222@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@254389 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-01-11 03:05:30 +00:00
cocoa/LanguageCocoa.mm
Support WTF logging channels https://bugs.webkit.org/show_bug.cgi?id=228768 Source/WebKit: Reviewed by Fujii Hironori. No new tests because there is no behavior change. * GPUProcess/GPUProcess.cpp: (WebKit::GPUProcess::initializeGPUProcess): * GPUProcess/GPUProcessCreationParameters.cpp: (WebKit::GPUProcessCreationParameters::encode const): (WebKit::GPUProcessCreationParameters::decode): * GPUProcess/GPUProcessCreationParameters.h: * Shared/AuxiliaryProcess.cpp: (WebKit::AuxiliaryProcess::initialize): * Shared/WebKit2Initialize.cpp: (WebKit::InitializeWebKit2): * Shared/WebProcessCreationParameters.cpp: (WebKit::WebProcessCreationParameters::encode const): (WebKit::WebProcessCreationParameters::decode): * Shared/WebProcessCreationParameters.h: * UIProcess/Cocoa/GPUProcessProxyCocoa.mm: (WebKit::GPUProcessProxy::platformInitializeGPUProcessParameters): * UIProcess/Cocoa/WebProcessPoolCocoa.mm: (WebKit::WebProcessPool::platformInitializeWebProcess): * UIProcess/GPU/GPUProcessProxy.cpp: (WebKit::GPUProcessProxy::platformInitializeGPUProcessParameters): * UIProcess/WebProcessPool.cpp: * WebProcess/cocoa/WebProcessCocoa.mm: (WebKit::WebProcess::platformInitializeWebProcess): Source/WebKitLegacy/mac: Reviewed by Fujii Hironori. * WebView/WebView.mm: (-[WebView _commonInitializationWithFrameName:groupName:]): Source/WTF: This patch builds on top of https://bugs.webkit.org/show_bug.cgi?id=228809, which added shared infrastructure for logging. This patch simply triggers that shared infrastructure for WTF. There is no change in behavior - the existing WTF logging channels currently are all implemented independently in custom ways, so this patch just migrates them over to use the shared infrastructure. Reviewed by Fujii Hironori. * WTF.xcodeproj/project.pbxproj: * wtf/Assertions.h: * wtf/CMakeLists.txt: * wtf/LogInitialization.cpp: Added. (WTF::logChannels): * wtf/LogInitialization.h: Added. * wtf/Logging.cpp: Added. * wtf/Logging.h: Added. * wtf/MemoryPressureHandler.cpp: (WTF::MemoryPressureHandler::singleton): * wtf/MemoryPressureHandler.h: * wtf/PlatformFTW.cmake: * wtf/PlatformGTK.cmake: * wtf/PlatformJSCOnly.cmake: * wtf/PlatformMac.cmake: * wtf/PlatformPlayStation.cmake: * wtf/PlatformWPE.cmake: * wtf/PlatformWin.cmake: * wtf/RefCountedLeakCounter.cpp: * wtf/cocoa/LoggingCocoa.mm: Copied from Source/WebKit/UIProcess/Cocoa/GPUProcessProxyCocoa.mm. (WTF::logLevelString): * wtf/cocoa/MachSendRight.cpp: * wtf/cocoa/MainThreadCocoa.mm: * wtf/cocoa/MemoryPressureHandlerCocoa.mm: * wtf/unix/LoggingUnix.cpp: Added. (WTF::logLevelString): * wtf/win/LoggingWin.cpp: Added. (WTF::logLevelString): Canonical link: https://commits.webkit.org/240373@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@280795 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-08-09 21:14:53 +00:00
cocoa/LoggingCocoa.mm
Failures from mach port reference handling should be fatal https://bugs.webkit.org/show_bug.cgi?id=184202 <rdar://problem/37771114> Reviewed by Anders Carlsson. Source/WebCore: We may corrupt the Mach port space by improperly matching the equivalent of reference counting retains (mach_port_mod_refs) with releases (mach_port_deallocate). Our current implementation of MachSendRights::create does not grab a reference if the passed port is MACH_PORT_DEAD, but we unconditionally call mach_port_deallocate on the port, which could lead to a reference count mismatch. Likewise, our MachSendRight destructor does not release the port if it has changed to MACH_PORT_DEAD (e.g., if a child process dies), again leading to a mismatch in retain/releases. Finally, failures in mach_port_deallocate should be fatal because they indicate that the application was attempting to remove an unowned right. This is a fatal condition for Mach, and should lead to an abort. This patch does the following: 1. It creates a helper function that does the right thing for safely deallocating a mach port. 2. It uses it in multiple places. 3. It revises 'MachSendRight::create" so that it properly handles the condition of a dead port. 4. It revises the MachSendRight destructor to properly handle the condition of a dead port. No new tests, no change in behavior expected. * SourcesCocoa.txt: Update for move of MachSendRight files. * WebCore.xcodeproj/project.pbxproj: Ditto. * page/cocoa/ResourceUsageThreadCocoa.mm: (WebCore::getMachThreads): Added. (WebCore::cpuUsage): Use the new cleanup helper function. * platform/cocoa/MachSendRight.cpp: Removed. * platform/cocoa/MachSendRight.h: Removed. * platform/graphics/avfoundation/objc/VideoFullscreenLayerManagerObjC.mm: (WebCore::VideoFullscreenLayerManagerObjC::setVideoFullscreenLayer): * platform/graphics/cocoa/IOSurface.h: * platform/graphics/cocoa/IOSurface.mm: Source/WebKit: Update for new location of MachSendRight.h. Switch to #pragma once in a few places. * Platform/IPC/mac/ConnectionMac.mm: (IPC::Connection::platformInvalidate): Adopt new 'safe mach_port_t deallocation' function. (IPC::Connection::initializeSendSource): Ditto. (IPC::Connection::receiveSourceEventHandler): Ditto. * Platform/SharedMemory.h: * Platform/cocoa/SharedMemoryCocoa.cpp: (WebKit::SharedMemory::Handle::clear): Ditto. (WebKit::makeMemoryEntry): Ditto. (WebKit::SharedMemory::createSendRight const): Ditto. * Platform/mac/LayerHostingContext.h: * Platform/mac/LayerHostingContext.mm: * PluginProcess/PluginControllerProxy.h: * PluginProcess/PluginProcess.h: (WebKit::PluginProcess::compositingRenderServerPort const): * Scripts/messages.py: (headers_for_type): Update for new location of MachSendRight. * Shared/Plugins/PluginProcessCreationParameters.h: * Shared/RemoteLayerTree/RemoteLayerBackingStore.h: * Shared/RemoteLayerTree/RemoteLayerBackingStore.mm: (WebKit::RemoteLayerBackingStore::encode const): * Shared/WebCoreArgumentCoders.h: * Shared/WebProcessCreationParameters.h: * Shared/mac/WebCoreArgumentCodersMac.mm: * UIProcess/Cocoa/VideoFullscreenManagerProxy.mm: * UIProcess/DrawingAreaProxy.cpp: * UIProcess/DrawingAreaProxy.h: * UIProcess/Launcher/mac/ProcessLauncherMac.mm: (WebKit::ProcessLauncher::launchProcess): Ditto. Remove uneeded mach_port_dealloc called after xpc_dictionary_set_mach_send. While '..._set_mach_send' retains the send right, it gets automatically released when the message is handled. We only want to manually deallocate the send right if the message failed to send. * UIProcess/RemoteLayerTree/RemoteLayerTreeDrawingAreaProxy.mm: * UIProcess/WebPageProxy.cpp: * UIProcess/WebPageProxy.h: * UIProcess/WebPageProxy.messages.in: * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.h: * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.mm: * UIProcess/mac/WKViewLayoutStrategy.mm: * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp: * WebProcess/Plugins/Netscape/NetscapePlugin.h: * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm: * WebProcess/Plugins/PluginController.h: * WebProcess/Plugins/PluginView.h: * WebProcess/WebPage/DrawingArea.h: (WebKit::DrawingArea::addFence): (WebKit::DrawingArea::updateGeometry): * WebProcess/WebPage/DrawingArea.messages.in: * WebProcess/WebPage/RemoteLayerTree/RemoteLayerTreeDrawingArea.h: * WebProcess/WebPage/RemoteLayerTree/RemoteLayerTreeDrawingArea.mm: (WebKit::RemoteLayerTreeDrawingArea::updateGeometry): * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::setTopContentInsetFenced): * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h: * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm: (WebKit::TiledCoreAnimationDrawingArea::updateGeometry): * WebProcess/WebProcess.h: (WebKit::WebProcess::compositingRenderServerPort const): * WebProcess/cocoa/VideoFullscreenManager.mm: (WebKit::VideoFullscreenManager::setVideoLayerFrameFenced): Source/WebKitLegacy/mac: * Plugins/Hosted/NetscapePluginHostManager.mm: (WebKit::NetscapePluginHostManager::spawnPluginHost): Adopt new 'safe mach_port_t deallocation' function. Source/WTF: * WTF.xcodeproj/project.pbxproj: * wtf/MachSendRight.h: Copied from WebCore/platform/cocoa/MachSendRight.h. (WebCore::MachSendRight::operator bool const): Deleted. (WebCore::MachSendRight::sendRight const): Deleted. * wtf/PlatformMac.cmake: * wtf/cocoa/CPUTimeCocoa.mm: (WTF::CPUTime::forCurrentThread): Do proper cleanup if the port is invalid. * wtf/cocoa/MachSendRight.cpp: Copied from WebCore/platform/cocoa/MachSendRight.cpp. (WTF::retainSendRight): (WTF::releaseSendRight): (WTF::deallocateSendRightSafely): (WebCore::retainSendRight): Deleted. (WebCore::releaseSendRight): Deleted. (WebCore::MachSendRight::adopt): Deleted. (WebCore::MachSendRight::create): Deleted. (WebCore::MachSendRight::MachSendRight): Deleted. (WebCore::MachSendRight::~MachSendRight): Deleted. (WebCore::MachSendRight::operator=): Deleted. (WebCore::MachSendRight::copySendRight const): Deleted. (WebCore::MachSendRight::leakSendRight): Deleted. Canonical link: https://commits.webkit.org/199860@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@230269 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-04-04 19:43:01 +00:00
cocoa/MachSendRight.cpp
[WTF] Make isMainThread more reliable https://bugs.webkit.org/show_bug.cgi?id=189880 Reviewed by Mark Lam. .: * Source/cmake/OptionsCommon.cmake: Source/WTF: isMainThread() relied on Thread::current(). This API becomes broken in Windows when the Thread is about to be destroyed since TLS is already cleared. This causes a bug since `isMainThread()` is called in Thread::didExit in Windows. This patch makes this `isMainThread` more reliable in all the platforms. In Windows, we use `Thread::currentID()` instead of `Thread::current()` since `Thread::currentID` uses Win32 GetCurrentThreadId directly. In the other system, we use `pthread_main_np` or `pthread_self` instead. We also move `holdLock` code inside `if (shouldRemoveThreadFromThreadGroup())`. If the other thread takes a mutex and destroyed, this `holdLock` waits forever. This problem only happens in Windows since Windows calls TLS destructor for the main thread. * WTF.xcodeproj/project.pbxproj: * wtf/MainThread.cpp: (WTF::initializeMainThread): (): Deleted. (WTF::isMainThread): Deleted. (WTF::isMainThreadIfInitialized): Deleted. * wtf/Platform.h: * wtf/PlatformMac.cmake: * wtf/Threading.cpp: (WTF::Thread::didExit): * wtf/cocoa/MainThreadCocoa.mm: Renamed from Source/WTF/wtf/mac/MainThreadMac.mm. * wtf/generic/MainThreadGeneric.cpp: (WTF::initializeMainThreadPlatform): (WTF::isMainThread): (WTF::isMainThreadIfInitialized): * wtf/win/MainThreadWin.cpp: (WTF::initializeMainThreadPlatform): (WTF::isMainThread): (WTF::isMainThreadIfInitialized): Canonical link: https://commits.webkit.org/205047@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@236617 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-09-28 22:32:34 +00:00
cocoa/MainThreadCocoa.mm
cocoa/MemoryFootprintCocoa.cpp
Move MemoryPressureHandler to WTF <https://webkit.org/b/168908> Reviewed by Sam Weinig. Source/WebCore: * CMakeLists.txt: * PlatformMac.cmake: * PlatformWin.cmake: * WebCore.xcodeproj/project.pbxproj: * bindings/js/ScriptController.cpp: * history/PageCache.cpp: * html/HTMLMediaElement.cpp: * inspector/InspectorInstrumentation.h: * inspector/InspectorMemoryAgent.h: * page/FrameView.cpp: * page/MemoryRelease.h: * page/linux/ResourceUsageThreadLinux.cpp: * platform/Linux.cmake: * platform/graphics/FontCache.cpp: * platform/graphics/WidthCache.h: * platform/graphics/ca/TileController.cpp: * platform/graphics/win/MediaPlayerPrivateMediaFoundation.h: * platform/ios/LegacyTileCache.mm: * platform/ios/LegacyTileGrid.mm: * platform/ios/LegacyTileLayerPool.mm: * platform/ios/TileControllerMemoryHandlerIOS.cpp: * testing/Internals.cpp: Source/WebKit2: * NetworkProcess/NetworkProcess.h: * NetworkProcess/mac/NetworkProcessMac.mm: * PluginProcess/PluginProcess.cpp: * Shared/linux/WebMemorySamplerLinux.cpp: * WebProcess/WebPage/CoordinatedGraphics/CompositingCoordinator.cpp: * WebProcess/WebPage/ios/WebPageIOS.mm: Source/WTF: Move MemoryPressureHandler down to WTF so it can be used from JavaScriptCore. I had to do a blind rewrite of the Windows memory checking timer since it can no longer use WebCore::Timer. I also moved the Win32Handle helper class to WTF. * WTF.xcodeproj/project.pbxproj: * wtf/CMakeLists.txt: * wtf/MemoryPressureHandler.cpp: Renamed from Source/WebCore/platform/MemoryPressureHandler.cpp. (WTF::MemoryPressureHandler::singleton): (WTF::MemoryPressureHandler::MemoryPressureHandler): (WTF::MemoryPressureHandler::setShouldUsePeriodicMemoryMonitor): (WTF::toString): (WTF::thresholdForPolicy): (WTF::policyForFootprint): (WTF::MemoryPressureHandler::measurementTimerFired): (WTF::MemoryPressureHandler::beginSimulatedMemoryPressure): (WTF::MemoryPressureHandler::endSimulatedMemoryPressure): (WTF::MemoryPressureHandler::releaseMemory): (WTF::MemoryPressureHandler::ReliefLogger::logMemoryUsageChange): (WTF::MemoryPressureHandler::install): (WTF::MemoryPressureHandler::uninstall): (WTF::MemoryPressureHandler::holdOff): (WTF::MemoryPressureHandler::respondToMemoryPressure): (WTF::MemoryPressureHandler::platformReleaseMemory): (WTF::MemoryPressureHandler::ReliefLogger::platformMemoryUsage): (WTF::MemoryPressureHandler::platformInitialize): * wtf/MemoryPressureHandler.h: Renamed from Source/WebCore/platform/MemoryPressureHandler.h. (WTF::MemoryPressureHandler::setMemoryKillCallback): (WTF::MemoryPressureHandler::setProcessIsEligibleForMemoryKillCallback): (WTF::MemoryPressureHandler::setLowMemoryHandler): (WTF::MemoryPressureHandler::isUnderMemoryPressure): (WTF::MemoryPressureHandler::setUnderMemoryPressure): (WTF::MemoryPressureHandler::ReliefLogger::ReliefLogger): (WTF::MemoryPressureHandler::ReliefLogger::~ReliefLogger): (WTF::MemoryPressureHandler::ReliefLogger::logString): (WTF::MemoryPressureHandler::ReliefLogger::setLoggingEnabled): (WTF::MemoryPressureHandler::ReliefLogger::loggingEnabled): (WTF::MemoryPressureHandler::ReliefLogger::MemoryUsage::MemoryUsage): * wtf/PlatformEfl.cmake: * wtf/PlatformGTK.cmake: * wtf/PlatformMac.cmake: * wtf/PlatformWin.cmake: * wtf/cocoa/MemoryPressureHandlerCocoa.mm: Renamed from Source/WebCore/platform/cocoa/MemoryPressureHandlerCocoa.mm. (WTF::MemoryPressureHandler::platformReleaseMemory): (WTF::MemoryPressureHandler::install): (WTF::MemoryPressureHandler::uninstall): (WTF::MemoryPressureHandler::holdOff): (WTF::MemoryPressureHandler::respondToMemoryPressure): (WTF::MemoryPressureHandler::ReliefLogger::platformMemoryUsage): * wtf/linux/CurrentProcessMemoryStatus.cpp: Renamed from Source/WebCore/platform/linux/CurrentProcessMemoryStatus.cpp. (WTF::systemPageSize): (WTF::currentProcessMemoryStatus): * wtf/linux/CurrentProcessMemoryStatus.h: Renamed from Source/WebCore/platform/linux/CurrentProcessMemoryStatus.h. * wtf/linux/MemoryPressureHandlerLinux.cpp: Renamed from Source/WebCore/platform/linux/MemoryPressureHandlerLinux.cpp. (WTF::MemoryPressureHandler::EventFDPoller::EventFDPoller): * wtf/win/MemoryPressureHandlerWin.cpp: Renamed from Source/WebCore/platform/win/MemoryPressureHandlerWin.cpp. (WTF::MemoryPressureHandler::platformInitialize): (WTF::MemoryPressureHandler::windowsMeasurementTimerFired): (WTF::MemoryPressureHandler::platformReleaseMemory): (WTF::MemoryPressureHandler::install): (WTF::MemoryPressureHandler::uninstall): (WTF::MemoryPressureHandler::holdOff): (WTF::MemoryPressureHandler::respondToMemoryPressure): (WTF::MemoryPressureHandler::ReliefLogger::platformMemoryUsage): * wtf/win/Win32Handle.h: Renamed from Source/WebCore/platform/win/Win32Handle.h. (WTF::Win32Handle::Win32Handle): (WTF::Win32Handle::~Win32Handle): (WTF::Win32Handle::clear): (WTF::Win32Handle::isValid): (WTF::Win32Handle::get): (WTF::Win32Handle::release): (WTF::Win32Handle::operator=): Canonical link: https://commits.webkit.org/186012@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@213214 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-03-01 09:38:44 +00:00
cocoa/MemoryPressureHandlerCocoa.mm
Move URL from WebCore to WTF https://bugs.webkit.org/show_bug.cgi?id=190234 Patch by Alex Christensen <achristensen@webkit.org> on 2018-11-30 Reviewed by Keith Miller. Source/WebCore: A URL is a low-level concept that does not depend on other classes in WebCore. We are starting to use URLs in JavaScriptCore for modules. I need URL and URLParser in a place with fewer dependencies for rdar://problem/44119696 * Modules/applepay/ApplePaySession.h: * Modules/applepay/ApplePayValidateMerchantEvent.h: * Modules/applepay/PaymentCoordinator.cpp: * Modules/applepay/PaymentCoordinator.h: * Modules/applepay/PaymentCoordinatorClient.h: * Modules/applepay/PaymentSession.h: * Modules/applicationmanifest/ApplicationManifest.h: * Modules/beacon/NavigatorBeacon.cpp: * Modules/cache/DOMCache.cpp: * Modules/fetch/FetchLoader.h: * Modules/mediasession/MediaSessionMetadata.h: * Modules/mediasource/MediaSourceRegistry.cpp: * Modules/mediasource/MediaSourceRegistry.h: * Modules/mediastream/MediaStream.cpp: * Modules/mediastream/MediaStreamRegistry.cpp: * Modules/mediastream/MediaStreamRegistry.h: * Modules/navigatorcontentutils/NavigatorContentUtilsClient.h: * Modules/notifications/Notification.h: * Modules/paymentrequest/MerchantValidationEvent.h: * Modules/paymentrequest/PaymentRequest.h: * Modules/plugins/PluginReplacement.h: * Modules/webaudio/AudioContext.h: * Modules/websockets/ThreadableWebSocketChannel.h: * Modules/websockets/WebSocket.h: * Modules/websockets/WebSocketHandshake.cpp: * Modules/websockets/WebSocketHandshake.h: * Modules/websockets/WorkerThreadableWebSocketChannel.h: * PlatformMac.cmake: * PlatformWin.cmake: * Sources.txt: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * bindings/js/CachedModuleScriptLoader.h: * bindings/js/CachedScriptFetcher.h: * bindings/js/ScriptController.cpp: (WebCore::ScriptController::executeIfJavaScriptURL): * bindings/js/ScriptController.h: * bindings/js/ScriptModuleLoader.h: * bindings/js/ScriptSourceCode.h: * bindings/scripts/CodeGeneratorJS.pm: (GenerateImplementation): * bindings/scripts/test/JS/JSInterfaceName.cpp: * bindings/scripts/test/JS/JSMapLike.cpp: * bindings/scripts/test/JS/JSReadOnlyMapLike.cpp: * bindings/scripts/test/JS/JSTestActiveDOMObject.cpp: * bindings/scripts/test/JS/JSTestCEReactions.cpp: * bindings/scripts/test/JS/JSTestCEReactionsStringifier.cpp: * bindings/scripts/test/JS/JSTestCallTracer.cpp: * bindings/scripts/test/JS/JSTestClassWithJSBuiltinConstructor.cpp: * bindings/scripts/test/JS/JSTestCustomConstructorWithNoInterfaceObject.cpp: * bindings/scripts/test/JS/JSTestDOMJIT.cpp: * bindings/scripts/test/JS/JSTestEnabledBySetting.cpp: * bindings/scripts/test/JS/JSTestEventConstructor.cpp: * bindings/scripts/test/JS/JSTestEventTarget.cpp: * bindings/scripts/test/JS/JSTestException.cpp: * bindings/scripts/test/JS/JSTestGenerateIsReachable.cpp: * bindings/scripts/test/JS/JSTestGlobalObject.cpp: * bindings/scripts/test/JS/JSTestIndexedSetterNoIdentifier.cpp: * bindings/scripts/test/JS/JSTestIndexedSetterThrowingException.cpp: * bindings/scripts/test/JS/JSTestIndexedSetterWithIdentifier.cpp: * bindings/scripts/test/JS/JSTestInterface.cpp: * bindings/scripts/test/JS/JSTestInterfaceLeadingUnderscore.cpp: * bindings/scripts/test/JS/JSTestIterable.cpp: * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp: * bindings/scripts/test/JS/JSTestNamedAndIndexedSetterNoIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedAndIndexedSetterThrowingException.cpp: * bindings/scripts/test/JS/JSTestNamedAndIndexedSetterWithIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedConstructor.cpp: * bindings/scripts/test/JS/JSTestNamedDeleterNoIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedDeleterThrowingException.cpp: * bindings/scripts/test/JS/JSTestNamedDeleterWithIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedDeleterWithIndexedGetter.cpp: * bindings/scripts/test/JS/JSTestNamedGetterCallWith.cpp: * bindings/scripts/test/JS/JSTestNamedGetterNoIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedGetterWithIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedSetterNoIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedSetterThrowingException.cpp: * bindings/scripts/test/JS/JSTestNamedSetterWithIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedSetterWithIndexedGetter.cpp: * bindings/scripts/test/JS/JSTestNamedSetterWithIndexedGetterAndSetter.cpp: * bindings/scripts/test/JS/JSTestNamedSetterWithOverrideBuiltins.cpp: * bindings/scripts/test/JS/JSTestNamedSetterWithUnforgableProperties.cpp: * bindings/scripts/test/JS/JSTestNamedSetterWithUnforgablePropertiesAndOverrideBuiltins.cpp: * bindings/scripts/test/JS/JSTestNode.cpp: * bindings/scripts/test/JS/JSTestObj.cpp: * bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp: * bindings/scripts/test/JS/JSTestOverloadedConstructorsWithSequence.cpp: * bindings/scripts/test/JS/JSTestOverrideBuiltins.cpp: * bindings/scripts/test/JS/JSTestPluginInterface.cpp: * bindings/scripts/test/JS/JSTestPromiseRejectionEvent.cpp: * bindings/scripts/test/JS/JSTestSerialization.cpp: * bindings/scripts/test/JS/JSTestSerializationIndirectInheritance.cpp: * bindings/scripts/test/JS/JSTestSerializationInherit.cpp: * bindings/scripts/test/JS/JSTestSerializationInheritFinal.cpp: * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp: * bindings/scripts/test/JS/JSTestStringifier.cpp: * bindings/scripts/test/JS/JSTestStringifierAnonymousOperation.cpp: * bindings/scripts/test/JS/JSTestStringifierNamedOperation.cpp: * bindings/scripts/test/JS/JSTestStringifierOperationImplementedAs.cpp: * bindings/scripts/test/JS/JSTestStringifierOperationNamedToString.cpp: * bindings/scripts/test/JS/JSTestStringifierReadOnlyAttribute.cpp: * bindings/scripts/test/JS/JSTestStringifierReadWriteAttribute.cpp: * bindings/scripts/test/JS/JSTestTypedefs.cpp: * contentextensions/ContentExtensionsBackend.cpp: (WebCore::ContentExtensions::ContentExtensionsBackend::processContentExtensionRulesForLoad): (WebCore::ContentExtensions::ContentExtensionsBackend::processContentExtensionRulesForPingLoad): (WebCore::ContentExtensions::applyBlockedStatusToRequest): * contentextensions/ContentExtensionsBackend.h: * css/CSSValue.h: * css/StyleProperties.h: * css/StyleResolver.h: * css/StyleSheet.h: * css/StyleSheetContents.h: * css/parser/CSSParserContext.h: (WebCore::CSSParserContextHash::hash): (WTF::HashTraits<WebCore::CSSParserContext>::constructDeletedValue): * css/parser/CSSParserIdioms.h: * dom/DataTransfer.cpp: (WebCore::DataTransfer::setDataFromItemList): * dom/Document.cpp: (WebCore::Document::setURL): (WebCore::Document::processHttpEquiv): (WebCore::Document::completeURL const): (WebCore::Document::ensureTemplateDocument): * dom/Document.h: (WebCore::Document::urlForBindings const): * dom/Element.cpp: (WebCore::Element::isJavaScriptURLAttribute const): * dom/InlineStyleSheetOwner.cpp: (WebCore::parserContextForElement): * dom/Node.cpp: (WebCore::Node::baseURI const): * dom/Node.h: * dom/ScriptElement.h: * dom/ScriptExecutionContext.h: * dom/SecurityContext.h: * editing/Editor.cpp: (WebCore::Editor::pasteboardWriterURL): * editing/Editor.h: * editing/MarkupAccumulator.cpp: (WebCore::MarkupAccumulator::appendQuotedURLAttributeValue): * editing/cocoa/DataDetection.h: * editing/cocoa/EditorCocoa.mm: (WebCore::Editor::userVisibleString): * editing/cocoa/WebContentReaderCocoa.mm: (WebCore::replaceRichContentWithAttachments): (WebCore::WebContentReader::readWebArchive): * editing/mac/EditorMac.mm: (WebCore::Editor::plainTextFromPasteboard): (WebCore::Editor::writeImageToPasteboard): * editing/markup.cpp: (WebCore::removeSubresourceURLAttributes): (WebCore::createFragmentFromMarkup): * editing/markup.h: * fileapi/AsyncFileStream.cpp: * fileapi/AsyncFileStream.h: * fileapi/Blob.h: * fileapi/BlobURL.cpp: * fileapi/BlobURL.h: * fileapi/File.h: * fileapi/FileReaderLoader.h: * fileapi/ThreadableBlobRegistry.h: * history/CachedFrame.h: * history/HistoryItem.h: * html/DOMURL.cpp: (WebCore::DOMURL::create): * html/DOMURL.h: * html/HTMLAttachmentElement.cpp: (WebCore::HTMLAttachmentElement::archiveResourceURL): * html/HTMLFrameElementBase.cpp: (WebCore::HTMLFrameElementBase::isURLAllowed const): (WebCore::HTMLFrameElementBase::openURL): (WebCore::HTMLFrameElementBase::setLocation): * html/HTMLInputElement.h: * html/HTMLLinkElement.h: * html/HTMLMediaElement.cpp: (WTF::LogArgument<URL>::toString): (WTF::LogArgument<WebCore::URL>::toString): Deleted. * html/HTMLPlugInImageElement.cpp: (WebCore::HTMLPlugInImageElement::allowedToLoadFrameURL): * html/ImageBitmap.h: * html/MediaFragmentURIParser.h: * html/PublicURLManager.cpp: * html/PublicURLManager.h: * html/URLInputType.cpp: * html/URLRegistry.h: * html/URLSearchParams.cpp: (WebCore::URLSearchParams::URLSearchParams): (WebCore::URLSearchParams::toString const): (WebCore::URLSearchParams::updateURL): (WebCore::URLSearchParams::updateFromAssociatedURL): * html/URLUtils.h: (WebCore::URLUtils<T>::setHost): (WebCore::URLUtils<T>::setPort): * html/canvas/CanvasRenderingContext.cpp: * html/canvas/CanvasRenderingContext.h: * html/parser/HTMLParserIdioms.cpp: * html/parser/XSSAuditor.cpp: (WebCore::semicolonSeparatedValueContainsJavaScriptURL): (WebCore::XSSAuditor::filterScriptToken): (WebCore::XSSAuditor::filterObjectToken): (WebCore::XSSAuditor::filterParamToken): (WebCore::XSSAuditor::filterEmbedToken): (WebCore::XSSAuditor::filterFormToken): (WebCore::XSSAuditor::filterInputToken): (WebCore::XSSAuditor::filterButtonToken): (WebCore::XSSAuditor::eraseDangerousAttributesIfInjected): (WebCore::XSSAuditor::isLikelySafeResource): * html/parser/XSSAuditor.h: * html/parser/XSSAuditorDelegate.h: * inspector/InspectorFrontendHost.cpp: (WebCore::InspectorFrontendHost::openInNewTab): * inspector/InspectorInstrumentation.h: * inspector/agents/InspectorNetworkAgent.cpp: * inspector/agents/InspectorNetworkAgent.h: * inspector/agents/InspectorPageAgent.h: * inspector/agents/InspectorWorkerAgent.h: * loader/ApplicationManifestLoader.h: * loader/CookieJar.h: * loader/CrossOriginAccessControl.h: * loader/CrossOriginPreflightResultCache.h: * loader/DocumentLoader.cpp: (WebCore::DocumentLoader::willSendRequest): (WebCore::DocumentLoader::maybeLoadEmpty): * loader/DocumentLoader.h: (WebCore::DocumentLoader::serverRedirectSourceForHistory const): * loader/DocumentWriter.h: * loader/FormSubmission.h: * loader/FrameLoader.cpp: (WebCore::FrameLoader::submitForm): (WebCore::FrameLoader::receivedFirstData): (WebCore::FrameLoader::loadWithDocumentLoader): (WebCore::FrameLoader::continueLoadAfterNavigationPolicy): (WebCore::createWindow): * loader/FrameLoaderClient.h: * loader/HistoryController.cpp: (WebCore::HistoryController::currentItemShouldBeReplaced const): (WebCore::HistoryController::initializeItem): * loader/LinkLoader.h: * loader/LoadTiming.h: * loader/LoaderStrategy.h: * loader/MixedContentChecker.cpp: (WebCore::MixedContentChecker::checkFormForMixedContent const): * loader/MixedContentChecker.h: * loader/NavigationScheduler.cpp: (WebCore::NavigationScheduler::shouldScheduleNavigation const): * loader/NavigationScheduler.h: * loader/PingLoader.h: * loader/PolicyChecker.cpp: (WebCore::PolicyChecker::checkNavigationPolicy): * loader/ResourceLoadInfo.h: * loader/ResourceLoadObserver.cpp: (WebCore::ResourceLoadObserver::requestStorageAccessUnderOpener): * loader/ResourceLoadObserver.h: * loader/ResourceLoadStatistics.h: * loader/ResourceLoader.h: * loader/ResourceTiming.h: * loader/SubframeLoader.cpp: (WebCore::SubframeLoader::requestFrame): * loader/SubframeLoader.h: * loader/SubstituteData.h: * loader/appcache/ApplicationCache.h: * loader/appcache/ApplicationCacheGroup.h: * loader/appcache/ApplicationCacheHost.h: * loader/appcache/ApplicationCacheStorage.cpp: * loader/appcache/ApplicationCacheStorage.h: * loader/appcache/ManifestParser.cpp: * loader/appcache/ManifestParser.h: * loader/archive/ArchiveResourceCollection.h: * loader/archive/cf/LegacyWebArchive.cpp: (WebCore::LegacyWebArchive::createFromSelection): * loader/cache/CachedResource.cpp: * loader/cache/CachedResourceLoader.h: * loader/cache/CachedStyleSheetClient.h: * loader/cache/MemoryCache.h: * loader/icon/IconLoader.h: * loader/mac/LoaderNSURLExtras.mm: * page/CaptionUserPreferencesMediaAF.cpp: * page/ChromeClient.h: * page/ClientOrigin.h: * page/ContextMenuClient.h: * page/ContextMenuController.cpp: (WebCore::ContextMenuController::checkOrEnableIfNeeded const): * page/DOMWindow.cpp: (WebCore::DOMWindow::isInsecureScriptAccess): * page/DragController.cpp: (WebCore::DragController::startDrag): * page/DragController.h: * page/EventSource.h: * page/Frame.h: * page/FrameView.h: * page/History.h: * page/Location.cpp: (WebCore::Location::url const): (WebCore::Location::reload): * page/Location.h: * page/Page.h: * page/PageSerializer.h: * page/Performance.h: * page/PerformanceResourceTiming.cpp: * page/SecurityOrigin.cpp: (WebCore::SecurityOrigin::SecurityOrigin): (WebCore::SecurityOrigin::create): * page/SecurityOrigin.h: * page/SecurityOriginData.h: * page/SecurityOriginHash.h: * page/SecurityPolicy.cpp: (WebCore::SecurityPolicy::shouldInheritSecurityOriginFromOwner): * page/SecurityPolicy.h: * page/SettingsBase.h: * page/ShareData.h: * page/SocketProvider.h: * page/UserContentProvider.h: * page/UserContentURLPattern.cpp: * page/UserContentURLPattern.h: * page/UserScript.h: * page/UserStyleSheet.h: * page/VisitedLinkStore.h: * page/csp/ContentSecurityPolicy.h: * page/csp/ContentSecurityPolicyClient.h: * page/csp/ContentSecurityPolicyDirectiveList.h: * page/csp/ContentSecurityPolicySource.cpp: (WebCore::ContentSecurityPolicySource::portMatches const): * page/csp/ContentSecurityPolicySource.h: * page/csp/ContentSecurityPolicySourceList.cpp: * page/csp/ContentSecurityPolicySourceList.h: * page/csp/ContentSecurityPolicySourceListDirective.cpp: * platform/ContentFilterUnblockHandler.h: * platform/ContextMenuItem.h: * platform/Cookie.h: * platform/CookiesStrategy.h: * platform/DragData.h: * platform/DragImage.h: * platform/FileStream.h: * platform/LinkIcon.h: * platform/Pasteboard.cpp: (WebCore::Pasteboard::canExposeURLToDOMWhenPasteboardContainsFiles): * platform/Pasteboard.h: * platform/PasteboardStrategy.h: * platform/PasteboardWriterData.cpp: (WebCore::PasteboardWriterData::setURLData): (WebCore::PasteboardWriterData::setURL): Deleted. * platform/PasteboardWriterData.h: * platform/PlatformPasteboard.h: * platform/PromisedAttachmentInfo.h: * platform/SSLKeyGenerator.h: * platform/SchemeRegistry.cpp: (WebCore::SchemeRegistry::isBuiltinScheme): * platform/SharedBuffer.h: * platform/SharedStringHash.cpp: * platform/SharedStringHash.h: * platform/SourcesSoup.txt: * platform/UserAgent.h: * platform/UserAgentQuirks.cpp: * platform/UserAgentQuirks.h: * platform/cocoa/NetworkExtensionContentFilter.h: * platform/cocoa/NetworkExtensionContentFilter.mm: (WebCore::NetworkExtensionContentFilter::willSendRequest): * platform/glib/SSLKeyGeneratorGLib.cpp: Copied from Source/WebCore/page/ShareData.h. (WebCore::getSupportedKeySizes): (WebCore::signedPublicKeyAndChallengeString): * platform/glib/UserAgentGLib.cpp: * platform/graphics/GraphicsContext.h: * platform/graphics/Image.cpp: * platform/graphics/Image.h: * platform/graphics/ImageObserver.h: * platform/graphics/ImageSource.cpp: * platform/graphics/ImageSource.h: * platform/graphics/MediaPlayer.h: * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp: * platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp: * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: * platform/graphics/cg/GraphicsContextCG.cpp: * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp: * platform/graphics/gstreamer/mse/MediaPlayerPrivateGStreamerMSE.cpp: * platform/graphics/gstreamer/mse/WebKitMediaSourceGStreamer.cpp: (webKitMediaSrcSetUri): * platform/graphics/iso/ISOVTTCue.cpp: * platform/graphics/win/GraphicsContextDirect2D.cpp: * platform/gtk/DragImageGtk.cpp: * platform/gtk/PasteboardGtk.cpp: * platform/gtk/PlatformPasteboardGtk.cpp: * platform/gtk/SelectionData.h: * platform/ios/PasteboardIOS.mm: * platform/ios/PlatformPasteboardIOS.mm: (WebCore::PlatformPasteboard::write): * platform/ios/QuickLook.h: * platform/mac/DragDataMac.mm: (WebCore::DragData::asPlainText const): * platform/mac/DragImageMac.mm: * platform/mac/FileSystemMac.mm: (WebCore::FileSystem::setMetadataURL): * platform/mac/PasteboardMac.mm: * platform/mac/PasteboardWriter.mm: (WebCore::createPasteboardWriter): * platform/mac/PlatformPasteboardMac.mm: * platform/mac/PublicSuffixMac.mm: (WebCore::decodeHostName): * platform/mac/SSLKeyGeneratorMac.mm: * platform/mac/WebCoreNSURLExtras.h: * platform/mac/WebCoreNSURLExtras.mm: (WebCore::isArmenianLookalikeCharacter): Deleted. (WebCore::isArmenianScriptCharacter): Deleted. (WebCore::isASCIIDigitOrValidHostCharacter): Deleted. (WebCore::isLookalikeCharacter): Deleted. (WebCore::whiteListIDNScript): Deleted. (WebCore::readIDNScriptWhiteListFile): Deleted. (WebCore::allCharactersInIDNScriptWhiteList): Deleted. (WebCore::isSecondLevelDomainNameAllowedByTLDRules): Deleted. (WebCore::isRussianDomainNameCharacter): Deleted. (WebCore::allCharactersAllowedByTLDRules): Deleted. (WebCore::mapHostNameWithRange): Deleted. (WebCore::hostNameNeedsDecodingWithRange): Deleted. (WebCore::hostNameNeedsEncodingWithRange): Deleted. (WebCore::decodeHostNameWithRange): Deleted. (WebCore::encodeHostNameWithRange): Deleted. (WebCore::decodeHostName): Deleted. (WebCore::encodeHostName): Deleted. (WebCore::collectRangesThatNeedMapping): Deleted. (WebCore::collectRangesThatNeedEncoding): Deleted. (WebCore::collectRangesThatNeedDecoding): Deleted. (WebCore::applyHostNameFunctionToMailToURLString): Deleted. (WebCore::applyHostNameFunctionToURLString): Deleted. (WebCore::mapHostNames): Deleted. (WebCore::stringByTrimmingWhitespace): Deleted. (WebCore::URLByTruncatingOneCharacterBeforeComponent): Deleted. (WebCore::URLByRemovingResourceSpecifier): Deleted. (WebCore::URLWithData): Deleted. (WebCore::dataWithUserTypedString): Deleted. (WebCore::URLWithUserTypedString): Deleted. (WebCore::URLWithUserTypedStringDeprecated): Deleted. (WebCore::hasQuestionMarkOnlyQueryString): Deleted. (WebCore::dataForURLComponentType): Deleted. (WebCore::URLByRemovingComponentAndSubsequentCharacter): Deleted. (WebCore::URLByRemovingUserInfo): Deleted. (WebCore::originalURLData): Deleted. (WebCore::createStringWithEscapedUnsafeCharacters): Deleted. (WebCore::userVisibleString): Deleted. (WebCore::isUserVisibleURL): Deleted. (WebCore::rangeOfURLScheme): Deleted. (WebCore::looksLikeAbsoluteURL): Deleted. * platform/mediastream/MediaEndpointConfiguration.h: * platform/network/BlobPart.h: * platform/network/BlobRegistry.h: * platform/network/BlobRegistryImpl.h: * platform/network/BlobResourceHandle.cpp: * platform/network/CookieRequestHeaderFieldProxy.h: * platform/network/CredentialStorage.cpp: * platform/network/CredentialStorage.h: * platform/network/DataURLDecoder.cpp: * platform/network/DataURLDecoder.h: * platform/network/FormData.h: * platform/network/ProxyServer.h: * platform/network/ResourceErrorBase.h: * platform/network/ResourceHandle.cpp: (WebCore::ResourceHandle::didReceiveResponse): * platform/network/ResourceHandle.h: * platform/network/ResourceHandleClient.h: * platform/network/ResourceRequestBase.cpp: (WebCore::ResourceRequestBase::redirectedRequest const): * platform/network/ResourceRequestBase.h: * platform/network/ResourceResponseBase.h: * platform/network/SocketStreamHandle.h: * platform/network/cf/DNSResolveQueueCFNet.cpp: * platform/network/cf/NetworkStorageSessionCFNet.cpp: * platform/network/cf/ProxyServerCFNet.cpp: * platform/network/cf/ResourceErrorCF.cpp: * platform/network/cocoa/NetworkStorageSessionCocoa.mm: * platform/network/curl/CookieJarCurlDatabase.cpp: Added. (WebCore::cookiesForSession): (WebCore::CookieJarCurlDatabase::setCookiesFromDOM const): (WebCore::CookieJarCurlDatabase::setCookiesFromHTTPResponse const): (WebCore::CookieJarCurlDatabase::cookiesForDOM const): (WebCore::CookieJarCurlDatabase::cookieRequestHeaderFieldValue const): (WebCore::CookieJarCurlDatabase::cookiesEnabled const): (WebCore::CookieJarCurlDatabase::getRawCookies const): (WebCore::CookieJarCurlDatabase::deleteCookie const): (WebCore::CookieJarCurlDatabase::getHostnamesWithCookies const): (WebCore::CookieJarCurlDatabase::deleteCookiesForHostnames const): (WebCore::CookieJarCurlDatabase::deleteAllCookies const): (WebCore::CookieJarCurlDatabase::deleteAllCookiesModifiedSince const): * platform/network/curl/CookieJarDB.cpp: * platform/network/curl/CookieUtil.h: * platform/network/curl/CurlContext.h: * platform/network/curl/CurlProxySettings.h: * platform/network/curl/CurlResponse.h: * platform/network/curl/NetworkStorageSessionCurl.cpp: * platform/network/curl/ProxyServerCurl.cpp: * platform/network/curl/SocketStreamHandleImplCurl.cpp: * platform/network/mac/ResourceErrorMac.mm: * platform/network/soup/NetworkStorageSessionSoup.cpp: * platform/network/soup/ProxyServerSoup.cpp: * platform/network/soup/ResourceHandleSoup.cpp: * platform/network/soup/ResourceRequest.h: * platform/network/soup/ResourceRequestSoup.cpp: * platform/network/soup/SocketStreamHandleImplSoup.cpp: * platform/network/soup/SoupNetworkSession.cpp: * platform/network/soup/SoupNetworkSession.h: * platform/text/TextEncoding.h: * platform/win/BString.cpp: * platform/win/BString.h: * platform/win/ClipboardUtilitiesWin.cpp: (WebCore::markupToCFHTML): * platform/win/ClipboardUtilitiesWin.h: * platform/win/DragImageWin.cpp: * platform/win/PasteboardWin.cpp: * plugins/PluginData.h: * rendering/HitTestResult.h: * rendering/RenderAttachment.cpp: * svg/SVGImageLoader.cpp: (WebCore::SVGImageLoader::sourceURI const): * svg/SVGURIReference.cpp: * svg/graphics/SVGImage.h: * svg/graphics/SVGImageCache.h: * svg/graphics/SVGImageForContainer.h: * testing/Internals.cpp: (WebCore::Internals::resetToConsistentState): * testing/Internals.mm: (WebCore::Internals::userVisibleString): * testing/MockContentFilter.cpp: (WebCore::MockContentFilter::willSendRequest): * testing/MockPaymentCoordinator.cpp: * testing/js/WebCoreTestSupport.cpp: * workers/AbstractWorker.h: * workers/WorkerGlobalScope.h: * workers/WorkerGlobalScopeProxy.h: * workers/WorkerInspectorProxy.h: * workers/WorkerLocation.h: * workers/WorkerScriptLoader.h: * workers/WorkerThread.cpp: * workers/WorkerThread.h: * workers/service/ServiceWorker.h: * workers/service/ServiceWorkerClientData.h: * workers/service/ServiceWorkerContainer.cpp: * workers/service/ServiceWorkerContextData.h: * workers/service/ServiceWorkerData.h: * workers/service/ServiceWorkerJobData.h: * workers/service/ServiceWorkerRegistrationKey.cpp: * workers/service/ServiceWorkerRegistrationKey.h: (WTF::HashTraits<WebCore::ServiceWorkerRegistrationKey>::constructDeletedValue): * worklets/WorkletGlobalScope.h: * xml/XMLHttpRequest.h: Source/WebKit: * NetworkProcess/Cookies/WebCookieManager.cpp: * NetworkProcess/Cookies/WebCookieManager.h: * NetworkProcess/Cookies/WebCookieManager.messages.in: * NetworkProcess/CustomProtocols/Cocoa/LegacyCustomProtocolManagerCocoa.mm: * NetworkProcess/Downloads/Download.h: * NetworkProcess/Downloads/DownloadManager.cpp: (WebKit::DownloadManager::publishDownloadProgress): * NetworkProcess/Downloads/DownloadManager.h: * NetworkProcess/Downloads/PendingDownload.cpp: (WebKit::PendingDownload::publishProgress): * NetworkProcess/Downloads/PendingDownload.h: * NetworkProcess/Downloads/cocoa/DownloadCocoa.mm: (WebKit::Download::publishProgress): * NetworkProcess/FileAPI/NetworkBlobRegistry.cpp: (WebKit::NetworkBlobRegistry::registerBlobURL): (WebKit::NetworkBlobRegistry::registerBlobURLForSlice): (WebKit::NetworkBlobRegistry::unregisterBlobURL): (WebKit::NetworkBlobRegistry::blobSize): (WebKit::NetworkBlobRegistry::filesInBlob): * NetworkProcess/FileAPI/NetworkBlobRegistry.h: * NetworkProcess/NetworkConnectionToWebProcess.h: * NetworkProcess/NetworkConnectionToWebProcess.messages.in: * NetworkProcess/NetworkDataTask.cpp: (WebKit::NetworkDataTask::didReceiveResponse): * NetworkProcess/NetworkDataTaskBlob.cpp: * NetworkProcess/NetworkLoadChecker.h: (WebKit::NetworkLoadChecker::setContentExtensionController): (WebKit::NetworkLoadChecker::url const): * NetworkProcess/NetworkProcess.cpp: (WebKit::NetworkProcess::writeBlobToFilePath): (WebKit::NetworkProcess::publishDownloadProgress): (WebKit::NetworkProcess::preconnectTo): * NetworkProcess/NetworkProcess.h: * NetworkProcess/NetworkProcess.messages.in: * NetworkProcess/NetworkResourceLoadParameters.h: * NetworkProcess/NetworkResourceLoader.cpp: (WebKit::logBlockedCookieInformation): (WebKit::logCookieInformationInternal): * NetworkProcess/NetworkResourceLoader.h: * NetworkProcess/NetworkSocketStream.cpp: (WebKit::NetworkSocketStream::create): * NetworkProcess/NetworkSocketStream.h: * NetworkProcess/PingLoad.h: * NetworkProcess/ServiceWorker/WebSWServerConnection.h: * NetworkProcess/ServiceWorker/WebSWServerConnection.messages.in: * NetworkProcess/ServiceWorker/WebSWServerToContextConnection.messages.in: * NetworkProcess/cache/CacheStorageEngine.cpp: (WebKit::CacheStorage::Engine::retrieveRecords): * NetworkProcess/cache/CacheStorageEngine.h: * NetworkProcess/cache/CacheStorageEngineCache.h: * NetworkProcess/cache/CacheStorageEngineConnection.cpp: (WebKit::CacheStorageEngineConnection::retrieveRecords): * NetworkProcess/cache/CacheStorageEngineConnection.h: * NetworkProcess/cache/CacheStorageEngineConnection.messages.in: * NetworkProcess/cache/NetworkCache.h: * NetworkProcess/cache/NetworkCacheStatistics.cpp: (WebKit::NetworkCache::Statistics::recordRetrievedCachedEntry): (WebKit::NetworkCache::Statistics::recordRevalidationSuccess): * NetworkProcess/cache/NetworkCacheSubresourcesEntry.h: (WebKit::NetworkCache::SubresourceInfo::firstPartyForCookies const): * NetworkProcess/capture/NetworkCaptureEvent.cpp: (WebKit::NetworkCapture::Request::operator WebCore::ResourceRequest const): (WebKit::NetworkCapture::Response::operator WebCore::ResourceResponse const): (WebKit::NetworkCapture::Error::operator WebCore::ResourceError const): * NetworkProcess/capture/NetworkCaptureManager.cpp: (WebKit::NetworkCapture::Manager::findBestFuzzyMatch): (WebKit::NetworkCapture::Manager::fuzzyMatchURLs): (WebKit::NetworkCapture::Manager::urlIdentifyingCommonDomain): * NetworkProcess/capture/NetworkCaptureManager.h: * NetworkProcess/capture/NetworkCaptureResource.cpp: (WebKit::NetworkCapture::Resource::url): (WebKit::NetworkCapture::Resource::queryParameters): * NetworkProcess/capture/NetworkCaptureResource.h: * NetworkProcess/cocoa/NetworkDataTaskCocoa.mm: (WebKit::NetworkDataTaskCocoa::willPerformHTTPRedirection): * NetworkProcess/cocoa/NetworkProcessCocoa.mm: (WebKit::NetworkProcess::deleteHSTSCacheForHostNames): * NetworkProcess/cocoa/NetworkSessionCocoa.mm: (-[WKNetworkSessionDelegate URLSession:task:didReceiveChallenge:completionHandler:]): * PluginProcess/mac/PluginProcessMac.mm: (WebKit::openCFURLRef): (WebKit::replacedNSWorkspace_launchApplicationAtURL_options_configuration_error): * Shared/API/APIURL.h: (API::URL::create): (API::URL::equals): (API::URL::URL): (API::URL::url const): (API::URL::parseURLIfNecessary const): * Shared/API/APIUserContentURLPattern.h: (API::UserContentURLPattern::matchesURL const): * Shared/API/c/WKURLRequest.cpp: * Shared/API/c/WKURLResponse.cpp: * Shared/API/c/cf/WKURLCF.mm: (WKURLCreateWithCFURL): (WKURLCopyCFURL): * Shared/API/glib/WebKitURIRequest.cpp: * Shared/API/glib/WebKitURIResponse.cpp: * Shared/APIWebArchiveResource.mm: (API::WebArchiveResource::WebArchiveResource): * Shared/AssistedNodeInformation.h: * Shared/Cocoa/WKNSURLExtras.mm: (-[NSURL _web_originalDataAsWTFString]): (): Deleted. * Shared/SessionState.h: * Shared/WebBackForwardListItem.cpp: (WebKit::WebBackForwardListItem::itemIsInSameDocument const): * Shared/WebCoreArgumentCoders.cpp: * Shared/WebCoreArgumentCoders.h: * Shared/WebErrors.h: * Shared/WebHitTestResultData.cpp: * Shared/cf/ArgumentCodersCF.cpp: (IPC::encode): (IPC::decode): * Shared/gtk/WebErrorsGtk.cpp: * Shared/ios/InteractionInformationAtPosition.h: * UIProcess/API/APIHTTPCookieStore.h: * UIProcess/API/APINavigation.cpp: (API::Navigation::appendRedirectionURL): * UIProcess/API/APINavigation.h: (API::Navigation::takeRedirectChain): * UIProcess/API/APINavigationAction.h: * UIProcess/API/APINavigationClient.h: (API::NavigationClient::signedPublicKeyAndChallengeString): (API::NavigationClient::contentRuleListNotification): (API::NavigationClient::webGLLoadPolicy const): (API::NavigationClient::resolveWebGLLoadPolicy const): * UIProcess/API/APIUIClient.h: (API::UIClient::saveDataToFileInDownloadsFolder): * UIProcess/API/APIUserScript.cpp: (API::UserScript::generateUniqueURL): * UIProcess/API/APIUserScript.h: * UIProcess/API/APIUserStyleSheet.cpp: (API::UserStyleSheet::generateUniqueURL): * UIProcess/API/APIUserStyleSheet.h: * UIProcess/API/C/WKOpenPanelResultListener.cpp: (filePathsFromFileURLs): * UIProcess/API/C/WKPage.cpp: (WKPageLoadPlainTextStringWithUserData): (WKPageSetPageUIClient): (WKPageSetPageNavigationClient): * UIProcess/API/C/WKPageGroup.cpp: (WKPageGroupAddUserStyleSheet): (WKPageGroupAddUserScript): * UIProcess/API/C/WKWebsiteDataStoreRef.cpp: (WKWebsiteDataStoreSetResourceLoadStatisticsPrevalentResourceForDebugMode): (WKWebsiteDataStoreSetStatisticsLastSeen): (WKWebsiteDataStoreSetStatisticsPrevalentResource): (WKWebsiteDataStoreSetStatisticsVeryPrevalentResource): (WKWebsiteDataStoreIsStatisticsPrevalentResource): (WKWebsiteDataStoreIsStatisticsVeryPrevalentResource): (WKWebsiteDataStoreIsStatisticsRegisteredAsSubresourceUnder): (WKWebsiteDataStoreIsStatisticsRegisteredAsSubFrameUnder): (WKWebsiteDataStoreIsStatisticsRegisteredAsRedirectingTo): (WKWebsiteDataStoreSetStatisticsHasHadUserInteraction): (WKWebsiteDataStoreIsStatisticsHasHadUserInteraction): (WKWebsiteDataStoreSetStatisticsGrandfathered): (WKWebsiteDataStoreIsStatisticsGrandfathered): (WKWebsiteDataStoreSetStatisticsSubframeUnderTopFrameOrigin): (WKWebsiteDataStoreSetStatisticsSubresourceUnderTopFrameOrigin): (WKWebsiteDataStoreSetStatisticsSubresourceUniqueRedirectTo): (WKWebsiteDataStoreSetStatisticsSubresourceUniqueRedirectFrom): (WKWebsiteDataStoreSetStatisticsTopFrameUniqueRedirectTo): (WKWebsiteDataStoreSetStatisticsTopFrameUniqueRedirectFrom): * UIProcess/API/Cocoa/WKHTTPCookieStore.mm: * UIProcess/API/Cocoa/WKUserScript.mm: (-[WKUserScript _initWithSource:injectionTime:forMainFrameOnly:legacyWhitelist:legacyBlacklist:associatedURL:userContentWorld:]): * UIProcess/API/Cocoa/WKWebView.mm: (-[WKWebView _showSafeBrowsingWarning:completionHandler:]): (-[WKWebView _showSafeBrowsingWarningWithTitle:warning:details:completionHandler:]): * UIProcess/API/Cocoa/WKWebViewConfiguration.mm: (-[WKWebViewConfiguration setURLSchemeHandler:forURLScheme:]): (-[WKWebViewConfiguration urlSchemeHandlerForURLScheme:]): * UIProcess/API/Cocoa/WKWebViewInternal.h: * UIProcess/API/Cocoa/WKWebsiteDataStore.mm: * UIProcess/API/Cocoa/_WKApplicationManifest.mm: (-[_WKApplicationManifest initWithCoder:]): (+[_WKApplicationManifest applicationManifestFromJSON:manifestURL:documentURL:]): * UIProcess/API/Cocoa/_WKUserStyleSheet.mm: (-[_WKUserStyleSheet initWithSource:forMainFrameOnly:legacyWhitelist:legacyBlacklist:baseURL:userContentWorld:]): * UIProcess/API/glib/IconDatabase.cpp: * UIProcess/API/glib/WebKitCookieManager.cpp: (webkit_cookie_manager_get_cookies): * UIProcess/API/glib/WebKitFileChooserRequest.cpp: * UIProcess/API/glib/WebKitSecurityOrigin.cpp: (webkit_security_origin_new_for_uri): * UIProcess/API/glib/WebKitUIClient.cpp: * UIProcess/API/glib/WebKitURISchemeRequest.cpp: * UIProcess/API/glib/WebKitWebView.cpp: (webkit_web_view_load_plain_text): * UIProcess/API/gtk/WebKitRemoteInspectorProtocolHandler.cpp: * UIProcess/ApplePay/WebPaymentCoordinatorProxy.cpp: (WebKit::WebPaymentCoordinatorProxy::showPaymentUI): (WebKit::WebPaymentCoordinatorProxy::validateMerchant): * UIProcess/ApplePay/WebPaymentCoordinatorProxy.h: * UIProcess/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.h: * UIProcess/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm: (WebKit::toPKPaymentRequest): * UIProcess/ApplePay/ios/WebPaymentCoordinatorProxyIOS.mm: (WebKit::WebPaymentCoordinatorProxy::platformShowPaymentUI): * UIProcess/ApplePay/mac/WebPaymentCoordinatorProxyMac.mm: (WebKit::WebPaymentCoordinatorProxy::platformShowPaymentUI): * UIProcess/Automation/WebAutomationSession.cpp: (WebKit::WebAutomationSession::navigateBrowsingContext): (WebKit::domainByAddingDotPrefixIfNeeded): (WebKit::WebAutomationSession::addSingleCookie): (WebKit::WebAutomationSession::deleteAllCookies): * UIProcess/Cocoa/DownloadClient.mm: (WebKit::DownloadClient::didFinish): * UIProcess/Cocoa/NavigationState.h: * UIProcess/Cocoa/NavigationState.mm: (WebKit::NavigationState::NavigationClient::webGLLoadPolicy const): (WebKit::NavigationState::NavigationClient::resolveWebGLLoadPolicy const): (WebKit::NavigationState::NavigationClient::contentRuleListNotification): (WebKit::NavigationState::NavigationClient::willPerformClientRedirect): (WebKit::NavigationState::NavigationClient::didPerformClientRedirect): (WebKit::NavigationState::NavigationClient::signedPublicKeyAndChallengeString): * UIProcess/Cocoa/SafeBrowsingResultCocoa.mm: Copied from Source/WebKit/WebProcess/Network/WebSocketProvider.h. (WebKit::SafeBrowsingResult::SafeBrowsingResult): * UIProcess/Cocoa/SafeBrowsingWarningCocoa.mm: (WebKit::reportAnErrorURL): (WebKit::malwareDetailsURL): (WebKit::safeBrowsingDetailsText): (WebKit::SafeBrowsingWarning::SafeBrowsingWarning): * UIProcess/Cocoa/SystemPreviewControllerCocoa.mm: (-[_WKPreviewControllerDataSource finish:]): (WebKit::SystemPreviewController::finish): * UIProcess/Cocoa/UIDelegate.h: * UIProcess/Cocoa/UIDelegate.mm: (WebKit::UIDelegate::UIClient::createNewPage): (WebKit::UIDelegate::UIClient::saveDataToFileInDownloadsFolder): (WebKit::requestUserMediaAuthorizationForDevices): (WebKit::UIDelegate::UIClient::checkUserMediaPermissionForOrigin): * UIProcess/Cocoa/WKReloadFrameErrorRecoveryAttempter.mm: (-[WKReloadFrameErrorRecoveryAttempter attemptRecovery]): * UIProcess/Cocoa/WKSafeBrowsingWarning.h: * UIProcess/Cocoa/WKSafeBrowsingWarning.mm: (-[WKSafeBrowsingWarning initWithFrame:safeBrowsingWarning:completionHandler:]): * UIProcess/Cocoa/WebPasteboardProxyCocoa.mm: * UIProcess/Cocoa/WebViewImpl.h: * UIProcess/Cocoa/WebViewImpl.mm: (WebKit::WebViewImpl::showSafeBrowsingWarning): (WebKit::WebViewImpl::writeToURLForFilePromiseProvider): * UIProcess/Downloads/DownloadProxy.cpp: (WebKit::DownloadProxy::publishProgress): * UIProcess/Downloads/DownloadProxy.h: (WebKit::DownloadProxy::setRedirectChain): (WebKit::DownloadProxy::redirectChain const): * UIProcess/FrameLoadState.cpp: (WebKit::FrameLoadState::didStartProvisionalLoad): (WebKit::FrameLoadState::didReceiveServerRedirectForProvisionalLoad): (WebKit::FrameLoadState::didSameDocumentNotification): (WebKit::FrameLoadState::setUnreachableURL): * UIProcess/FrameLoadState.h: (WebKit::FrameLoadState::url const): (WebKit::FrameLoadState::setURL): (WebKit::FrameLoadState::provisionalURL const): (WebKit::FrameLoadState::unreachableURL const): * UIProcess/Network/NetworkProcessProxy.cpp: (WebKit::NetworkProcessProxy::writeBlobToFilePath): * UIProcess/Network/NetworkProcessProxy.h: * UIProcess/PageClient.h: (WebKit::PageClient::showSafeBrowsingWarning): * UIProcess/PageLoadState.cpp: (WebKit::PageLoadState::hasOnlySecureContent): * UIProcess/Plugins/PluginInfoStore.cpp: * UIProcess/Plugins/PluginInfoStore.h: * UIProcess/Plugins/mac/PluginProcessProxyMac.mm: * UIProcess/SafeBrowsingResult.h: Copied from Source/WebKit/UIProcess/SystemPreviewController.h. (WebKit::SafeBrowsingResult::create): (WebKit::SafeBrowsingResult::url const): (WebKit::SafeBrowsingResult::provider const): (WebKit::SafeBrowsingResult::isPhishing const): (WebKit::SafeBrowsingResult::isMalware const): (WebKit::SafeBrowsingResult::isUnwantedSoftware const): (WebKit::SafeBrowsingResult::isKnownToBeUnsafe const): * UIProcess/SafeBrowsingWarning.h: (WebKit::SafeBrowsingWarning::create): * UIProcess/SuspendedPageProxy.cpp: * UIProcess/SystemPreviewController.h: * UIProcess/WebCookieManagerProxy.h: * UIProcess/WebFrameProxy.h: (WebKit::WebFrameProxy::url const): (WebKit::WebFrameProxy::provisionalURL const): (WebKit::WebFrameProxy::unreachableURL const): * UIProcess/WebInspectorProxy.h: * UIProcess/WebOpenPanelResultListenerProxy.cpp: * UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::loadDataWithNavigation): (WebKit::WebPageProxy::loadAlternateHTML): (WebKit::WebPageProxy::loadWebArchiveData): (WebKit::WebPageProxy::navigateToPDFLinkWithSimulatedClick): (WebKit::WebPageProxy::continueNavigationInNewProcess): (WebKit::WebPageProxy::didStartProvisionalLoadForFrame): (WebKit::WebPageProxy::didChangeProvisionalURLForFrame): (WebKit::WebPageProxy::didSameDocumentNavigationForFrame): (WebKit::WebPageProxy::contentRuleListNotification): (WebKit::WebPageProxy::processDidTerminate): (WebKit::WebPageProxy::signedPublicKeyAndChallengeString): (WebKit::WebPageProxy::setURLSchemeHandlerForScheme): * UIProcess/WebPageProxy.h: * UIProcess/WebPageProxy.messages.in: * UIProcess/WebProcessPool.cpp: (WebKit::WebProcessPool::tryPrewarmWithDomainInformation): * UIProcess/WebProcessPool.h: * UIProcess/WebProcessProxy.cpp: (WebKit::WebProcessProxy::processDidTerminateOrFailedToLaunch): * UIProcess/WebProcessProxy.h: * UIProcess/WebResourceLoadStatisticsStore.cpp: (WebKit::WebResourceLoadStatisticsStore::setPrevalentResourceForDebugMode): (WebKit::WebResourceLoadStatisticsStore::logFrameNavigation): * UIProcess/WebResourceLoadStatisticsStore.h: * UIProcess/ios/DragDropInteractionState.h: * UIProcess/ios/PageClientImplIOS.h: * UIProcess/ios/PageClientImplIOS.mm: (WebKit::PageClientImpl::showSafeBrowsingWarning): * UIProcess/ios/WKActionSheetAssistant.mm: (-[WKActionSheetAssistant _createSheetWithElementActions:showLinkTitle:]): * UIProcess/ios/WKContentViewInteraction.mm: (-[WKContentView actionSheetAssistant:shareElementWithURL:rect:]): (-[WKContentView _presentedViewControllerForPreviewItemController:]): * UIProcess/ios/WKGeolocationProviderIOS.mm: (-[WKGeolocationProviderIOS geolocationAuthorizationGranted]): * UIProcess/ios/WKLegacyPDFView.mm: (-[WKLegacyPDFView actionSheetAssistant:shareElementWithURL:rect:]): * UIProcess/ios/WKPDFView.mm: (-[WKPDFView actionSheetAssistant:shareElementWithURL:rect:]): * UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm: (-[WKFullScreenWindowController _updateLocationInfo]): * UIProcess/mac/LegacySessionStateCoding.cpp: (WebKit::decodeLegacySessionState): * UIProcess/mac/PageClientImplMac.h: * UIProcess/mac/PageClientImplMac.mm: (WebKit::PageClientImpl::showSafeBrowsingWarning): * UIProcess/mac/WKImmediateActionController.mm: (-[WKImmediateActionController _defaultAnimationController]): * UIProcess/win/WebInspectorProxyWin.cpp: * WebProcess/ApplePay/WebPaymentCoordinator.cpp: (WebKit::WebPaymentCoordinator::showPaymentUI): (WebKit::WebPaymentCoordinator::validateMerchant): * WebProcess/ApplePay/WebPaymentCoordinator.h: * WebProcess/Cache/WebCacheStorageConnection.cpp: (WebKit::WebCacheStorageConnection::doRetrieveRecords): * WebProcess/Cache/WebCacheStorageConnection.h: * WebProcess/FileAPI/BlobRegistryProxy.cpp: (WebKit::BlobRegistryProxy::registerFileBlobURL): * WebProcess/FileAPI/BlobRegistryProxy.h: * WebProcess/InjectedBundle/API/APIInjectedBundlePageLoaderClient.h: (API::InjectedBundle::PageLoaderClient::willLoadDataRequest): (API::InjectedBundle::PageLoaderClient::userAgentForURL const): * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp: (WKBundleFrameAllowsFollowingLink): (WKBundleFrameCopySuggestedFilenameForResourceWithURL): (WKBundleFrameCopyMIMETypeForResourceWithURL): * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp: (WKBundlePageHasLocalDataForURL): * WebProcess/InjectedBundle/API/gtk/DOM/ConvertToUTF8String.cpp: (convertToUTF8String): * WebProcess/InjectedBundle/API/gtk/DOM/ConvertToUTF8String.h: * WebProcess/InjectedBundle/InjectedBundleHitTestResult.cpp: * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h: * WebProcess/MediaCache/WebMediaKeyStorageManager.cpp: * WebProcess/Network/WebLoaderStrategy.cpp: (WebKit::WebLoaderStrategy::preconnectTo): * WebProcess/Network/WebLoaderStrategy.h: * WebProcess/Network/WebSocketProvider.h: * WebProcess/Network/WebSocketStream.cpp: (WebKit::WebSocketStream::WebSocketStream): * WebProcess/Network/WebSocketStream.h: * WebProcess/Plugins/Netscape/NetscapePlugin.cpp: * WebProcess/Plugins/Netscape/NetscapePlugin.h: * WebProcess/Plugins/Netscape/NetscapePluginStream.h: * WebProcess/Plugins/PDF/PDFPlugin.h: * WebProcess/Plugins/PDF/PDFPlugin.mm: (WebKit::PDFPlugin::clickedLink): * WebProcess/Plugins/Plugin.h: * WebProcess/Plugins/PluginController.h: * WebProcess/Plugins/PluginProxy.h: * WebProcess/Plugins/PluginView.cpp: (WebKit::PluginView::performURLRequest): (WebKit::PluginView::performJavaScriptURLRequest): * WebProcess/Plugins/WebPluginInfoProvider.cpp: (WebKit::WebPluginInfoProvider::webVisiblePluginInfo): * WebProcess/Plugins/WebPluginInfoProvider.h: * WebProcess/Storage/WebSWClientConnection.h: * WebProcess/Storage/WebSWContextManagerConnection.h: * WebProcess/UserContent/WebUserContentController.h: * WebProcess/WebCoreSupport/WebChromeClient.cpp: (WebKit::WebChromeClient::signedPublicKeyAndChallengeString const): * WebProcess/WebCoreSupport/WebChromeClient.h: * WebProcess/WebCoreSupport/WebContextMenuClient.h: * WebProcess/WebCoreSupport/WebDragClient.h: * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp: (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForResponse): (WebKit::WebFrameLoaderClient::shouldForceUniversalAccessFromLocalURL): * WebProcess/WebCoreSupport/WebFrameLoaderClient.h: * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp: (WebKit::WebPlatformStrategies::readURLFromPasteboard): * WebProcess/WebCoreSupport/WebPlatformStrategies.h: * WebProcess/WebCoreSupport/mac/WebDragClientMac.mm: (WebKit::WebDragClient::declareAndWriteDragImage): * WebProcess/WebCoreSupport/mac/WebEditorClientMac.mm: * WebProcess/WebPage/VisitedLinkTableController.h: * WebProcess/WebPage/WebFrame.cpp: (WebKit::WebFrame::allowsFollowingLink const): * WebProcess/WebPage/WebFrame.h: * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::loadURLInFrame): (WebKit::WebPage::loadData): (WebKit::WebPage::loadAlternateHTML): (WebKit::WebPage::dumpHistoryForTesting): (WebKit::WebPage::sendCSPViolationReport): (WebKit::WebPage::addUserScript): (WebKit::WebPage::addUserStyleSheet): * WebProcess/WebPage/WebPage.h: * WebProcess/WebPage/WebPage.messages.in: * WebProcess/WebPage/gtk/WebPrintOperationGtk.cpp: (WebKit::WebPrintOperationGtk::frameURL const): * WebProcess/WebPage/gtk/WebPrintOperationGtk.h: * WebProcess/WebProcess.cpp: (WebKit::WebProcess::sendPrewarmInformation): * WebProcess/WebProcess.h: * WebProcess/cocoa/WebProcessCocoa.mm: (WebKit::activePagesOrigins): Source/WebKitLegacy: * WebCoreSupport/WebResourceLoadScheduler.cpp: * WebCoreSupport/WebResourceLoadScheduler.h: Source/WebKitLegacy/mac: * DOM/DOMAttr.mm: * DOM/DOMBlob.mm: * DOM/DOMCSSCharsetRule.mm: * DOM/DOMCSSImportRule.mm: * DOM/DOMCSSMediaRule.mm: * DOM/DOMCSSPageRule.mm: * DOM/DOMCSSPrimitiveValue.mm: * DOM/DOMCSSRule.mm: * DOM/DOMCSSStyleDeclaration.mm: * DOM/DOMCSSStyleRule.mm: * DOM/DOMCSSStyleSheet.mm: * DOM/DOMCSSValue.mm: * DOM/DOMCharacterData.mm: * DOM/DOMCounter.mm: * DOM/DOMDocument.mm: * DOM/DOMDocumentFragment.mm: * DOM/DOMDocumentType.mm: * DOM/DOMEvent.mm: * DOM/DOMFile.mm: * DOM/DOMHTMLAnchorElement.mm: * DOM/DOMHTMLAppletElement.mm: * DOM/DOMHTMLAreaElement.mm: * DOM/DOMHTMLBRElement.mm: * DOM/DOMHTMLBaseElement.mm: * DOM/DOMHTMLBaseFontElement.mm: * DOM/DOMHTMLBodyElement.mm: * DOM/DOMHTMLButtonElement.mm: * DOM/DOMHTMLCanvasElement.mm: * DOM/DOMHTMLCollection.mm: * DOM/DOMHTMLDivElement.mm: * DOM/DOMHTMLDocument.mm: * DOM/DOMHTMLElement.mm: * DOM/DOMHTMLEmbedElement.mm: * DOM/DOMHTMLFieldSetElement.mm: * DOM/DOMHTMLFontElement.mm: * DOM/DOMHTMLFormElement.mm: * DOM/DOMHTMLFrameElement.mm: * DOM/DOMHTMLFrameSetElement.mm: * DOM/DOMHTMLHRElement.mm: * DOM/DOMHTMLHeadElement.mm: * DOM/DOMHTMLHeadingElement.mm: * DOM/DOMHTMLHtmlElement.mm: * DOM/DOMHTMLIFrameElement.mm: * DOM/DOMHTMLImageElement.mm: * DOM/DOMHTMLInputElement.mm: * DOM/DOMHTMLLIElement.mm: * DOM/DOMHTMLLabelElement.mm: * DOM/DOMHTMLLegendElement.mm: * DOM/DOMHTMLLinkElement.mm: * DOM/DOMHTMLMapElement.mm: * DOM/DOMHTMLMarqueeElement.mm: * DOM/DOMHTMLMediaElement.mm: * DOM/DOMHTMLMetaElement.mm: * DOM/DOMHTMLModElement.mm: * DOM/DOMHTMLOListElement.mm: * DOM/DOMHTMLObjectElement.mm: * DOM/DOMHTMLOptGroupElement.mm: * DOM/DOMHTMLOptionElement.mm: * DOM/DOMHTMLOptionsCollection.mm: * DOM/DOMHTMLParagraphElement.mm: * DOM/DOMHTMLParamElement.mm: * DOM/DOMHTMLQuoteElement.mm: * DOM/DOMHTMLScriptElement.mm: * DOM/DOMHTMLSelectElement.mm: * DOM/DOMHTMLStyleElement.mm: * DOM/DOMHTMLTableCaptionElement.mm: * DOM/DOMHTMLTableCellElement.mm: * DOM/DOMHTMLTableColElement.mm: * DOM/DOMHTMLTableElement.mm: * DOM/DOMHTMLTableRowElement.mm: * DOM/DOMHTMLTableSectionElement.mm: * DOM/DOMHTMLTitleElement.mm: * DOM/DOMHTMLUListElement.mm: * DOM/DOMHTMLVideoElement.mm: * DOM/DOMKeyboardEvent.mm: * DOM/DOMMediaList.mm: * DOM/DOMMouseEvent.mm: * DOM/DOMMutationEvent.mm: * DOM/DOMNamedNodeMap.mm: * DOM/DOMProcessingInstruction.mm: * DOM/DOMRange.mm: * DOM/DOMStyleSheet.mm: * DOM/DOMText.mm: * DOM/DOMTextEvent.mm: * DOM/DOMTokenList.mm: * DOM/DOMUIEvent.mm: * DOM/DOMXPathResult.mm: * History/WebHistoryItem.mm: * Misc/WebNSURLExtras.mm: (-[NSURL _web_userVisibleString]): (-[NSURL _web_URLByRemovingUserInfo]): (-[NSURL _web_dataForURLComponentType:]): (-[NSURL _web_schemeData]): (-[NSURL _web_hostData]): * Misc/WebUserContentURLPattern.mm: * Plugins/Hosted/NetscapePluginInstanceProxy.mm: * Plugins/WebNetscapePluginStream.h: (WebNetscapePluginStream::setRequestURL): * WebCoreSupport/WebChromeClient.h: * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::signedPublicKeyAndChallengeString const): * WebCoreSupport/WebContextMenuClient.h: * WebCoreSupport/WebContextMenuClient.mm: * WebCoreSupport/WebDragClient.h: * WebCoreSupport/WebFrameLoaderClient.h: * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::updateGlobalHistory): * WebCoreSupport/WebPaymentCoordinatorClient.h: * WebCoreSupport/WebPaymentCoordinatorClient.mm: (WebPaymentCoordinatorClient::showPaymentUI): * WebCoreSupport/WebPlatformStrategies.h: * WebCoreSupport/WebPlatformStrategies.mm: (WebPlatformStrategies::readURLFromPasteboard): * WebCoreSupport/WebPluginInfoProvider.h: * WebCoreSupport/WebPluginInfoProvider.mm: (WebPluginInfoProvider::webVisiblePluginInfo): * WebCoreSupport/WebSecurityOrigin.mm: * WebCoreSupport/WebVisitedLinkStore.h: * WebView/WebDataSource.mm: * WebView/WebFrame.mm: (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]): * WebView/WebImmediateActionController.mm: (-[WebImmediateActionController _defaultAnimationController]): * WebView/WebPDFView.mm: * WebView/WebScriptDebugger.mm: * WebView/WebViewInternal.h: Source/WebKitLegacy/win: * MarshallingHelpers.cpp: * MarshallingHelpers.h: * Plugins/PluginDatabase.cpp: * Plugins/PluginDatabase.h: * Plugins/PluginDatabaseWin.cpp: * Plugins/PluginStream.h: * Plugins/PluginView.h: * WebCoreSupport/WebContextMenuClient.h: * WebCoreSupport/WebDesktopNotificationsDelegate.cpp: * WebCoreSupport/WebDesktopNotificationsDelegate.h: * WebCoreSupport/WebFrameLoaderClient.h: * WebCoreSupport/WebPlatformStrategies.h: * WebCoreSupport/WebPluginInfoProvider.cpp: (WebPluginInfoProvider::webVisiblePluginInfo): * WebCoreSupport/WebPluginInfoProvider.h: * WebCoreSupport/WebVisitedLinkStore.h: * WebDataSource.cpp: * WebDownload.h: * WebElementPropertyBag.cpp: * WebFrame.h: * WebHistory.cpp: * WebHistory.h: * WebHistoryItem.cpp: * WebResource.cpp: (WebResource::WebResource): * WebResource.h: * WebSecurityOrigin.cpp: * WebURLResponse.cpp: (WebURLResponse::createInstance): * WebUserContentURLPattern.cpp: * WebView.h: Source/WTF: * WTF.xcodeproj/project.pbxproj: * wtf/CMakeLists.txt: * wtf/Forward.h: * wtf/PlatformGTK.cmake: * wtf/PlatformMac.cmake: * wtf/PlatformWPE.cmake: * wtf/PlatformWin.cmake: * wtf/URL.cpp: Renamed from Source/WebCore/platform/URL.cpp. (WTF::URL::protocolIs): * wtf/URL.h: Renamed from Source/WebCore/platform/URL.h. * wtf/URLHash.h: Renamed from Source/WebCore/platform/URLHash.h. (WTF::URLHash::hash): (WTF::URLHash::equal): * wtf/URLParser.cpp: Renamed from Source/WebCore/platform/URLParser.cpp. (WTF::URLParser::isInUserInfoEncodeSet): (WTF::URLParser::parseAuthority): * wtf/URLParser.h: Renamed from Source/WebCore/platform/URLParser.h. (WTF::URLParser::URLParser): (WTF::URLParser::result): * wtf/cf/CFURLExtras.cpp: Renamed from Source/WebCore/platform/cf/CFURLExtras.cpp. * wtf/cf/CFURLExtras.h: Renamed from Source/WebCore/platform/cf/CFURLExtras.h. * wtf/cf/URLCF.cpp: Renamed from Source/WebCore/platform/cf/URLCF.cpp. * wtf/cocoa/NSURLExtras.h: Copied from Source/WebCore/loader/archive/ArchiveResourceCollection.h. * wtf/cocoa/NSURLExtras.mm: Copied from Source/WebCore/platform/mac/WebCoreNSURLExtras.mm. (WTF::isArmenianLookalikeCharacter): (WTF::isArmenianScriptCharacter): (WTF::isASCIIDigitOrValidHostCharacter): (WTF::isLookalikeCharacter): (WTF::whiteListIDNScript): (WTF::readIDNScriptWhiteListFile): (WTF::allCharactersInIDNScriptWhiteList): (WTF::isSecondLevelDomainNameAllowedByTLDRules): (WTF::isRussianDomainNameCharacter): (WTF::allCharactersAllowedByTLDRules): (WTF::mapHostNameWithRange): (WTF::hostNameNeedsDecodingWithRange): (WTF::hostNameNeedsEncodingWithRange): (WTF::decodeHostNameWithRange): (WTF::encodeHostNameWithRange): (WTF::decodeHostName): (WTF::encodeHostName): (WTF::collectRangesThatNeedMapping): (WTF::collectRangesThatNeedEncoding): (WTF::collectRangesThatNeedDecoding): (WTF::applyHostNameFunctionToMailToURLString): (WTF::applyHostNameFunctionToURLString): (WTF::mapHostNames): (WTF::stringByTrimmingWhitespace): (WTF::URLByTruncatingOneCharacterBeforeComponent): (WTF::URLByRemovingResourceSpecifier): (WTF::URLWithData): (WTF::dataWithUserTypedString): (WTF::URLWithUserTypedString): (WTF::URLWithUserTypedStringDeprecated): (WTF::hasQuestionMarkOnlyQueryString): (WTF::dataForURLComponentType): (WTF::URLByRemovingComponentAndSubsequentCharacter): (WTF::URLByRemovingUserInfo): (WTF::originalURLData): (WTF::createStringWithEscapedUnsafeCharacters): (WTF::userVisibleString): (WTF::isUserVisibleURL): (WTF::rangeOfURLScheme): (WTF::looksLikeAbsoluteURL): * wtf/cocoa/URLCocoa.mm: Renamed from Source/WebCore/platform/mac/URLMac.mm. (WTF::URL::URL): (WTF::URL::createCFURL const): * wtf/glib/GUniquePtrSoup.h: Renamed from Source/WebCore/platform/network/soup/GUniquePtrSoup.h. * wtf/glib/URLSoup.cpp: Renamed from Source/WebCore/platform/soup/URLSoup.cpp. Tools: * TestWebKitAPI/Tests/WebCore/ContentExtensions.cpp: * TestWebKitAPI/Tests/WebCore/SecurityOrigin.cpp: * TestWebKitAPI/Tests/WebCore/URL.cpp: (TestWebKitAPI::createURL): (TestWebKitAPI::TEST_F): * TestWebKitAPI/Tests/WebCore/URLParser.cpp: (TestWebKitAPI::checkURL): (TestWebKitAPI::checkRelativeURL): (TestWebKitAPI::checkURLDifferences): (TestWebKitAPI::checkRelativeURLDifferences): * TestWebKitAPI/Tests/WebCore/UserAgentQuirks.cpp: * TestWebKitAPI/Tests/WebCore/YouTubePluginReplacement.cpp: * TestWebKitAPI/Tests/WebCore/cocoa/URLExtras.mm: (TestWebKitAPI::originalDataAsString): (TestWebKitAPI::userVisibleString): (TestWebKitAPI::literalURL): (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/WebKitCocoa/LoadAlternateHTMLString.mm: (TEST): * TestWebKitAPI/Tests/WebKitCocoa/LoadInvalidURLRequest.mm: (literalURL): * TestWebKitAPI/Tests/WebKitGLib/TestCookieManager.cpp: * TestWebKitAPI/Tests/mac/LoadInvalidURLRequest.mm: (-[LoadInvalidURLWebFrameLoadDelegate webView:didFailProvisionalLoadWithError:forFrame:]): * TestWebKitAPI/Tests/mac/SSLKeyGenerator.mm: * TestWebKitAPI/win/PlatformUtilitiesWin.cpp: (TestWebKitAPI::Util::createURLForResource): * lldb/lldb_webkit.py: (__lldb_init_module): (WTFURL_SummaryProvider): (WTFURLProvider): (WebCoreURL_SummaryProvider): Deleted. (WebCoreURLProvider): Deleted. (WebCoreURLProvider.__init__): Deleted. (WebCoreURLProvider.to_string): Deleted. Canonical link: https://commits.webkit.org/206915@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@238771 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-12-01 03:28:36 +00:00
cocoa/NSURLExtras.mm
[bmalloc] Add IsoHeap test to ensure that IsoHeap pages are not allocating too large VA https://bugs.webkit.org/show_bug.cgi?id=200103 Reviewed by Mark Lam. Source/bmalloc: * bmalloc/IsoPage.cpp: Source/WebCore: No behavior change in WebCore. * page/MemoryRelease.cpp: * page/ResourceUsageThread.h: (WebCore::TagInfo::TagInfo): Deleted. * page/cocoa/ResourceUsageThreadCocoa.mm: (WebCore::vmPageSize): Deleted. (WebCore::logFootprintComparison): Deleted. (WebCore::displayNameForVMTag): Deleted. (WebCore::pagesPerVMTag): Deleted. Source/WebCore/PAL: Move VMTag page memory investigation code from PAL to WTF to reuse it in TestWTF. * PAL.xcodeproj/project.pbxproj: * pal/PlatformMac.cmake: Source/WebKit: Move MachVMSPI.h from PAL to WTF. * Platform/cocoa/SharedMemoryCocoa.cpp: Source/WTF: We move VMTag page investigation code from PAL to WTF to use it in TestWTF. And we also accumulate allocated VA size in `reserved` field of `TagInfo`. * WTF.xcodeproj/project.pbxproj: * wtf/CMakeLists.txt: * wtf/PlatformMac.cmake: * wtf/ResourceUsage.h: Added. * wtf/cocoa/MemoryPressureHandlerCocoa.mm: * wtf/cocoa/ResourceUsageCocoa.cpp: Added. (WTF::vmPageSize): (WTF::logFootprintComparison): (WTF::displayNameForVMTag): (WTF::pagesPerVMTag): * wtf/spi/cocoa/MachVMSPI.h: Added. Tools: This patch adds tests to TestWTF IsoHeap tests to ensure that IsoHeap's component is not leaking pages or not allocating too large VAs for memory allocation. We use VMTag to get the system view of the allocated VAs and check whether it is not incredibly large. While the tests are white-box tests (it means that this is a bit flaky to the implementation changes of IsoHeap), I adjusted some threshold to make this less-flaky to the future implementation changes while it catches the severe issues we had. * TestWebKitAPI/Tests/WTF/bmalloc/IsoHeap.cpp: (assertEmptyPointerSet): (assertHasOnlyObjects): (assertClean): (TEST): (allocateAndDeallocate): Canonical link: https://commits.webkit.org/213939@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@247815 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-07-25 03:42:09 +00:00
cocoa/ResourceUsageCocoa.cpp
[Cocoa] Push applicationSDKVersion() down from WebCore into WTF https://bugs.webkit.org/show_bug.cgi?id=209030 Reviewed by Simon Fraser. Source/JavaScriptCore: dyld_get_program_sdk_version() gives you the wrong answer in the Web Process (or at least not the answer you actually want). There are already facilities for the UI Process to tell the Web Process what the real value is, but those functions are currently in WebCore, which is inaccessible to WTF. This patch is in preparation for https://bugs.webkit.org/show_bug.cgi?id=208969 which needs to know this information in WTF. I also found a few places which were calling dyld_get_program_sdk_version() in JavaScriptCore and WebCore (which is wrong because those libraries exist in the Web Process), and have fixed them up to use applicationSDKVersion() instead. * API/JSWrapperMap.mm: (supportsInitMethodConstructors): Source/WebCore: * html/HTMLObjectElement.cpp: * html/MediaElementSession.cpp: (WebCore::MediaElementSession::requiresFullscreenForVideoPlayback const): * loader/DocumentThreadableLoader.cpp: (WebCore::DocumentThreadableLoader::makeCrossOriginAccessRequest): * platform/RuntimeApplicationChecks.h: * platform/Timer.cpp: (WebCore::shouldSuppressThreadSafetyCheck): * platform/cocoa/RuntimeApplicationChecksCocoa.mm: (WebCore::applicationSDKVersionOverride): Deleted. (WebCore::setApplicationSDKVersion): Deleted. (WebCore::applicationSDKVersion): Deleted. Source/WebKit: * NetworkProcess/cocoa/NetworkProcessCocoa.mm: (WebKit::NetworkProcess::platformInitializeNetworkProcessCocoa): * Shared/WebPreferencesDefaultValues.cpp: (WebKit::defaultCSSOMViewScrollingAPIEnabled): * WebProcess/cocoa/WebProcessCocoa.mm: (WebKit::WebProcess::platformInitializeWebProcess): Source/WTF: * WTF.xcodeproj/project.pbxproj: * wtf/PlatformMac.cmake: * wtf/cocoa/RuntimeApplicationChecksCocoa.cpp: Added. * wtf/cocoa/RuntimeApplicationChecksCocoa.h: Added. (WTF::applicationSDKVersionOverride): (WTF::setApplicationSDKVersion): (WTF::applicationSDKVersion): Canonical link: https://commits.webkit.org/221992@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@258447 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-03-13 23:33:33 +00:00
cocoa/RuntimeApplicationChecksCocoa.cpp
[WTF] Add signpost API https://bugs.webkit.org/show_bug.cgi?id=208395 Reviewed by Alex Christensen. We want to start using os_signpost instead of kdebug_trace when emitting performance events, because it is usually cheaper (doesn't require a system call unless the log buffer is full) and allows for richer tracepoints (allows for logging strings as well as integers). To facilitate this, this moves the os_signpost wrappers in NetworkDataTaskCocoa to WTF. Since signposts can contain sensitive strings (like URLs), currently we only enable them on Apple-internal devices when an environment variable is set. Source/WebCore/PAL: * PAL.xcodeproj/project.pbxproj: * pal/PlatformMac.cmake: * spi/darwin/OSVariantSPI.h: Renamed to wtf/spi/darwin/OSVariantSPI.h. Source/WebKit: * NetworkProcess/cocoa/NetworkDataTaskCocoa.mm: (WebKit::NetworkDataTaskCocoa::NetworkDataTaskCocoa): (WebKit::NetworkDataTaskCocoa::didSendData): (WebKit::NetworkDataTaskCocoa::didReceiveChallenge): (WebKit::NetworkDataTaskCocoa::didCompleteWithError): (WebKit::NetworkDataTaskCocoa::didReceiveData): (WebKit::NetworkDataTaskCocoa::didReceiveResponse): (WebKit::NetworkDataTaskCocoa::willPerformHTTPRedirection): (WebKit::NetworkDataTaskCocoa::cancel): (WebKit::NetworkDataTaskCocoa::resume): (signpostLogHandle): Deleted. (signpostsEnabled): Deleted. Source/WTF: * WTF.xcodeproj/project.pbxproj: * wtf/PlatformMac.cmake: * wtf/SystemTracing.h: * wtf/cocoa/SystemTracingCocoa.cpp: Added. (WTFSignpostsEnabled): (WTFSignpostLogHandle): * wtf/spi/darwin/OSVariantSPI.h: Renamed from Source/WebCore/PAL/pal/spi/cocoa/OSVariantSPI.h. Canonical link: https://commits.webkit.org/221415@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@257762 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-03-03 05:14:21 +00:00
cocoa/SystemTracingCocoa.cpp
Move URL from WebCore to WTF https://bugs.webkit.org/show_bug.cgi?id=190234 Patch by Alex Christensen <achristensen@webkit.org> on 2018-11-30 Reviewed by Keith Miller. Source/WebCore: A URL is a low-level concept that does not depend on other classes in WebCore. We are starting to use URLs in JavaScriptCore for modules. I need URL and URLParser in a place with fewer dependencies for rdar://problem/44119696 * Modules/applepay/ApplePaySession.h: * Modules/applepay/ApplePayValidateMerchantEvent.h: * Modules/applepay/PaymentCoordinator.cpp: * Modules/applepay/PaymentCoordinator.h: * Modules/applepay/PaymentCoordinatorClient.h: * Modules/applepay/PaymentSession.h: * Modules/applicationmanifest/ApplicationManifest.h: * Modules/beacon/NavigatorBeacon.cpp: * Modules/cache/DOMCache.cpp: * Modules/fetch/FetchLoader.h: * Modules/mediasession/MediaSessionMetadata.h: * Modules/mediasource/MediaSourceRegistry.cpp: * Modules/mediasource/MediaSourceRegistry.h: * Modules/mediastream/MediaStream.cpp: * Modules/mediastream/MediaStreamRegistry.cpp: * Modules/mediastream/MediaStreamRegistry.h: * Modules/navigatorcontentutils/NavigatorContentUtilsClient.h: * Modules/notifications/Notification.h: * Modules/paymentrequest/MerchantValidationEvent.h: * Modules/paymentrequest/PaymentRequest.h: * Modules/plugins/PluginReplacement.h: * Modules/webaudio/AudioContext.h: * Modules/websockets/ThreadableWebSocketChannel.h: * Modules/websockets/WebSocket.h: * Modules/websockets/WebSocketHandshake.cpp: * Modules/websockets/WebSocketHandshake.h: * Modules/websockets/WorkerThreadableWebSocketChannel.h: * PlatformMac.cmake: * PlatformWin.cmake: * Sources.txt: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * bindings/js/CachedModuleScriptLoader.h: * bindings/js/CachedScriptFetcher.h: * bindings/js/ScriptController.cpp: (WebCore::ScriptController::executeIfJavaScriptURL): * bindings/js/ScriptController.h: * bindings/js/ScriptModuleLoader.h: * bindings/js/ScriptSourceCode.h: * bindings/scripts/CodeGeneratorJS.pm: (GenerateImplementation): * bindings/scripts/test/JS/JSInterfaceName.cpp: * bindings/scripts/test/JS/JSMapLike.cpp: * bindings/scripts/test/JS/JSReadOnlyMapLike.cpp: * bindings/scripts/test/JS/JSTestActiveDOMObject.cpp: * bindings/scripts/test/JS/JSTestCEReactions.cpp: * bindings/scripts/test/JS/JSTestCEReactionsStringifier.cpp: * bindings/scripts/test/JS/JSTestCallTracer.cpp: * bindings/scripts/test/JS/JSTestClassWithJSBuiltinConstructor.cpp: * bindings/scripts/test/JS/JSTestCustomConstructorWithNoInterfaceObject.cpp: * bindings/scripts/test/JS/JSTestDOMJIT.cpp: * bindings/scripts/test/JS/JSTestEnabledBySetting.cpp: * bindings/scripts/test/JS/JSTestEventConstructor.cpp: * bindings/scripts/test/JS/JSTestEventTarget.cpp: * bindings/scripts/test/JS/JSTestException.cpp: * bindings/scripts/test/JS/JSTestGenerateIsReachable.cpp: * bindings/scripts/test/JS/JSTestGlobalObject.cpp: * bindings/scripts/test/JS/JSTestIndexedSetterNoIdentifier.cpp: * bindings/scripts/test/JS/JSTestIndexedSetterThrowingException.cpp: * bindings/scripts/test/JS/JSTestIndexedSetterWithIdentifier.cpp: * bindings/scripts/test/JS/JSTestInterface.cpp: * bindings/scripts/test/JS/JSTestInterfaceLeadingUnderscore.cpp: * bindings/scripts/test/JS/JSTestIterable.cpp: * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp: * bindings/scripts/test/JS/JSTestNamedAndIndexedSetterNoIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedAndIndexedSetterThrowingException.cpp: * bindings/scripts/test/JS/JSTestNamedAndIndexedSetterWithIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedConstructor.cpp: * bindings/scripts/test/JS/JSTestNamedDeleterNoIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedDeleterThrowingException.cpp: * bindings/scripts/test/JS/JSTestNamedDeleterWithIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedDeleterWithIndexedGetter.cpp: * bindings/scripts/test/JS/JSTestNamedGetterCallWith.cpp: * bindings/scripts/test/JS/JSTestNamedGetterNoIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedGetterWithIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedSetterNoIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedSetterThrowingException.cpp: * bindings/scripts/test/JS/JSTestNamedSetterWithIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedSetterWithIndexedGetter.cpp: * bindings/scripts/test/JS/JSTestNamedSetterWithIndexedGetterAndSetter.cpp: * bindings/scripts/test/JS/JSTestNamedSetterWithOverrideBuiltins.cpp: * bindings/scripts/test/JS/JSTestNamedSetterWithUnforgableProperties.cpp: * bindings/scripts/test/JS/JSTestNamedSetterWithUnforgablePropertiesAndOverrideBuiltins.cpp: * bindings/scripts/test/JS/JSTestNode.cpp: * bindings/scripts/test/JS/JSTestObj.cpp: * bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp: * bindings/scripts/test/JS/JSTestOverloadedConstructorsWithSequence.cpp: * bindings/scripts/test/JS/JSTestOverrideBuiltins.cpp: * bindings/scripts/test/JS/JSTestPluginInterface.cpp: * bindings/scripts/test/JS/JSTestPromiseRejectionEvent.cpp: * bindings/scripts/test/JS/JSTestSerialization.cpp: * bindings/scripts/test/JS/JSTestSerializationIndirectInheritance.cpp: * bindings/scripts/test/JS/JSTestSerializationInherit.cpp: * bindings/scripts/test/JS/JSTestSerializationInheritFinal.cpp: * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp: * bindings/scripts/test/JS/JSTestStringifier.cpp: * bindings/scripts/test/JS/JSTestStringifierAnonymousOperation.cpp: * bindings/scripts/test/JS/JSTestStringifierNamedOperation.cpp: * bindings/scripts/test/JS/JSTestStringifierOperationImplementedAs.cpp: * bindings/scripts/test/JS/JSTestStringifierOperationNamedToString.cpp: * bindings/scripts/test/JS/JSTestStringifierReadOnlyAttribute.cpp: * bindings/scripts/test/JS/JSTestStringifierReadWriteAttribute.cpp: * bindings/scripts/test/JS/JSTestTypedefs.cpp: * contentextensions/ContentExtensionsBackend.cpp: (WebCore::ContentExtensions::ContentExtensionsBackend::processContentExtensionRulesForLoad): (WebCore::ContentExtensions::ContentExtensionsBackend::processContentExtensionRulesForPingLoad): (WebCore::ContentExtensions::applyBlockedStatusToRequest): * contentextensions/ContentExtensionsBackend.h: * css/CSSValue.h: * css/StyleProperties.h: * css/StyleResolver.h: * css/StyleSheet.h: * css/StyleSheetContents.h: * css/parser/CSSParserContext.h: (WebCore::CSSParserContextHash::hash): (WTF::HashTraits<WebCore::CSSParserContext>::constructDeletedValue): * css/parser/CSSParserIdioms.h: * dom/DataTransfer.cpp: (WebCore::DataTransfer::setDataFromItemList): * dom/Document.cpp: (WebCore::Document::setURL): (WebCore::Document::processHttpEquiv): (WebCore::Document::completeURL const): (WebCore::Document::ensureTemplateDocument): * dom/Document.h: (WebCore::Document::urlForBindings const): * dom/Element.cpp: (WebCore::Element::isJavaScriptURLAttribute const): * dom/InlineStyleSheetOwner.cpp: (WebCore::parserContextForElement): * dom/Node.cpp: (WebCore::Node::baseURI const): * dom/Node.h: * dom/ScriptElement.h: * dom/ScriptExecutionContext.h: * dom/SecurityContext.h: * editing/Editor.cpp: (WebCore::Editor::pasteboardWriterURL): * editing/Editor.h: * editing/MarkupAccumulator.cpp: (WebCore::MarkupAccumulator::appendQuotedURLAttributeValue): * editing/cocoa/DataDetection.h: * editing/cocoa/EditorCocoa.mm: (WebCore::Editor::userVisibleString): * editing/cocoa/WebContentReaderCocoa.mm: (WebCore::replaceRichContentWithAttachments): (WebCore::WebContentReader::readWebArchive): * editing/mac/EditorMac.mm: (WebCore::Editor::plainTextFromPasteboard): (WebCore::Editor::writeImageToPasteboard): * editing/markup.cpp: (WebCore::removeSubresourceURLAttributes): (WebCore::createFragmentFromMarkup): * editing/markup.h: * fileapi/AsyncFileStream.cpp: * fileapi/AsyncFileStream.h: * fileapi/Blob.h: * fileapi/BlobURL.cpp: * fileapi/BlobURL.h: * fileapi/File.h: * fileapi/FileReaderLoader.h: * fileapi/ThreadableBlobRegistry.h: * history/CachedFrame.h: * history/HistoryItem.h: * html/DOMURL.cpp: (WebCore::DOMURL::create): * html/DOMURL.h: * html/HTMLAttachmentElement.cpp: (WebCore::HTMLAttachmentElement::archiveResourceURL): * html/HTMLFrameElementBase.cpp: (WebCore::HTMLFrameElementBase::isURLAllowed const): (WebCore::HTMLFrameElementBase::openURL): (WebCore::HTMLFrameElementBase::setLocation): * html/HTMLInputElement.h: * html/HTMLLinkElement.h: * html/HTMLMediaElement.cpp: (WTF::LogArgument<URL>::toString): (WTF::LogArgument<WebCore::URL>::toString): Deleted. * html/HTMLPlugInImageElement.cpp: (WebCore::HTMLPlugInImageElement::allowedToLoadFrameURL): * html/ImageBitmap.h: * html/MediaFragmentURIParser.h: * html/PublicURLManager.cpp: * html/PublicURLManager.h: * html/URLInputType.cpp: * html/URLRegistry.h: * html/URLSearchParams.cpp: (WebCore::URLSearchParams::URLSearchParams): (WebCore::URLSearchParams::toString const): (WebCore::URLSearchParams::updateURL): (WebCore::URLSearchParams::updateFromAssociatedURL): * html/URLUtils.h: (WebCore::URLUtils<T>::setHost): (WebCore::URLUtils<T>::setPort): * html/canvas/CanvasRenderingContext.cpp: * html/canvas/CanvasRenderingContext.h: * html/parser/HTMLParserIdioms.cpp: * html/parser/XSSAuditor.cpp: (WebCore::semicolonSeparatedValueContainsJavaScriptURL): (WebCore::XSSAuditor::filterScriptToken): (WebCore::XSSAuditor::filterObjectToken): (WebCore::XSSAuditor::filterParamToken): (WebCore::XSSAuditor::filterEmbedToken): (WebCore::XSSAuditor::filterFormToken): (WebCore::XSSAuditor::filterInputToken): (WebCore::XSSAuditor::filterButtonToken): (WebCore::XSSAuditor::eraseDangerousAttributesIfInjected): (WebCore::XSSAuditor::isLikelySafeResource): * html/parser/XSSAuditor.h: * html/parser/XSSAuditorDelegate.h: * inspector/InspectorFrontendHost.cpp: (WebCore::InspectorFrontendHost::openInNewTab): * inspector/InspectorInstrumentation.h: * inspector/agents/InspectorNetworkAgent.cpp: * inspector/agents/InspectorNetworkAgent.h: * inspector/agents/InspectorPageAgent.h: * inspector/agents/InspectorWorkerAgent.h: * loader/ApplicationManifestLoader.h: * loader/CookieJar.h: * loader/CrossOriginAccessControl.h: * loader/CrossOriginPreflightResultCache.h: * loader/DocumentLoader.cpp: (WebCore::DocumentLoader::willSendRequest): (WebCore::DocumentLoader::maybeLoadEmpty): * loader/DocumentLoader.h: (WebCore::DocumentLoader::serverRedirectSourceForHistory const): * loader/DocumentWriter.h: * loader/FormSubmission.h: * loader/FrameLoader.cpp: (WebCore::FrameLoader::submitForm): (WebCore::FrameLoader::receivedFirstData): (WebCore::FrameLoader::loadWithDocumentLoader): (WebCore::FrameLoader::continueLoadAfterNavigationPolicy): (WebCore::createWindow): * loader/FrameLoaderClient.h: * loader/HistoryController.cpp: (WebCore::HistoryController::currentItemShouldBeReplaced const): (WebCore::HistoryController::initializeItem): * loader/LinkLoader.h: * loader/LoadTiming.h: * loader/LoaderStrategy.h: * loader/MixedContentChecker.cpp: (WebCore::MixedContentChecker::checkFormForMixedContent const): * loader/MixedContentChecker.h: * loader/NavigationScheduler.cpp: (WebCore::NavigationScheduler::shouldScheduleNavigation const): * loader/NavigationScheduler.h: * loader/PingLoader.h: * loader/PolicyChecker.cpp: (WebCore::PolicyChecker::checkNavigationPolicy): * loader/ResourceLoadInfo.h: * loader/ResourceLoadObserver.cpp: (WebCore::ResourceLoadObserver::requestStorageAccessUnderOpener): * loader/ResourceLoadObserver.h: * loader/ResourceLoadStatistics.h: * loader/ResourceLoader.h: * loader/ResourceTiming.h: * loader/SubframeLoader.cpp: (WebCore::SubframeLoader::requestFrame): * loader/SubframeLoader.h: * loader/SubstituteData.h: * loader/appcache/ApplicationCache.h: * loader/appcache/ApplicationCacheGroup.h: * loader/appcache/ApplicationCacheHost.h: * loader/appcache/ApplicationCacheStorage.cpp: * loader/appcache/ApplicationCacheStorage.h: * loader/appcache/ManifestParser.cpp: * loader/appcache/ManifestParser.h: * loader/archive/ArchiveResourceCollection.h: * loader/archive/cf/LegacyWebArchive.cpp: (WebCore::LegacyWebArchive::createFromSelection): * loader/cache/CachedResource.cpp: * loader/cache/CachedResourceLoader.h: * loader/cache/CachedStyleSheetClient.h: * loader/cache/MemoryCache.h: * loader/icon/IconLoader.h: * loader/mac/LoaderNSURLExtras.mm: * page/CaptionUserPreferencesMediaAF.cpp: * page/ChromeClient.h: * page/ClientOrigin.h: * page/ContextMenuClient.h: * page/ContextMenuController.cpp: (WebCore::ContextMenuController::checkOrEnableIfNeeded const): * page/DOMWindow.cpp: (WebCore::DOMWindow::isInsecureScriptAccess): * page/DragController.cpp: (WebCore::DragController::startDrag): * page/DragController.h: * page/EventSource.h: * page/Frame.h: * page/FrameView.h: * page/History.h: * page/Location.cpp: (WebCore::Location::url const): (WebCore::Location::reload): * page/Location.h: * page/Page.h: * page/PageSerializer.h: * page/Performance.h: * page/PerformanceResourceTiming.cpp: * page/SecurityOrigin.cpp: (WebCore::SecurityOrigin::SecurityOrigin): (WebCore::SecurityOrigin::create): * page/SecurityOrigin.h: * page/SecurityOriginData.h: * page/SecurityOriginHash.h: * page/SecurityPolicy.cpp: (WebCore::SecurityPolicy::shouldInheritSecurityOriginFromOwner): * page/SecurityPolicy.h: * page/SettingsBase.h: * page/ShareData.h: * page/SocketProvider.h: * page/UserContentProvider.h: * page/UserContentURLPattern.cpp: * page/UserContentURLPattern.h: * page/UserScript.h: * page/UserStyleSheet.h: * page/VisitedLinkStore.h: * page/csp/ContentSecurityPolicy.h: * page/csp/ContentSecurityPolicyClient.h: * page/csp/ContentSecurityPolicyDirectiveList.h: * page/csp/ContentSecurityPolicySource.cpp: (WebCore::ContentSecurityPolicySource::portMatches const): * page/csp/ContentSecurityPolicySource.h: * page/csp/ContentSecurityPolicySourceList.cpp: * page/csp/ContentSecurityPolicySourceList.h: * page/csp/ContentSecurityPolicySourceListDirective.cpp: * platform/ContentFilterUnblockHandler.h: * platform/ContextMenuItem.h: * platform/Cookie.h: * platform/CookiesStrategy.h: * platform/DragData.h: * platform/DragImage.h: * platform/FileStream.h: * platform/LinkIcon.h: * platform/Pasteboard.cpp: (WebCore::Pasteboard::canExposeURLToDOMWhenPasteboardContainsFiles): * platform/Pasteboard.h: * platform/PasteboardStrategy.h: * platform/PasteboardWriterData.cpp: (WebCore::PasteboardWriterData::setURLData): (WebCore::PasteboardWriterData::setURL): Deleted. * platform/PasteboardWriterData.h: * platform/PlatformPasteboard.h: * platform/PromisedAttachmentInfo.h: * platform/SSLKeyGenerator.h: * platform/SchemeRegistry.cpp: (WebCore::SchemeRegistry::isBuiltinScheme): * platform/SharedBuffer.h: * platform/SharedStringHash.cpp: * platform/SharedStringHash.h: * platform/SourcesSoup.txt: * platform/UserAgent.h: * platform/UserAgentQuirks.cpp: * platform/UserAgentQuirks.h: * platform/cocoa/NetworkExtensionContentFilter.h: * platform/cocoa/NetworkExtensionContentFilter.mm: (WebCore::NetworkExtensionContentFilter::willSendRequest): * platform/glib/SSLKeyGeneratorGLib.cpp: Copied from Source/WebCore/page/ShareData.h. (WebCore::getSupportedKeySizes): (WebCore::signedPublicKeyAndChallengeString): * platform/glib/UserAgentGLib.cpp: * platform/graphics/GraphicsContext.h: * platform/graphics/Image.cpp: * platform/graphics/Image.h: * platform/graphics/ImageObserver.h: * platform/graphics/ImageSource.cpp: * platform/graphics/ImageSource.h: * platform/graphics/MediaPlayer.h: * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp: * platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp: * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: * platform/graphics/cg/GraphicsContextCG.cpp: * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp: * platform/graphics/gstreamer/mse/MediaPlayerPrivateGStreamerMSE.cpp: * platform/graphics/gstreamer/mse/WebKitMediaSourceGStreamer.cpp: (webKitMediaSrcSetUri): * platform/graphics/iso/ISOVTTCue.cpp: * platform/graphics/win/GraphicsContextDirect2D.cpp: * platform/gtk/DragImageGtk.cpp: * platform/gtk/PasteboardGtk.cpp: * platform/gtk/PlatformPasteboardGtk.cpp: * platform/gtk/SelectionData.h: * platform/ios/PasteboardIOS.mm: * platform/ios/PlatformPasteboardIOS.mm: (WebCore::PlatformPasteboard::write): * platform/ios/QuickLook.h: * platform/mac/DragDataMac.mm: (WebCore::DragData::asPlainText const): * platform/mac/DragImageMac.mm: * platform/mac/FileSystemMac.mm: (WebCore::FileSystem::setMetadataURL): * platform/mac/PasteboardMac.mm: * platform/mac/PasteboardWriter.mm: (WebCore::createPasteboardWriter): * platform/mac/PlatformPasteboardMac.mm: * platform/mac/PublicSuffixMac.mm: (WebCore::decodeHostName): * platform/mac/SSLKeyGeneratorMac.mm: * platform/mac/WebCoreNSURLExtras.h: * platform/mac/WebCoreNSURLExtras.mm: (WebCore::isArmenianLookalikeCharacter): Deleted. (WebCore::isArmenianScriptCharacter): Deleted. (WebCore::isASCIIDigitOrValidHostCharacter): Deleted. (WebCore::isLookalikeCharacter): Deleted. (WebCore::whiteListIDNScript): Deleted. (WebCore::readIDNScriptWhiteListFile): Deleted. (WebCore::allCharactersInIDNScriptWhiteList): Deleted. (WebCore::isSecondLevelDomainNameAllowedByTLDRules): Deleted. (WebCore::isRussianDomainNameCharacter): Deleted. (WebCore::allCharactersAllowedByTLDRules): Deleted. (WebCore::mapHostNameWithRange): Deleted. (WebCore::hostNameNeedsDecodingWithRange): Deleted. (WebCore::hostNameNeedsEncodingWithRange): Deleted. (WebCore::decodeHostNameWithRange): Deleted. (WebCore::encodeHostNameWithRange): Deleted. (WebCore::decodeHostName): Deleted. (WebCore::encodeHostName): Deleted. (WebCore::collectRangesThatNeedMapping): Deleted. (WebCore::collectRangesThatNeedEncoding): Deleted. (WebCore::collectRangesThatNeedDecoding): Deleted. (WebCore::applyHostNameFunctionToMailToURLString): Deleted. (WebCore::applyHostNameFunctionToURLString): Deleted. (WebCore::mapHostNames): Deleted. (WebCore::stringByTrimmingWhitespace): Deleted. (WebCore::URLByTruncatingOneCharacterBeforeComponent): Deleted. (WebCore::URLByRemovingResourceSpecifier): Deleted. (WebCore::URLWithData): Deleted. (WebCore::dataWithUserTypedString): Deleted. (WebCore::URLWithUserTypedString): Deleted. (WebCore::URLWithUserTypedStringDeprecated): Deleted. (WebCore::hasQuestionMarkOnlyQueryString): Deleted. (WebCore::dataForURLComponentType): Deleted. (WebCore::URLByRemovingComponentAndSubsequentCharacter): Deleted. (WebCore::URLByRemovingUserInfo): Deleted. (WebCore::originalURLData): Deleted. (WebCore::createStringWithEscapedUnsafeCharacters): Deleted. (WebCore::userVisibleString): Deleted. (WebCore::isUserVisibleURL): Deleted. (WebCore::rangeOfURLScheme): Deleted. (WebCore::looksLikeAbsoluteURL): Deleted. * platform/mediastream/MediaEndpointConfiguration.h: * platform/network/BlobPart.h: * platform/network/BlobRegistry.h: * platform/network/BlobRegistryImpl.h: * platform/network/BlobResourceHandle.cpp: * platform/network/CookieRequestHeaderFieldProxy.h: * platform/network/CredentialStorage.cpp: * platform/network/CredentialStorage.h: * platform/network/DataURLDecoder.cpp: * platform/network/DataURLDecoder.h: * platform/network/FormData.h: * platform/network/ProxyServer.h: * platform/network/ResourceErrorBase.h: * platform/network/ResourceHandle.cpp: (WebCore::ResourceHandle::didReceiveResponse): * platform/network/ResourceHandle.h: * platform/network/ResourceHandleClient.h: * platform/network/ResourceRequestBase.cpp: (WebCore::ResourceRequestBase::redirectedRequest const): * platform/network/ResourceRequestBase.h: * platform/network/ResourceResponseBase.h: * platform/network/SocketStreamHandle.h: * platform/network/cf/DNSResolveQueueCFNet.cpp: * platform/network/cf/NetworkStorageSessionCFNet.cpp: * platform/network/cf/ProxyServerCFNet.cpp: * platform/network/cf/ResourceErrorCF.cpp: * platform/network/cocoa/NetworkStorageSessionCocoa.mm: * platform/network/curl/CookieJarCurlDatabase.cpp: Added. (WebCore::cookiesForSession): (WebCore::CookieJarCurlDatabase::setCookiesFromDOM const): (WebCore::CookieJarCurlDatabase::setCookiesFromHTTPResponse const): (WebCore::CookieJarCurlDatabase::cookiesForDOM const): (WebCore::CookieJarCurlDatabase::cookieRequestHeaderFieldValue const): (WebCore::CookieJarCurlDatabase::cookiesEnabled const): (WebCore::CookieJarCurlDatabase::getRawCookies const): (WebCore::CookieJarCurlDatabase::deleteCookie const): (WebCore::CookieJarCurlDatabase::getHostnamesWithCookies const): (WebCore::CookieJarCurlDatabase::deleteCookiesForHostnames const): (WebCore::CookieJarCurlDatabase::deleteAllCookies const): (WebCore::CookieJarCurlDatabase::deleteAllCookiesModifiedSince const): * platform/network/curl/CookieJarDB.cpp: * platform/network/curl/CookieUtil.h: * platform/network/curl/CurlContext.h: * platform/network/curl/CurlProxySettings.h: * platform/network/curl/CurlResponse.h: * platform/network/curl/NetworkStorageSessionCurl.cpp: * platform/network/curl/ProxyServerCurl.cpp: * platform/network/curl/SocketStreamHandleImplCurl.cpp: * platform/network/mac/ResourceErrorMac.mm: * platform/network/soup/NetworkStorageSessionSoup.cpp: * platform/network/soup/ProxyServerSoup.cpp: * platform/network/soup/ResourceHandleSoup.cpp: * platform/network/soup/ResourceRequest.h: * platform/network/soup/ResourceRequestSoup.cpp: * platform/network/soup/SocketStreamHandleImplSoup.cpp: * platform/network/soup/SoupNetworkSession.cpp: * platform/network/soup/SoupNetworkSession.h: * platform/text/TextEncoding.h: * platform/win/BString.cpp: * platform/win/BString.h: * platform/win/ClipboardUtilitiesWin.cpp: (WebCore::markupToCFHTML): * platform/win/ClipboardUtilitiesWin.h: * platform/win/DragImageWin.cpp: * platform/win/PasteboardWin.cpp: * plugins/PluginData.h: * rendering/HitTestResult.h: * rendering/RenderAttachment.cpp: * svg/SVGImageLoader.cpp: (WebCore::SVGImageLoader::sourceURI const): * svg/SVGURIReference.cpp: * svg/graphics/SVGImage.h: * svg/graphics/SVGImageCache.h: * svg/graphics/SVGImageForContainer.h: * testing/Internals.cpp: (WebCore::Internals::resetToConsistentState): * testing/Internals.mm: (WebCore::Internals::userVisibleString): * testing/MockContentFilter.cpp: (WebCore::MockContentFilter::willSendRequest): * testing/MockPaymentCoordinator.cpp: * testing/js/WebCoreTestSupport.cpp: * workers/AbstractWorker.h: * workers/WorkerGlobalScope.h: * workers/WorkerGlobalScopeProxy.h: * workers/WorkerInspectorProxy.h: * workers/WorkerLocation.h: * workers/WorkerScriptLoader.h: * workers/WorkerThread.cpp: * workers/WorkerThread.h: * workers/service/ServiceWorker.h: * workers/service/ServiceWorkerClientData.h: * workers/service/ServiceWorkerContainer.cpp: * workers/service/ServiceWorkerContextData.h: * workers/service/ServiceWorkerData.h: * workers/service/ServiceWorkerJobData.h: * workers/service/ServiceWorkerRegistrationKey.cpp: * workers/service/ServiceWorkerRegistrationKey.h: (WTF::HashTraits<WebCore::ServiceWorkerRegistrationKey>::constructDeletedValue): * worklets/WorkletGlobalScope.h: * xml/XMLHttpRequest.h: Source/WebKit: * NetworkProcess/Cookies/WebCookieManager.cpp: * NetworkProcess/Cookies/WebCookieManager.h: * NetworkProcess/Cookies/WebCookieManager.messages.in: * NetworkProcess/CustomProtocols/Cocoa/LegacyCustomProtocolManagerCocoa.mm: * NetworkProcess/Downloads/Download.h: * NetworkProcess/Downloads/DownloadManager.cpp: (WebKit::DownloadManager::publishDownloadProgress): * NetworkProcess/Downloads/DownloadManager.h: * NetworkProcess/Downloads/PendingDownload.cpp: (WebKit::PendingDownload::publishProgress): * NetworkProcess/Downloads/PendingDownload.h: * NetworkProcess/Downloads/cocoa/DownloadCocoa.mm: (WebKit::Download::publishProgress): * NetworkProcess/FileAPI/NetworkBlobRegistry.cpp: (WebKit::NetworkBlobRegistry::registerBlobURL): (WebKit::NetworkBlobRegistry::registerBlobURLForSlice): (WebKit::NetworkBlobRegistry::unregisterBlobURL): (WebKit::NetworkBlobRegistry::blobSize): (WebKit::NetworkBlobRegistry::filesInBlob): * NetworkProcess/FileAPI/NetworkBlobRegistry.h: * NetworkProcess/NetworkConnectionToWebProcess.h: * NetworkProcess/NetworkConnectionToWebProcess.messages.in: * NetworkProcess/NetworkDataTask.cpp: (WebKit::NetworkDataTask::didReceiveResponse): * NetworkProcess/NetworkDataTaskBlob.cpp: * NetworkProcess/NetworkLoadChecker.h: (WebKit::NetworkLoadChecker::setContentExtensionController): (WebKit::NetworkLoadChecker::url const): * NetworkProcess/NetworkProcess.cpp: (WebKit::NetworkProcess::writeBlobToFilePath): (WebKit::NetworkProcess::publishDownloadProgress): (WebKit::NetworkProcess::preconnectTo): * NetworkProcess/NetworkProcess.h: * NetworkProcess/NetworkProcess.messages.in: * NetworkProcess/NetworkResourceLoadParameters.h: * NetworkProcess/NetworkResourceLoader.cpp: (WebKit::logBlockedCookieInformation): (WebKit::logCookieInformationInternal): * NetworkProcess/NetworkResourceLoader.h: * NetworkProcess/NetworkSocketStream.cpp: (WebKit::NetworkSocketStream::create): * NetworkProcess/NetworkSocketStream.h: * NetworkProcess/PingLoad.h: * NetworkProcess/ServiceWorker/WebSWServerConnection.h: * NetworkProcess/ServiceWorker/WebSWServerConnection.messages.in: * NetworkProcess/ServiceWorker/WebSWServerToContextConnection.messages.in: * NetworkProcess/cache/CacheStorageEngine.cpp: (WebKit::CacheStorage::Engine::retrieveRecords): * NetworkProcess/cache/CacheStorageEngine.h: * NetworkProcess/cache/CacheStorageEngineCache.h: * NetworkProcess/cache/CacheStorageEngineConnection.cpp: (WebKit::CacheStorageEngineConnection::retrieveRecords): * NetworkProcess/cache/CacheStorageEngineConnection.h: * NetworkProcess/cache/CacheStorageEngineConnection.messages.in: * NetworkProcess/cache/NetworkCache.h: * NetworkProcess/cache/NetworkCacheStatistics.cpp: (WebKit::NetworkCache::Statistics::recordRetrievedCachedEntry): (WebKit::NetworkCache::Statistics::recordRevalidationSuccess): * NetworkProcess/cache/NetworkCacheSubresourcesEntry.h: (WebKit::NetworkCache::SubresourceInfo::firstPartyForCookies const): * NetworkProcess/capture/NetworkCaptureEvent.cpp: (WebKit::NetworkCapture::Request::operator WebCore::ResourceRequest const): (WebKit::NetworkCapture::Response::operator WebCore::ResourceResponse const): (WebKit::NetworkCapture::Error::operator WebCore::ResourceError const): * NetworkProcess/capture/NetworkCaptureManager.cpp: (WebKit::NetworkCapture::Manager::findBestFuzzyMatch): (WebKit::NetworkCapture::Manager::fuzzyMatchURLs): (WebKit::NetworkCapture::Manager::urlIdentifyingCommonDomain): * NetworkProcess/capture/NetworkCaptureManager.h: * NetworkProcess/capture/NetworkCaptureResource.cpp: (WebKit::NetworkCapture::Resource::url): (WebKit::NetworkCapture::Resource::queryParameters): * NetworkProcess/capture/NetworkCaptureResource.h: * NetworkProcess/cocoa/NetworkDataTaskCocoa.mm: (WebKit::NetworkDataTaskCocoa::willPerformHTTPRedirection): * NetworkProcess/cocoa/NetworkProcessCocoa.mm: (WebKit::NetworkProcess::deleteHSTSCacheForHostNames): * NetworkProcess/cocoa/NetworkSessionCocoa.mm: (-[WKNetworkSessionDelegate URLSession:task:didReceiveChallenge:completionHandler:]): * PluginProcess/mac/PluginProcessMac.mm: (WebKit::openCFURLRef): (WebKit::replacedNSWorkspace_launchApplicationAtURL_options_configuration_error): * Shared/API/APIURL.h: (API::URL::create): (API::URL::equals): (API::URL::URL): (API::URL::url const): (API::URL::parseURLIfNecessary const): * Shared/API/APIUserContentURLPattern.h: (API::UserContentURLPattern::matchesURL const): * Shared/API/c/WKURLRequest.cpp: * Shared/API/c/WKURLResponse.cpp: * Shared/API/c/cf/WKURLCF.mm: (WKURLCreateWithCFURL): (WKURLCopyCFURL): * Shared/API/glib/WebKitURIRequest.cpp: * Shared/API/glib/WebKitURIResponse.cpp: * Shared/APIWebArchiveResource.mm: (API::WebArchiveResource::WebArchiveResource): * Shared/AssistedNodeInformation.h: * Shared/Cocoa/WKNSURLExtras.mm: (-[NSURL _web_originalDataAsWTFString]): (): Deleted. * Shared/SessionState.h: * Shared/WebBackForwardListItem.cpp: (WebKit::WebBackForwardListItem::itemIsInSameDocument const): * Shared/WebCoreArgumentCoders.cpp: * Shared/WebCoreArgumentCoders.h: * Shared/WebErrors.h: * Shared/WebHitTestResultData.cpp: * Shared/cf/ArgumentCodersCF.cpp: (IPC::encode): (IPC::decode): * Shared/gtk/WebErrorsGtk.cpp: * Shared/ios/InteractionInformationAtPosition.h: * UIProcess/API/APIHTTPCookieStore.h: * UIProcess/API/APINavigation.cpp: (API::Navigation::appendRedirectionURL): * UIProcess/API/APINavigation.h: (API::Navigation::takeRedirectChain): * UIProcess/API/APINavigationAction.h: * UIProcess/API/APINavigationClient.h: (API::NavigationClient::signedPublicKeyAndChallengeString): (API::NavigationClient::contentRuleListNotification): (API::NavigationClient::webGLLoadPolicy const): (API::NavigationClient::resolveWebGLLoadPolicy const): * UIProcess/API/APIUIClient.h: (API::UIClient::saveDataToFileInDownloadsFolder): * UIProcess/API/APIUserScript.cpp: (API::UserScript::generateUniqueURL): * UIProcess/API/APIUserScript.h: * UIProcess/API/APIUserStyleSheet.cpp: (API::UserStyleSheet::generateUniqueURL): * UIProcess/API/APIUserStyleSheet.h: * UIProcess/API/C/WKOpenPanelResultListener.cpp: (filePathsFromFileURLs): * UIProcess/API/C/WKPage.cpp: (WKPageLoadPlainTextStringWithUserData): (WKPageSetPageUIClient): (WKPageSetPageNavigationClient): * UIProcess/API/C/WKPageGroup.cpp: (WKPageGroupAddUserStyleSheet): (WKPageGroupAddUserScript): * UIProcess/API/C/WKWebsiteDataStoreRef.cpp: (WKWebsiteDataStoreSetResourceLoadStatisticsPrevalentResourceForDebugMode): (WKWebsiteDataStoreSetStatisticsLastSeen): (WKWebsiteDataStoreSetStatisticsPrevalentResource): (WKWebsiteDataStoreSetStatisticsVeryPrevalentResource): (WKWebsiteDataStoreIsStatisticsPrevalentResource): (WKWebsiteDataStoreIsStatisticsVeryPrevalentResource): (WKWebsiteDataStoreIsStatisticsRegisteredAsSubresourceUnder): (WKWebsiteDataStoreIsStatisticsRegisteredAsSubFrameUnder): (WKWebsiteDataStoreIsStatisticsRegisteredAsRedirectingTo): (WKWebsiteDataStoreSetStatisticsHasHadUserInteraction): (WKWebsiteDataStoreIsStatisticsHasHadUserInteraction): (WKWebsiteDataStoreSetStatisticsGrandfathered): (WKWebsiteDataStoreIsStatisticsGrandfathered): (WKWebsiteDataStoreSetStatisticsSubframeUnderTopFrameOrigin): (WKWebsiteDataStoreSetStatisticsSubresourceUnderTopFrameOrigin): (WKWebsiteDataStoreSetStatisticsSubresourceUniqueRedirectTo): (WKWebsiteDataStoreSetStatisticsSubresourceUniqueRedirectFrom): (WKWebsiteDataStoreSetStatisticsTopFrameUniqueRedirectTo): (WKWebsiteDataStoreSetStatisticsTopFrameUniqueRedirectFrom): * UIProcess/API/Cocoa/WKHTTPCookieStore.mm: * UIProcess/API/Cocoa/WKUserScript.mm: (-[WKUserScript _initWithSource:injectionTime:forMainFrameOnly:legacyWhitelist:legacyBlacklist:associatedURL:userContentWorld:]): * UIProcess/API/Cocoa/WKWebView.mm: (-[WKWebView _showSafeBrowsingWarning:completionHandler:]): (-[WKWebView _showSafeBrowsingWarningWithTitle:warning:details:completionHandler:]): * UIProcess/API/Cocoa/WKWebViewConfiguration.mm: (-[WKWebViewConfiguration setURLSchemeHandler:forURLScheme:]): (-[WKWebViewConfiguration urlSchemeHandlerForURLScheme:]): * UIProcess/API/Cocoa/WKWebViewInternal.h: * UIProcess/API/Cocoa/WKWebsiteDataStore.mm: * UIProcess/API/Cocoa/_WKApplicationManifest.mm: (-[_WKApplicationManifest initWithCoder:]): (+[_WKApplicationManifest applicationManifestFromJSON:manifestURL:documentURL:]): * UIProcess/API/Cocoa/_WKUserStyleSheet.mm: (-[_WKUserStyleSheet initWithSource:forMainFrameOnly:legacyWhitelist:legacyBlacklist:baseURL:userContentWorld:]): * UIProcess/API/glib/IconDatabase.cpp: * UIProcess/API/glib/WebKitCookieManager.cpp: (webkit_cookie_manager_get_cookies): * UIProcess/API/glib/WebKitFileChooserRequest.cpp: * UIProcess/API/glib/WebKitSecurityOrigin.cpp: (webkit_security_origin_new_for_uri): * UIProcess/API/glib/WebKitUIClient.cpp: * UIProcess/API/glib/WebKitURISchemeRequest.cpp: * UIProcess/API/glib/WebKitWebView.cpp: (webkit_web_view_load_plain_text): * UIProcess/API/gtk/WebKitRemoteInspectorProtocolHandler.cpp: * UIProcess/ApplePay/WebPaymentCoordinatorProxy.cpp: (WebKit::WebPaymentCoordinatorProxy::showPaymentUI): (WebKit::WebPaymentCoordinatorProxy::validateMerchant): * UIProcess/ApplePay/WebPaymentCoordinatorProxy.h: * UIProcess/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.h: * UIProcess/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm: (WebKit::toPKPaymentRequest): * UIProcess/ApplePay/ios/WebPaymentCoordinatorProxyIOS.mm: (WebKit::WebPaymentCoordinatorProxy::platformShowPaymentUI): * UIProcess/ApplePay/mac/WebPaymentCoordinatorProxyMac.mm: (WebKit::WebPaymentCoordinatorProxy::platformShowPaymentUI): * UIProcess/Automation/WebAutomationSession.cpp: (WebKit::WebAutomationSession::navigateBrowsingContext): (WebKit::domainByAddingDotPrefixIfNeeded): (WebKit::WebAutomationSession::addSingleCookie): (WebKit::WebAutomationSession::deleteAllCookies): * UIProcess/Cocoa/DownloadClient.mm: (WebKit::DownloadClient::didFinish): * UIProcess/Cocoa/NavigationState.h: * UIProcess/Cocoa/NavigationState.mm: (WebKit::NavigationState::NavigationClient::webGLLoadPolicy const): (WebKit::NavigationState::NavigationClient::resolveWebGLLoadPolicy const): (WebKit::NavigationState::NavigationClient::contentRuleListNotification): (WebKit::NavigationState::NavigationClient::willPerformClientRedirect): (WebKit::NavigationState::NavigationClient::didPerformClientRedirect): (WebKit::NavigationState::NavigationClient::signedPublicKeyAndChallengeString): * UIProcess/Cocoa/SafeBrowsingResultCocoa.mm: Copied from Source/WebKit/WebProcess/Network/WebSocketProvider.h. (WebKit::SafeBrowsingResult::SafeBrowsingResult): * UIProcess/Cocoa/SafeBrowsingWarningCocoa.mm: (WebKit::reportAnErrorURL): (WebKit::malwareDetailsURL): (WebKit::safeBrowsingDetailsText): (WebKit::SafeBrowsingWarning::SafeBrowsingWarning): * UIProcess/Cocoa/SystemPreviewControllerCocoa.mm: (-[_WKPreviewControllerDataSource finish:]): (WebKit::SystemPreviewController::finish): * UIProcess/Cocoa/UIDelegate.h: * UIProcess/Cocoa/UIDelegate.mm: (WebKit::UIDelegate::UIClient::createNewPage): (WebKit::UIDelegate::UIClient::saveDataToFileInDownloadsFolder): (WebKit::requestUserMediaAuthorizationForDevices): (WebKit::UIDelegate::UIClient::checkUserMediaPermissionForOrigin): * UIProcess/Cocoa/WKReloadFrameErrorRecoveryAttempter.mm: (-[WKReloadFrameErrorRecoveryAttempter attemptRecovery]): * UIProcess/Cocoa/WKSafeBrowsingWarning.h: * UIProcess/Cocoa/WKSafeBrowsingWarning.mm: (-[WKSafeBrowsingWarning initWithFrame:safeBrowsingWarning:completionHandler:]): * UIProcess/Cocoa/WebPasteboardProxyCocoa.mm: * UIProcess/Cocoa/WebViewImpl.h: * UIProcess/Cocoa/WebViewImpl.mm: (WebKit::WebViewImpl::showSafeBrowsingWarning): (WebKit::WebViewImpl::writeToURLForFilePromiseProvider): * UIProcess/Downloads/DownloadProxy.cpp: (WebKit::DownloadProxy::publishProgress): * UIProcess/Downloads/DownloadProxy.h: (WebKit::DownloadProxy::setRedirectChain): (WebKit::DownloadProxy::redirectChain const): * UIProcess/FrameLoadState.cpp: (WebKit::FrameLoadState::didStartProvisionalLoad): (WebKit::FrameLoadState::didReceiveServerRedirectForProvisionalLoad): (WebKit::FrameLoadState::didSameDocumentNotification): (WebKit::FrameLoadState::setUnreachableURL): * UIProcess/FrameLoadState.h: (WebKit::FrameLoadState::url const): (WebKit::FrameLoadState::setURL): (WebKit::FrameLoadState::provisionalURL const): (WebKit::FrameLoadState::unreachableURL const): * UIProcess/Network/NetworkProcessProxy.cpp: (WebKit::NetworkProcessProxy::writeBlobToFilePath): * UIProcess/Network/NetworkProcessProxy.h: * UIProcess/PageClient.h: (WebKit::PageClient::showSafeBrowsingWarning): * UIProcess/PageLoadState.cpp: (WebKit::PageLoadState::hasOnlySecureContent): * UIProcess/Plugins/PluginInfoStore.cpp: * UIProcess/Plugins/PluginInfoStore.h: * UIProcess/Plugins/mac/PluginProcessProxyMac.mm: * UIProcess/SafeBrowsingResult.h: Copied from Source/WebKit/UIProcess/SystemPreviewController.h. (WebKit::SafeBrowsingResult::create): (WebKit::SafeBrowsingResult::url const): (WebKit::SafeBrowsingResult::provider const): (WebKit::SafeBrowsingResult::isPhishing const): (WebKit::SafeBrowsingResult::isMalware const): (WebKit::SafeBrowsingResult::isUnwantedSoftware const): (WebKit::SafeBrowsingResult::isKnownToBeUnsafe const): * UIProcess/SafeBrowsingWarning.h: (WebKit::SafeBrowsingWarning::create): * UIProcess/SuspendedPageProxy.cpp: * UIProcess/SystemPreviewController.h: * UIProcess/WebCookieManagerProxy.h: * UIProcess/WebFrameProxy.h: (WebKit::WebFrameProxy::url const): (WebKit::WebFrameProxy::provisionalURL const): (WebKit::WebFrameProxy::unreachableURL const): * UIProcess/WebInspectorProxy.h: * UIProcess/WebOpenPanelResultListenerProxy.cpp: * UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::loadDataWithNavigation): (WebKit::WebPageProxy::loadAlternateHTML): (WebKit::WebPageProxy::loadWebArchiveData): (WebKit::WebPageProxy::navigateToPDFLinkWithSimulatedClick): (WebKit::WebPageProxy::continueNavigationInNewProcess): (WebKit::WebPageProxy::didStartProvisionalLoadForFrame): (WebKit::WebPageProxy::didChangeProvisionalURLForFrame): (WebKit::WebPageProxy::didSameDocumentNavigationForFrame): (WebKit::WebPageProxy::contentRuleListNotification): (WebKit::WebPageProxy::processDidTerminate): (WebKit::WebPageProxy::signedPublicKeyAndChallengeString): (WebKit::WebPageProxy::setURLSchemeHandlerForScheme): * UIProcess/WebPageProxy.h: * UIProcess/WebPageProxy.messages.in: * UIProcess/WebProcessPool.cpp: (WebKit::WebProcessPool::tryPrewarmWithDomainInformation): * UIProcess/WebProcessPool.h: * UIProcess/WebProcessProxy.cpp: (WebKit::WebProcessProxy::processDidTerminateOrFailedToLaunch): * UIProcess/WebProcessProxy.h: * UIProcess/WebResourceLoadStatisticsStore.cpp: (WebKit::WebResourceLoadStatisticsStore::setPrevalentResourceForDebugMode): (WebKit::WebResourceLoadStatisticsStore::logFrameNavigation): * UIProcess/WebResourceLoadStatisticsStore.h: * UIProcess/ios/DragDropInteractionState.h: * UIProcess/ios/PageClientImplIOS.h: * UIProcess/ios/PageClientImplIOS.mm: (WebKit::PageClientImpl::showSafeBrowsingWarning): * UIProcess/ios/WKActionSheetAssistant.mm: (-[WKActionSheetAssistant _createSheetWithElementActions:showLinkTitle:]): * UIProcess/ios/WKContentViewInteraction.mm: (-[WKContentView actionSheetAssistant:shareElementWithURL:rect:]): (-[WKContentView _presentedViewControllerForPreviewItemController:]): * UIProcess/ios/WKGeolocationProviderIOS.mm: (-[WKGeolocationProviderIOS geolocationAuthorizationGranted]): * UIProcess/ios/WKLegacyPDFView.mm: (-[WKLegacyPDFView actionSheetAssistant:shareElementWithURL:rect:]): * UIProcess/ios/WKPDFView.mm: (-[WKPDFView actionSheetAssistant:shareElementWithURL:rect:]): * UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm: (-[WKFullScreenWindowController _updateLocationInfo]): * UIProcess/mac/LegacySessionStateCoding.cpp: (WebKit::decodeLegacySessionState): * UIProcess/mac/PageClientImplMac.h: * UIProcess/mac/PageClientImplMac.mm: (WebKit::PageClientImpl::showSafeBrowsingWarning): * UIProcess/mac/WKImmediateActionController.mm: (-[WKImmediateActionController _defaultAnimationController]): * UIProcess/win/WebInspectorProxyWin.cpp: * WebProcess/ApplePay/WebPaymentCoordinator.cpp: (WebKit::WebPaymentCoordinator::showPaymentUI): (WebKit::WebPaymentCoordinator::validateMerchant): * WebProcess/ApplePay/WebPaymentCoordinator.h: * WebProcess/Cache/WebCacheStorageConnection.cpp: (WebKit::WebCacheStorageConnection::doRetrieveRecords): * WebProcess/Cache/WebCacheStorageConnection.h: * WebProcess/FileAPI/BlobRegistryProxy.cpp: (WebKit::BlobRegistryProxy::registerFileBlobURL): * WebProcess/FileAPI/BlobRegistryProxy.h: * WebProcess/InjectedBundle/API/APIInjectedBundlePageLoaderClient.h: (API::InjectedBundle::PageLoaderClient::willLoadDataRequest): (API::InjectedBundle::PageLoaderClient::userAgentForURL const): * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp: (WKBundleFrameAllowsFollowingLink): (WKBundleFrameCopySuggestedFilenameForResourceWithURL): (WKBundleFrameCopyMIMETypeForResourceWithURL): * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp: (WKBundlePageHasLocalDataForURL): * WebProcess/InjectedBundle/API/gtk/DOM/ConvertToUTF8String.cpp: (convertToUTF8String): * WebProcess/InjectedBundle/API/gtk/DOM/ConvertToUTF8String.h: * WebProcess/InjectedBundle/InjectedBundleHitTestResult.cpp: * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h: * WebProcess/MediaCache/WebMediaKeyStorageManager.cpp: * WebProcess/Network/WebLoaderStrategy.cpp: (WebKit::WebLoaderStrategy::preconnectTo): * WebProcess/Network/WebLoaderStrategy.h: * WebProcess/Network/WebSocketProvider.h: * WebProcess/Network/WebSocketStream.cpp: (WebKit::WebSocketStream::WebSocketStream): * WebProcess/Network/WebSocketStream.h: * WebProcess/Plugins/Netscape/NetscapePlugin.cpp: * WebProcess/Plugins/Netscape/NetscapePlugin.h: * WebProcess/Plugins/Netscape/NetscapePluginStream.h: * WebProcess/Plugins/PDF/PDFPlugin.h: * WebProcess/Plugins/PDF/PDFPlugin.mm: (WebKit::PDFPlugin::clickedLink): * WebProcess/Plugins/Plugin.h: * WebProcess/Plugins/PluginController.h: * WebProcess/Plugins/PluginProxy.h: * WebProcess/Plugins/PluginView.cpp: (WebKit::PluginView::performURLRequest): (WebKit::PluginView::performJavaScriptURLRequest): * WebProcess/Plugins/WebPluginInfoProvider.cpp: (WebKit::WebPluginInfoProvider::webVisiblePluginInfo): * WebProcess/Plugins/WebPluginInfoProvider.h: * WebProcess/Storage/WebSWClientConnection.h: * WebProcess/Storage/WebSWContextManagerConnection.h: * WebProcess/UserContent/WebUserContentController.h: * WebProcess/WebCoreSupport/WebChromeClient.cpp: (WebKit::WebChromeClient::signedPublicKeyAndChallengeString const): * WebProcess/WebCoreSupport/WebChromeClient.h: * WebProcess/WebCoreSupport/WebContextMenuClient.h: * WebProcess/WebCoreSupport/WebDragClient.h: * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp: (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForResponse): (WebKit::WebFrameLoaderClient::shouldForceUniversalAccessFromLocalURL): * WebProcess/WebCoreSupport/WebFrameLoaderClient.h: * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp: (WebKit::WebPlatformStrategies::readURLFromPasteboard): * WebProcess/WebCoreSupport/WebPlatformStrategies.h: * WebProcess/WebCoreSupport/mac/WebDragClientMac.mm: (WebKit::WebDragClient::declareAndWriteDragImage): * WebProcess/WebCoreSupport/mac/WebEditorClientMac.mm: * WebProcess/WebPage/VisitedLinkTableController.h: * WebProcess/WebPage/WebFrame.cpp: (WebKit::WebFrame::allowsFollowingLink const): * WebProcess/WebPage/WebFrame.h: * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::loadURLInFrame): (WebKit::WebPage::loadData): (WebKit::WebPage::loadAlternateHTML): (WebKit::WebPage::dumpHistoryForTesting): (WebKit::WebPage::sendCSPViolationReport): (WebKit::WebPage::addUserScript): (WebKit::WebPage::addUserStyleSheet): * WebProcess/WebPage/WebPage.h: * WebProcess/WebPage/WebPage.messages.in: * WebProcess/WebPage/gtk/WebPrintOperationGtk.cpp: (WebKit::WebPrintOperationGtk::frameURL const): * WebProcess/WebPage/gtk/WebPrintOperationGtk.h: * WebProcess/WebProcess.cpp: (WebKit::WebProcess::sendPrewarmInformation): * WebProcess/WebProcess.h: * WebProcess/cocoa/WebProcessCocoa.mm: (WebKit::activePagesOrigins): Source/WebKitLegacy: * WebCoreSupport/WebResourceLoadScheduler.cpp: * WebCoreSupport/WebResourceLoadScheduler.h: Source/WebKitLegacy/mac: * DOM/DOMAttr.mm: * DOM/DOMBlob.mm: * DOM/DOMCSSCharsetRule.mm: * DOM/DOMCSSImportRule.mm: * DOM/DOMCSSMediaRule.mm: * DOM/DOMCSSPageRule.mm: * DOM/DOMCSSPrimitiveValue.mm: * DOM/DOMCSSRule.mm: * DOM/DOMCSSStyleDeclaration.mm: * DOM/DOMCSSStyleRule.mm: * DOM/DOMCSSStyleSheet.mm: * DOM/DOMCSSValue.mm: * DOM/DOMCharacterData.mm: * DOM/DOMCounter.mm: * DOM/DOMDocument.mm: * DOM/DOMDocumentFragment.mm: * DOM/DOMDocumentType.mm: * DOM/DOMEvent.mm: * DOM/DOMFile.mm: * DOM/DOMHTMLAnchorElement.mm: * DOM/DOMHTMLAppletElement.mm: * DOM/DOMHTMLAreaElement.mm: * DOM/DOMHTMLBRElement.mm: * DOM/DOMHTMLBaseElement.mm: * DOM/DOMHTMLBaseFontElement.mm: * DOM/DOMHTMLBodyElement.mm: * DOM/DOMHTMLButtonElement.mm: * DOM/DOMHTMLCanvasElement.mm: * DOM/DOMHTMLCollection.mm: * DOM/DOMHTMLDivElement.mm: * DOM/DOMHTMLDocument.mm: * DOM/DOMHTMLElement.mm: * DOM/DOMHTMLEmbedElement.mm: * DOM/DOMHTMLFieldSetElement.mm: * DOM/DOMHTMLFontElement.mm: * DOM/DOMHTMLFormElement.mm: * DOM/DOMHTMLFrameElement.mm: * DOM/DOMHTMLFrameSetElement.mm: * DOM/DOMHTMLHRElement.mm: * DOM/DOMHTMLHeadElement.mm: * DOM/DOMHTMLHeadingElement.mm: * DOM/DOMHTMLHtmlElement.mm: * DOM/DOMHTMLIFrameElement.mm: * DOM/DOMHTMLImageElement.mm: * DOM/DOMHTMLInputElement.mm: * DOM/DOMHTMLLIElement.mm: * DOM/DOMHTMLLabelElement.mm: * DOM/DOMHTMLLegendElement.mm: * DOM/DOMHTMLLinkElement.mm: * DOM/DOMHTMLMapElement.mm: * DOM/DOMHTMLMarqueeElement.mm: * DOM/DOMHTMLMediaElement.mm: * DOM/DOMHTMLMetaElement.mm: * DOM/DOMHTMLModElement.mm: * DOM/DOMHTMLOListElement.mm: * DOM/DOMHTMLObjectElement.mm: * DOM/DOMHTMLOptGroupElement.mm: * DOM/DOMHTMLOptionElement.mm: * DOM/DOMHTMLOptionsCollection.mm: * DOM/DOMHTMLParagraphElement.mm: * DOM/DOMHTMLParamElement.mm: * DOM/DOMHTMLQuoteElement.mm: * DOM/DOMHTMLScriptElement.mm: * DOM/DOMHTMLSelectElement.mm: * DOM/DOMHTMLStyleElement.mm: * DOM/DOMHTMLTableCaptionElement.mm: * DOM/DOMHTMLTableCellElement.mm: * DOM/DOMHTMLTableColElement.mm: * DOM/DOMHTMLTableElement.mm: * DOM/DOMHTMLTableRowElement.mm: * DOM/DOMHTMLTableSectionElement.mm: * DOM/DOMHTMLTitleElement.mm: * DOM/DOMHTMLUListElement.mm: * DOM/DOMHTMLVideoElement.mm: * DOM/DOMKeyboardEvent.mm: * DOM/DOMMediaList.mm: * DOM/DOMMouseEvent.mm: * DOM/DOMMutationEvent.mm: * DOM/DOMNamedNodeMap.mm: * DOM/DOMProcessingInstruction.mm: * DOM/DOMRange.mm: * DOM/DOMStyleSheet.mm: * DOM/DOMText.mm: * DOM/DOMTextEvent.mm: * DOM/DOMTokenList.mm: * DOM/DOMUIEvent.mm: * DOM/DOMXPathResult.mm: * History/WebHistoryItem.mm: * Misc/WebNSURLExtras.mm: (-[NSURL _web_userVisibleString]): (-[NSURL _web_URLByRemovingUserInfo]): (-[NSURL _web_dataForURLComponentType:]): (-[NSURL _web_schemeData]): (-[NSURL _web_hostData]): * Misc/WebUserContentURLPattern.mm: * Plugins/Hosted/NetscapePluginInstanceProxy.mm: * Plugins/WebNetscapePluginStream.h: (WebNetscapePluginStream::setRequestURL): * WebCoreSupport/WebChromeClient.h: * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::signedPublicKeyAndChallengeString const): * WebCoreSupport/WebContextMenuClient.h: * WebCoreSupport/WebContextMenuClient.mm: * WebCoreSupport/WebDragClient.h: * WebCoreSupport/WebFrameLoaderClient.h: * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::updateGlobalHistory): * WebCoreSupport/WebPaymentCoordinatorClient.h: * WebCoreSupport/WebPaymentCoordinatorClient.mm: (WebPaymentCoordinatorClient::showPaymentUI): * WebCoreSupport/WebPlatformStrategies.h: * WebCoreSupport/WebPlatformStrategies.mm: (WebPlatformStrategies::readURLFromPasteboard): * WebCoreSupport/WebPluginInfoProvider.h: * WebCoreSupport/WebPluginInfoProvider.mm: (WebPluginInfoProvider::webVisiblePluginInfo): * WebCoreSupport/WebSecurityOrigin.mm: * WebCoreSupport/WebVisitedLinkStore.h: * WebView/WebDataSource.mm: * WebView/WebFrame.mm: (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]): * WebView/WebImmediateActionController.mm: (-[WebImmediateActionController _defaultAnimationController]): * WebView/WebPDFView.mm: * WebView/WebScriptDebugger.mm: * WebView/WebViewInternal.h: Source/WebKitLegacy/win: * MarshallingHelpers.cpp: * MarshallingHelpers.h: * Plugins/PluginDatabase.cpp: * Plugins/PluginDatabase.h: * Plugins/PluginDatabaseWin.cpp: * Plugins/PluginStream.h: * Plugins/PluginView.h: * WebCoreSupport/WebContextMenuClient.h: * WebCoreSupport/WebDesktopNotificationsDelegate.cpp: * WebCoreSupport/WebDesktopNotificationsDelegate.h: * WebCoreSupport/WebFrameLoaderClient.h: * WebCoreSupport/WebPlatformStrategies.h: * WebCoreSupport/WebPluginInfoProvider.cpp: (WebPluginInfoProvider::webVisiblePluginInfo): * WebCoreSupport/WebPluginInfoProvider.h: * WebCoreSupport/WebVisitedLinkStore.h: * WebDataSource.cpp: * WebDownload.h: * WebElementPropertyBag.cpp: * WebFrame.h: * WebHistory.cpp: * WebHistory.h: * WebHistoryItem.cpp: * WebResource.cpp: (WebResource::WebResource): * WebResource.h: * WebSecurityOrigin.cpp: * WebURLResponse.cpp: (WebURLResponse::createInstance): * WebUserContentURLPattern.cpp: * WebView.h: Source/WTF: * WTF.xcodeproj/project.pbxproj: * wtf/CMakeLists.txt: * wtf/Forward.h: * wtf/PlatformGTK.cmake: * wtf/PlatformMac.cmake: * wtf/PlatformWPE.cmake: * wtf/PlatformWin.cmake: * wtf/URL.cpp: Renamed from Source/WebCore/platform/URL.cpp. (WTF::URL::protocolIs): * wtf/URL.h: Renamed from Source/WebCore/platform/URL.h. * wtf/URLHash.h: Renamed from Source/WebCore/platform/URLHash.h. (WTF::URLHash::hash): (WTF::URLHash::equal): * wtf/URLParser.cpp: Renamed from Source/WebCore/platform/URLParser.cpp. (WTF::URLParser::isInUserInfoEncodeSet): (WTF::URLParser::parseAuthority): * wtf/URLParser.h: Renamed from Source/WebCore/platform/URLParser.h. (WTF::URLParser::URLParser): (WTF::URLParser::result): * wtf/cf/CFURLExtras.cpp: Renamed from Source/WebCore/platform/cf/CFURLExtras.cpp. * wtf/cf/CFURLExtras.h: Renamed from Source/WebCore/platform/cf/CFURLExtras.h. * wtf/cf/URLCF.cpp: Renamed from Source/WebCore/platform/cf/URLCF.cpp. * wtf/cocoa/NSURLExtras.h: Copied from Source/WebCore/loader/archive/ArchiveResourceCollection.h. * wtf/cocoa/NSURLExtras.mm: Copied from Source/WebCore/platform/mac/WebCoreNSURLExtras.mm. (WTF::isArmenianLookalikeCharacter): (WTF::isArmenianScriptCharacter): (WTF::isASCIIDigitOrValidHostCharacter): (WTF::isLookalikeCharacter): (WTF::whiteListIDNScript): (WTF::readIDNScriptWhiteListFile): (WTF::allCharactersInIDNScriptWhiteList): (WTF::isSecondLevelDomainNameAllowedByTLDRules): (WTF::isRussianDomainNameCharacter): (WTF::allCharactersAllowedByTLDRules): (WTF::mapHostNameWithRange): (WTF::hostNameNeedsDecodingWithRange): (WTF::hostNameNeedsEncodingWithRange): (WTF::decodeHostNameWithRange): (WTF::encodeHostNameWithRange): (WTF::decodeHostName): (WTF::encodeHostName): (WTF::collectRangesThatNeedMapping): (WTF::collectRangesThatNeedEncoding): (WTF::collectRangesThatNeedDecoding): (WTF::applyHostNameFunctionToMailToURLString): (WTF::applyHostNameFunctionToURLString): (WTF::mapHostNames): (WTF::stringByTrimmingWhitespace): (WTF::URLByTruncatingOneCharacterBeforeComponent): (WTF::URLByRemovingResourceSpecifier): (WTF::URLWithData): (WTF::dataWithUserTypedString): (WTF::URLWithUserTypedString): (WTF::URLWithUserTypedStringDeprecated): (WTF::hasQuestionMarkOnlyQueryString): (WTF::dataForURLComponentType): (WTF::URLByRemovingComponentAndSubsequentCharacter): (WTF::URLByRemovingUserInfo): (WTF::originalURLData): (WTF::createStringWithEscapedUnsafeCharacters): (WTF::userVisibleString): (WTF::isUserVisibleURL): (WTF::rangeOfURLScheme): (WTF::looksLikeAbsoluteURL): * wtf/cocoa/URLCocoa.mm: Renamed from Source/WebCore/platform/mac/URLMac.mm. (WTF::URL::URL): (WTF::URL::createCFURL const): * wtf/glib/GUniquePtrSoup.h: Renamed from Source/WebCore/platform/network/soup/GUniquePtrSoup.h. * wtf/glib/URLSoup.cpp: Renamed from Source/WebCore/platform/soup/URLSoup.cpp. Tools: * TestWebKitAPI/Tests/WebCore/ContentExtensions.cpp: * TestWebKitAPI/Tests/WebCore/SecurityOrigin.cpp: * TestWebKitAPI/Tests/WebCore/URL.cpp: (TestWebKitAPI::createURL): (TestWebKitAPI::TEST_F): * TestWebKitAPI/Tests/WebCore/URLParser.cpp: (TestWebKitAPI::checkURL): (TestWebKitAPI::checkRelativeURL): (TestWebKitAPI::checkURLDifferences): (TestWebKitAPI::checkRelativeURLDifferences): * TestWebKitAPI/Tests/WebCore/UserAgentQuirks.cpp: * TestWebKitAPI/Tests/WebCore/YouTubePluginReplacement.cpp: * TestWebKitAPI/Tests/WebCore/cocoa/URLExtras.mm: (TestWebKitAPI::originalDataAsString): (TestWebKitAPI::userVisibleString): (TestWebKitAPI::literalURL): (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/WebKitCocoa/LoadAlternateHTMLString.mm: (TEST): * TestWebKitAPI/Tests/WebKitCocoa/LoadInvalidURLRequest.mm: (literalURL): * TestWebKitAPI/Tests/WebKitGLib/TestCookieManager.cpp: * TestWebKitAPI/Tests/mac/LoadInvalidURLRequest.mm: (-[LoadInvalidURLWebFrameLoadDelegate webView:didFailProvisionalLoadWithError:forFrame:]): * TestWebKitAPI/Tests/mac/SSLKeyGenerator.mm: * TestWebKitAPI/win/PlatformUtilitiesWin.cpp: (TestWebKitAPI::Util::createURLForResource): * lldb/lldb_webkit.py: (__lldb_init_module): (WTFURL_SummaryProvider): (WTFURLProvider): (WebCoreURL_SummaryProvider): Deleted. (WebCoreURLProvider): Deleted. (WebCoreURLProvider.__init__): Deleted. (WebCoreURLProvider.to_string): Deleted. Canonical link: https://commits.webkit.org/206915@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@238771 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-12-01 03:28:36 +00:00
cocoa/URLCocoa.mm
cocoa/WorkQueueCocoa.cpp
Move FileSystem to WTF https://bugs.webkit.org/show_bug.cgi?id=193602 Reviewed by Yusuke Suzuki. Source/WebCore: * Modules/encryptedmedia/CDM.cpp: * Modules/encryptedmedia/legacy/WebKitMediaKeySession.cpp: * Modules/entriesapi/DOMFileSystem.cpp: * Modules/entriesapi/FileSystemEntry.cpp: * Modules/indexeddb/IDBDatabaseIdentifier.cpp: * Modules/indexeddb/server/SQLiteIDBBackingStore.cpp: * Modules/indexeddb/server/SQLiteIDBTransaction.cpp: * Modules/indexeddb/shared/InProcessIDBServer.cpp: * Modules/webdatabase/DatabaseTracker.cpp: * Modules/webdatabase/OriginLock.cpp: * Modules/webdatabase/OriginLock.h: * Modules/webdatabase/cocoa/DatabaseManagerCocoa.mm: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWin.cmake: * Sources.txt: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * bindings/js/GCController.cpp: * dom/DataTransferItem.cpp: * editing/cocoa/WebContentReaderCocoa.mm: * fileapi/File.cpp: * fileapi/FileCocoa.mm: * html/FileInputType.cpp: * html/FileListCreator.cpp: * loader/appcache/ApplicationCacheHost.cpp: * loader/appcache/ApplicationCacheStorage.cpp: * page/Page.cpp: * page/SecurityOrigin.cpp: * page/SecurityOriginData.cpp: * platform/FileHandle.h: * platform/FileStream.cpp: * platform/FileStream.h: * platform/SharedBuffer.h: * platform/SourcesGLib.txt: * platform/cocoa/FileMonitorCocoa.mm: * platform/glib/FileMonitorGLib.cpp: * platform/glib/SharedBufferGlib.cpp: * platform/graphics/avfoundation/objc/CDMSessionAVContentKeySession.mm: * platform/graphics/avfoundation/objc/CDMSessionAVStreamSession.mm: * platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.mm: * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm: * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp: * platform/ios/QuickLook.mm: * platform/ios/WebItemProviderPasteboard.mm: * platform/mediarecorder/cocoa/MediaRecorderPrivateWriterCocoa.mm: * platform/network/BlobDataFileReference.cpp: * platform/network/BlobRegistryImpl.cpp: * platform/network/BlobResourceHandle.cpp: * platform/network/FormData.cpp: * platform/network/cf/FormDataStreamCFNet.cpp: * platform/network/cocoa/ResourceRequestCocoa.mm: * platform/network/curl/CookieJarDB.cpp: * platform/network/curl/CurlCacheEntry.h: * platform/network/curl/CurlCacheManager.cpp: * platform/network/curl/CurlFormDataStream.h: * platform/network/curl/CurlRequest.h: * platform/network/curl/NetworkStorageSessionCurl.cpp: * platform/network/curl/ResourceHandleCurl.cpp: * platform/network/mac/BlobDataFileReferenceMac.mm: * platform/network/soup/ResourceHandleSoup.cpp: * platform/network/soup/SoupNetworkSession.cpp: * platform/posix/SharedBufferPOSIX.cpp: * platform/sql/SQLiteFileSystem.cpp: * platform/text/hyphen/HyphenationLibHyphen.cpp: * platform/win/SearchPopupMenuDB.cpp: * rendering/RenderTheme.cpp: * rendering/RenderThemeGtk.cpp: * rendering/RenderThemeWin.cpp: * workers/service/server/RegistrationDatabase.cpp: Source/WebCore/PAL: * PAL.xcodeproj/project.pbxproj: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/Classifier/ResourceLoadStatisticsPersistentStorage.cpp: * NetworkProcess/NetworkDataTaskBlob.h: * NetworkProcess/NetworkProcess.cpp: * NetworkProcess/cache/CacheStorageEngine.cpp: * NetworkProcess/cache/CacheStorageEngineCaches.cpp: * NetworkProcess/cache/NetworkCache.cpp: * NetworkProcess/cache/NetworkCacheBlobStorage.cpp: * NetworkProcess/cache/NetworkCacheData.cpp: * NetworkProcess/cache/NetworkCacheFileSystem.cpp: * NetworkProcess/cache/NetworkCacheFileSystem.h: * NetworkProcess/cache/NetworkCacheIOChannelCocoa.mm: * NetworkProcess/cache/NetworkCacheIOChannelSoup.cpp: * NetworkProcess/cache/NetworkCacheStatistics.cpp: * NetworkProcess/cache/NetworkCacheStorage.cpp: * NetworkProcess/cocoa/NetworkDataTaskCocoa.mm: * NetworkProcess/cocoa/NetworkSessionCocoa.mm: * NetworkProcess/mac/NetworkProcessMac.mm: * NetworkProcess/soup/NetworkProcessSoup.cpp: * PluginProcess/unix/PluginProcessMainUnix.cpp: * Shared/PersistencyUtils.cpp: * Shared/Plugins/Netscape/unix/NetscapePluginModuleUnix.cpp: * Shared/Plugins/unix/PluginSearchPath.cpp: * Shared/WebMemorySampler.h: * Shared/glib/ProcessExecutablePathGLib.cpp: * Shared/ios/ChildProcessIOS.mm: * Shared/mac/ChildProcessMac.mm: * Shared/mac/SandboxExtensionMac.mm: * UIProcess/API/APIContentRuleListStore.cpp: * UIProcess/API/Cocoa/APIWebsiteDataStoreCocoa.mm: * UIProcess/API/glib/APIWebsiteDataStoreGLib.cpp: * UIProcess/API/glib/IconDatabase.cpp: * UIProcess/API/glib/WebKitFaviconDatabase.cpp: * UIProcess/API/glib/WebKitFileChooserRequest.cpp: * UIProcess/API/glib/WebKitWebContext.cpp: * UIProcess/API/glib/WebKitWebsiteDataManager.cpp: * UIProcess/API/win/APIWebsiteDataStoreWin.cpp: * UIProcess/Automation/WebAutomationSession.cpp: * UIProcess/Cocoa/DownloadClient.mm: * UIProcess/Cocoa/WebProcessPoolCocoa.mm: * UIProcess/Cocoa/WebViewImpl.mm: * UIProcess/DeviceIdHashSaltStorage.cpp: * UIProcess/Downloads/DownloadProxy.cpp: * UIProcess/Launcher/glib/BubblewrapLauncher.cpp: * UIProcess/Launcher/glib/ProcessLauncherGLib.cpp: * UIProcess/Plugins/gtk/PluginInfoCache.cpp: * UIProcess/Plugins/mac/PluginProcessProxyMac.mm: * UIProcess/Plugins/unix/PluginInfoStoreUnix.cpp: * UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp: * UIProcess/ServiceWorkerProcessProxy.cpp: * UIProcess/WebStorage/LocalStorageDatabase.cpp: * UIProcess/WebStorage/LocalStorageDatabaseTracker.cpp: * UIProcess/WebsiteData/Cocoa/WebsiteDataStoreCocoa.mm: * UIProcess/WebsiteData/WebsiteDataStore.cpp: * UIProcess/glib/WebProcessProxyGLib.cpp: * UIProcess/gtk/WebInspectorProxyGtk.cpp: * UIProcess/gtk/WebProcessPoolGtk.cpp: * UIProcess/ios/WKContentViewInteraction.mm: * UIProcess/ios/forms/WKFileUploadPanel.mm: * UIProcess/mac/WebPageProxyMac.mm: * UIProcess/win/WebProcessPoolWin.cpp: * UIProcess/win/WebView.cpp: * UIProcess/wpe/WebProcessPoolWPE.cpp: * WebProcess/InjectedBundle/API/glib/WebKitExtensionManager.cpp: * WebProcess/InjectedBundle/glib/InjectedBundleGlib.cpp: * WebProcess/MediaCache/WebMediaKeyStorageManager.cpp: * WebProcess/Plugins/Netscape/NetscapePluginStream.h: * WebProcess/Plugins/PluginProcessConnection.cpp: * WebProcess/WebCoreSupport/SessionStateConversion.cpp: * WebProcess/WebPage/gtk/WebInspectorUIGtk.cpp: * WebProcess/WebPage/win/WebInspectorUIWin.cpp: * WebProcess/cocoa/WebProcessCocoa.mm: Source/WebKitLegacy: * Storage/StorageAreaSync.cpp: * Storage/StorageSyncManager.cpp: * Storage/StorageTracker.cpp: Source/WebKitLegacy/mac: * Misc/WebNSFileManagerExtras.mm: * Storage/WebDatabaseProvider.mm: * WebView/WebView.mm: Source/WebKitLegacy/win: * Plugins/PluginDatabase.cpp: * Plugins/PluginPackage.h: * Plugins/PluginStream.h: * WebApplicationCache.cpp: * WebDatabaseManager.cpp: * WebDownloadCurl.cpp: * WebPreferences.cpp: * WebView.cpp: Source/WTF: * WTF.xcodeproj/project.pbxproj: * wtf/CMakeLists.txt: * wtf/FileMetadata.h: Renamed from Source/WebCore/platform/FileMetadata.h. * wtf/FileSystem.cpp: Renamed from Source/WebCore/platform/FileSystem.cpp. * wtf/FileSystem.h: Renamed from Source/WebCore/platform/FileSystem.h. * wtf/PlatformGTK.cmake: * wtf/PlatformMac.cmake: * wtf/PlatformPlayStation.cmake: * wtf/PlatformWPE.cmake: * wtf/PlatformWin.cmake: * wtf/cf/FileSystemCF.cpp: Renamed from Source/WebCore/platform/cf/FileSystemCF.cpp. * wtf/cocoa/FileSystemCocoa.mm: Renamed from Source/WebCore/platform/cocoa/FileSystemCocoa.mm. * wtf/glib/FileSystemGlib.cpp: Renamed from Source/WebCore/platform/glib/FileSystemGlib.cpp. * wtf/mac/FileSystemMac.mm: Renamed from Source/WebCore/platform/mac/FileSystemMac.mm. * wtf/posix/FileSystemPOSIX.cpp: Renamed from Source/WebCore/platform/posix/FileSystemPOSIX.cpp. * wtf/spi/mac/MetadataSPI.h: Renamed from Source/WebCore/PAL/pal/spi/mac/MetadataSPI.h. * wtf/win/FileSystemWin.cpp: Renamed from Source/WebCore/platform/win/FileSystemWin.cpp. * wtf/win/PathWalker.cpp: Renamed from Source/WebCore/platform/win/PathWalker.cpp. * wtf/win/PathWalker.h: Renamed from Source/WebCore/platform/win/PathWalker.h. Tools: * DumpRenderTree/win/DumpRenderTree.cpp: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformGTK.cmake: * TestWebKitAPI/PlatformJSCOnly.cmake: * TestWebKitAPI/PlatformPlayStation.cmake: * TestWebKitAPI/PlatformWPE.cmake: * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: * TestWebKitAPI/Tests/WTF/FileSystem.cpp: Renamed from Tools/TestWebKitAPI/Tests/WebCore/FileSystem.cpp. * TestWebKitAPI/Tests/WebCore/FileMonitor.cpp: * TestWebKitAPI/Tests/WebCore/SecurityOrigin.cpp: * TestWebKitAPI/Tests/WebCore/SharedBufferTest.cpp: * TestWebKitAPI/Tests/WebCore/cocoa/DatabaseTrackerTest.mm: * TestWebKitAPI/Tests/WebCore/curl/Cookies.cpp: * TestWebKitAPI/Tests/WebKitCocoa/Download.mm: * TestWebKitAPI/Tests/WebKitCocoa/DownloadProgress.mm: * TestWebKitAPI/win/PlatformUtilitiesWin.cpp: Canonical link: https://commits.webkit.org/208283@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@240437 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-01-24 17:25:57 +00:00
mac/FileSystemMac.mm
mac/SchedulePairMac.mm
Move FileSystem to WTF https://bugs.webkit.org/show_bug.cgi?id=193602 Reviewed by Yusuke Suzuki. Source/WebCore: * Modules/encryptedmedia/CDM.cpp: * Modules/encryptedmedia/legacy/WebKitMediaKeySession.cpp: * Modules/entriesapi/DOMFileSystem.cpp: * Modules/entriesapi/FileSystemEntry.cpp: * Modules/indexeddb/IDBDatabaseIdentifier.cpp: * Modules/indexeddb/server/SQLiteIDBBackingStore.cpp: * Modules/indexeddb/server/SQLiteIDBTransaction.cpp: * Modules/indexeddb/shared/InProcessIDBServer.cpp: * Modules/webdatabase/DatabaseTracker.cpp: * Modules/webdatabase/OriginLock.cpp: * Modules/webdatabase/OriginLock.h: * Modules/webdatabase/cocoa/DatabaseManagerCocoa.mm: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWin.cmake: * Sources.txt: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * bindings/js/GCController.cpp: * dom/DataTransferItem.cpp: * editing/cocoa/WebContentReaderCocoa.mm: * fileapi/File.cpp: * fileapi/FileCocoa.mm: * html/FileInputType.cpp: * html/FileListCreator.cpp: * loader/appcache/ApplicationCacheHost.cpp: * loader/appcache/ApplicationCacheStorage.cpp: * page/Page.cpp: * page/SecurityOrigin.cpp: * page/SecurityOriginData.cpp: * platform/FileHandle.h: * platform/FileStream.cpp: * platform/FileStream.h: * platform/SharedBuffer.h: * platform/SourcesGLib.txt: * platform/cocoa/FileMonitorCocoa.mm: * platform/glib/FileMonitorGLib.cpp: * platform/glib/SharedBufferGlib.cpp: * platform/graphics/avfoundation/objc/CDMSessionAVContentKeySession.mm: * platform/graphics/avfoundation/objc/CDMSessionAVStreamSession.mm: * platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.mm: * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm: * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp: * platform/ios/QuickLook.mm: * platform/ios/WebItemProviderPasteboard.mm: * platform/mediarecorder/cocoa/MediaRecorderPrivateWriterCocoa.mm: * platform/network/BlobDataFileReference.cpp: * platform/network/BlobRegistryImpl.cpp: * platform/network/BlobResourceHandle.cpp: * platform/network/FormData.cpp: * platform/network/cf/FormDataStreamCFNet.cpp: * platform/network/cocoa/ResourceRequestCocoa.mm: * platform/network/curl/CookieJarDB.cpp: * platform/network/curl/CurlCacheEntry.h: * platform/network/curl/CurlCacheManager.cpp: * platform/network/curl/CurlFormDataStream.h: * platform/network/curl/CurlRequest.h: * platform/network/curl/NetworkStorageSessionCurl.cpp: * platform/network/curl/ResourceHandleCurl.cpp: * platform/network/mac/BlobDataFileReferenceMac.mm: * platform/network/soup/ResourceHandleSoup.cpp: * platform/network/soup/SoupNetworkSession.cpp: * platform/posix/SharedBufferPOSIX.cpp: * platform/sql/SQLiteFileSystem.cpp: * platform/text/hyphen/HyphenationLibHyphen.cpp: * platform/win/SearchPopupMenuDB.cpp: * rendering/RenderTheme.cpp: * rendering/RenderThemeGtk.cpp: * rendering/RenderThemeWin.cpp: * workers/service/server/RegistrationDatabase.cpp: Source/WebCore/PAL: * PAL.xcodeproj/project.pbxproj: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/Classifier/ResourceLoadStatisticsPersistentStorage.cpp: * NetworkProcess/NetworkDataTaskBlob.h: * NetworkProcess/NetworkProcess.cpp: * NetworkProcess/cache/CacheStorageEngine.cpp: * NetworkProcess/cache/CacheStorageEngineCaches.cpp: * NetworkProcess/cache/NetworkCache.cpp: * NetworkProcess/cache/NetworkCacheBlobStorage.cpp: * NetworkProcess/cache/NetworkCacheData.cpp: * NetworkProcess/cache/NetworkCacheFileSystem.cpp: * NetworkProcess/cache/NetworkCacheFileSystem.h: * NetworkProcess/cache/NetworkCacheIOChannelCocoa.mm: * NetworkProcess/cache/NetworkCacheIOChannelSoup.cpp: * NetworkProcess/cache/NetworkCacheStatistics.cpp: * NetworkProcess/cache/NetworkCacheStorage.cpp: * NetworkProcess/cocoa/NetworkDataTaskCocoa.mm: * NetworkProcess/cocoa/NetworkSessionCocoa.mm: * NetworkProcess/mac/NetworkProcessMac.mm: * NetworkProcess/soup/NetworkProcessSoup.cpp: * PluginProcess/unix/PluginProcessMainUnix.cpp: * Shared/PersistencyUtils.cpp: * Shared/Plugins/Netscape/unix/NetscapePluginModuleUnix.cpp: * Shared/Plugins/unix/PluginSearchPath.cpp: * Shared/WebMemorySampler.h: * Shared/glib/ProcessExecutablePathGLib.cpp: * Shared/ios/ChildProcessIOS.mm: * Shared/mac/ChildProcessMac.mm: * Shared/mac/SandboxExtensionMac.mm: * UIProcess/API/APIContentRuleListStore.cpp: * UIProcess/API/Cocoa/APIWebsiteDataStoreCocoa.mm: * UIProcess/API/glib/APIWebsiteDataStoreGLib.cpp: * UIProcess/API/glib/IconDatabase.cpp: * UIProcess/API/glib/WebKitFaviconDatabase.cpp: * UIProcess/API/glib/WebKitFileChooserRequest.cpp: * UIProcess/API/glib/WebKitWebContext.cpp: * UIProcess/API/glib/WebKitWebsiteDataManager.cpp: * UIProcess/API/win/APIWebsiteDataStoreWin.cpp: * UIProcess/Automation/WebAutomationSession.cpp: * UIProcess/Cocoa/DownloadClient.mm: * UIProcess/Cocoa/WebProcessPoolCocoa.mm: * UIProcess/Cocoa/WebViewImpl.mm: * UIProcess/DeviceIdHashSaltStorage.cpp: * UIProcess/Downloads/DownloadProxy.cpp: * UIProcess/Launcher/glib/BubblewrapLauncher.cpp: * UIProcess/Launcher/glib/ProcessLauncherGLib.cpp: * UIProcess/Plugins/gtk/PluginInfoCache.cpp: * UIProcess/Plugins/mac/PluginProcessProxyMac.mm: * UIProcess/Plugins/unix/PluginInfoStoreUnix.cpp: * UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp: * UIProcess/ServiceWorkerProcessProxy.cpp: * UIProcess/WebStorage/LocalStorageDatabase.cpp: * UIProcess/WebStorage/LocalStorageDatabaseTracker.cpp: * UIProcess/WebsiteData/Cocoa/WebsiteDataStoreCocoa.mm: * UIProcess/WebsiteData/WebsiteDataStore.cpp: * UIProcess/glib/WebProcessProxyGLib.cpp: * UIProcess/gtk/WebInspectorProxyGtk.cpp: * UIProcess/gtk/WebProcessPoolGtk.cpp: * UIProcess/ios/WKContentViewInteraction.mm: * UIProcess/ios/forms/WKFileUploadPanel.mm: * UIProcess/mac/WebPageProxyMac.mm: * UIProcess/win/WebProcessPoolWin.cpp: * UIProcess/win/WebView.cpp: * UIProcess/wpe/WebProcessPoolWPE.cpp: * WebProcess/InjectedBundle/API/glib/WebKitExtensionManager.cpp: * WebProcess/InjectedBundle/glib/InjectedBundleGlib.cpp: * WebProcess/MediaCache/WebMediaKeyStorageManager.cpp: * WebProcess/Plugins/Netscape/NetscapePluginStream.h: * WebProcess/Plugins/PluginProcessConnection.cpp: * WebProcess/WebCoreSupport/SessionStateConversion.cpp: * WebProcess/WebPage/gtk/WebInspectorUIGtk.cpp: * WebProcess/WebPage/win/WebInspectorUIWin.cpp: * WebProcess/cocoa/WebProcessCocoa.mm: Source/WebKitLegacy: * Storage/StorageAreaSync.cpp: * Storage/StorageSyncManager.cpp: * Storage/StorageTracker.cpp: Source/WebKitLegacy/mac: * Misc/WebNSFileManagerExtras.mm: * Storage/WebDatabaseProvider.mm: * WebView/WebView.mm: Source/WebKitLegacy/win: * Plugins/PluginDatabase.cpp: * Plugins/PluginPackage.h: * Plugins/PluginStream.h: * WebApplicationCache.cpp: * WebDatabaseManager.cpp: * WebDownloadCurl.cpp: * WebPreferences.cpp: * WebView.cpp: Source/WTF: * WTF.xcodeproj/project.pbxproj: * wtf/CMakeLists.txt: * wtf/FileMetadata.h: Renamed from Source/WebCore/platform/FileMetadata.h. * wtf/FileSystem.cpp: Renamed from Source/WebCore/platform/FileSystem.cpp. * wtf/FileSystem.h: Renamed from Source/WebCore/platform/FileSystem.h. * wtf/PlatformGTK.cmake: * wtf/PlatformMac.cmake: * wtf/PlatformPlayStation.cmake: * wtf/PlatformWPE.cmake: * wtf/PlatformWin.cmake: * wtf/cf/FileSystemCF.cpp: Renamed from Source/WebCore/platform/cf/FileSystemCF.cpp. * wtf/cocoa/FileSystemCocoa.mm: Renamed from Source/WebCore/platform/cocoa/FileSystemCocoa.mm. * wtf/glib/FileSystemGlib.cpp: Renamed from Source/WebCore/platform/glib/FileSystemGlib.cpp. * wtf/mac/FileSystemMac.mm: Renamed from Source/WebCore/platform/mac/FileSystemMac.mm. * wtf/posix/FileSystemPOSIX.cpp: Renamed from Source/WebCore/platform/posix/FileSystemPOSIX.cpp. * wtf/spi/mac/MetadataSPI.h: Renamed from Source/WebCore/PAL/pal/spi/mac/MetadataSPI.h. * wtf/win/FileSystemWin.cpp: Renamed from Source/WebCore/platform/win/FileSystemWin.cpp. * wtf/win/PathWalker.cpp: Renamed from Source/WebCore/platform/win/PathWalker.cpp. * wtf/win/PathWalker.h: Renamed from Source/WebCore/platform/win/PathWalker.h. Tools: * DumpRenderTree/win/DumpRenderTree.cpp: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformGTK.cmake: * TestWebKitAPI/PlatformJSCOnly.cmake: * TestWebKitAPI/PlatformPlayStation.cmake: * TestWebKitAPI/PlatformWPE.cmake: * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: * TestWebKitAPI/Tests/WTF/FileSystem.cpp: Renamed from Tools/TestWebKitAPI/Tests/WebCore/FileSystem.cpp. * TestWebKitAPI/Tests/WebCore/FileMonitor.cpp: * TestWebKitAPI/Tests/WebCore/SecurityOrigin.cpp: * TestWebKitAPI/Tests/WebCore/SharedBufferTest.cpp: * TestWebKitAPI/Tests/WebCore/cocoa/DatabaseTrackerTest.mm: * TestWebKitAPI/Tests/WebCore/curl/Cookies.cpp: * TestWebKitAPI/Tests/WebKitCocoa/Download.mm: * TestWebKitAPI/Tests/WebKitCocoa/DownloadProgress.mm: * TestWebKitAPI/win/PlatformUtilitiesWin.cpp: Canonical link: https://commits.webkit.org/208283@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@240437 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-01-24 17:25:57 +00:00
posix/FileSystemPOSIX.cpp
posix/OSAllocatorPOSIX.cpp
posix/ThreadingPOSIX.cpp
text/cf/AtomStringImplCF.cpp
text/cf/StringCF.cpp
text/cf/StringImplCF.cpp
text/cf/StringViewCF.cpp
text/cocoa/StringCocoa.mm
text/cocoa/StringImplCocoa.mm
text/cocoa/StringViewCocoa.mm
text/cocoa/TextBreakIteratorInternalICUCocoa.cpp
)
Progress towards CMake on Windows and Mac. https://bugs.webkit.org/show_bug.cgi?id=143293 Reviewed by Filip Pizlo. .: * CMakeLists.txt: Set DERIVED_SOURCES_WTF_DIR for Windows. * Source/CMakeLists.txt: Don't compile bmalloc on Windows. * Source/cmake/OptionsCommon.cmake: Use the absolute path of the C preprocessor. * Source/cmake/OptionsWinCairo.cmake: Added needed definitions. * Source/cmake/OptionsWindows.cmake: Set some default values and removed support for old Visual Studio versions before /MP. * Source/cmake/WebKitFS.cmake: Make WTF DerivedSources directory. * Source/cmake/WebKitMacros.cmake: Added ADD_PRECOMPILED_HEADER macro based on http://stackoverflow.com/questions/148570/using-pre-compiled-headers-with-cmake Source/bmalloc: * bmalloc/BAssert.h: Removed ellipses from macros to appease Visual Studio. Source/JavaScriptCore: * CMakeLists.txt: Enabled using assembly on Windows. Replaced unix commands with CMake commands. * PlatformMac.cmake: Tell open source builders where to find unicode headers. Source/ThirdParty/ANGLE: * include/GLES2/gl2.h: Temporarily disabled WebGL on Windows CMake builds. Source/WebCore: * PlatformMac.cmake: Tell open source builders where to find unicode headers. * PlatformWin.cmake: Include PlatformWinCairo.cmake. * PlatformWinCairo.cmake: Added from bug 115944 by Patrick Gansterer. * bindings/js/JSDOMStringListCustom.cpp: * bindings/js/JSDOMWrapper.cpp: * bindings/js/JSMessageChannelCustom.cpp: * bindings/js/JSPopStateEventCustom.cpp: * bindings/js/JSReadableStreamCustom.cpp: * bindings/js/ReadableStreamJSSource.cpp: * bindings/js/ScriptController.cpp: * css/CSSComputedStyleDeclaration.cpp: * dom/Attr.cpp: * dom/CollectionIndexCache.cpp: * platform/graphics/ANGLEWebKitBridge.h: Fixed include quirks. Source/WebKit: * PlatformMac.cmake: Fixed some include directories. Source/WTF: * wtf/CMakeLists.txt: Don't use bmalloc on Windows yet. * wtf/FeatureDefines.h: Temporarily disabled WebGL on Windows CMake builds. * wtf/PlatformMac.cmake: Tell open source builders where to find unicode headers. Canonical link: https://commits.webkit.org/161340@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@182243 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-04-01 18:36:43 +00:00
file(COPY mac/MachExceptions.defs DESTINATION ${WTF_DERIVED_SOURCES_DIR})
add_custom_command(
OUTPUT
${WTF_DERIVED_SOURCES_DIR}/MachExceptionsServer.h
${WTF_DERIVED_SOURCES_DIR}/mach_exc.h
${WTF_DERIVED_SOURCES_DIR}/mach_excServer.c
${WTF_DERIVED_SOURCES_DIR}/mach_excUser.c
MAIN_DEPENDENCY mac/MachExceptions.defs
WORKING_DIRECTORY ${WTF_DERIVED_SOURCES_DIR}
COMMAND mig -sheader MachExceptionsServer.h MachExceptions.defs
VERBATIM)
list(APPEND WTF_SOURCES
${WTF_DERIVED_SOURCES_DIR}/mach_excServer.c
${WTF_DERIVED_SOURCES_DIR}/mach_excUser.c
)