| 2016-10-25 Andreas Kling <akling@apple.com> |
| |
| More PassRefPtr purging in WebCore. |
| <https://webkit.org/b/163895> |
| |
| Reviewed by Antti Koivisto. |
| |
| * WebProcess/Plugins/PDF/DeprecatedPDFPlugin.h: |
| * WebProcess/Plugins/PDF/DeprecatedPDFPlugin.mm: |
| (WebKit::PDFPlugin::createScrollbar): |
| |
| 2016-10-25 Carlos Garcia Campos <cgarcia@igalia.com> |
| |
| NetworkSession: switch to use subclasses for NetworkSession and NetworkDataTask implementations |
| https://bugs.webkit.org/show_bug.cgi?id=163777 |
| |
| Reviewed by Alex Christensen. |
| |
| The subclass model allows us to choose the implementation at run time, so we could add other implementations |
| like a mock network class to measure performance, and even one for blobs and finally get rid of ResourceHandle |
| in WebKit2. |
| |
| * CMakeLists.txt: Add new files to compilation. |
| * NetworkProcess/NetworkDataTask.cpp: Added. |
| (WebKit::NetworkDataTask::create): Create a NetworkDataTaskCocoa or NetworkDataTaskSoup. |
| (WebKit::NetworkDataTask::NetworkDataTask): Move common code from NetworkDataTaskCocoa and NetworkDataTaskSoup |
| here to handle the early failures. |
| (WebKit::NetworkDataTask::~NetworkDataTask): |
| (WebKit::NetworkDataTask::scheduleFailure): |
| (WebKit::NetworkDataTask::failureTimerFired): |
| * NetworkProcess/NetworkDataTask.h: Remove platform specific members. |
| (WebKit::NetworkDataTask::setPendingDownloadLocation): Make it virtual and set the m_pendingDownloadLocation. |
| (WebKit::NetworkDataTask::suggestedFilename): Make it virtual and const with a default implementation. |
| (WebKit::NetworkDataTask::setSuggestedFilename): Ditto. |
| (WebKit::NetworkDataTask::allowsSpecificHTTPSCertificateForHost): Ditto. |
| * NetworkProcess/NetworkLoad.cpp: Include NetworkDataTaskCocoa.h. |
| * NetworkProcess/NetworkLoad.h: Include NetworkDataTask.h instead of NetworkSession.h. |
| * NetworkProcess/NetworkProcess.cpp: |
| (WebKit::NetworkProcess::NetworkProcess): Use NetworkSessionCocoa. |
| * NetworkProcess/NetworkSession.cpp: |
| (WebKit::NetworkSession::create): Create a NetworkSessionCocoa or NetworkSessionSoup. |
| (WebKit::NetworkSession::defaultSession): In case of cocoa use NetworkSessionCocoa::defaultSession() because of |
| the custom protocol manager, otherwise simply create a default session. |
| (WebKit::NetworkSession::networkStorageSession): Move common code from NetworkSessionCocoa and |
| NetworkSessionSoup here. |
| (WebKit::NetworkSession::NetworkSession): |
| (WebKit::NetworkSession::~NetworkSession): |
| * NetworkProcess/NetworkSession.h: Remove platform specific members. |
| (WebKit::NetworkSession::invalidateAndCancel): Make it virtual. |
| (WebKit::NetworkSession::clearCredentials): Ditto. |
| * NetworkProcess/cache/NetworkCacheSpeculativeLoad.cpp: Include NetworkSession.h. |
| * NetworkProcess/cocoa/NetworkDataTaskCocoa.h: Added. |
| * NetworkProcess/cocoa/NetworkDataTaskCocoa.mm: |
| (WebKit::NetworkDataTaskCocoa::NetworkDataTaskCocoa): |
| (WebKit::NetworkDataTaskCocoa::~NetworkDataTaskCocoa): |
| (WebKit::NetworkDataTaskCocoa::didSendData): |
| (WebKit::NetworkDataTaskCocoa::didReceiveChallenge): |
| (WebKit::NetworkDataTaskCocoa::didCompleteWithError): |
| (WebKit::NetworkDataTaskCocoa::didReceiveResponse): |
| (WebKit::NetworkDataTaskCocoa::didReceiveData): |
| (WebKit::NetworkDataTaskCocoa::didBecomeDownload): |
| (WebKit::NetworkDataTaskCocoa::willPerformHTTPRedirection): |
| (WebKit::NetworkDataTaskCocoa::setPendingDownloadLocation): |
| (WebKit::NetworkDataTaskCocoa::tryPasswordBasedAuthentication): |
| (WebKit::NetworkDataTaskCocoa::transferSandboxExtensionToDownload): |
| (WebKit::NetworkDataTaskCocoa::allowsSpecificHTTPSCertificateForHost): |
| (WebKit::NetworkDataTaskCocoa::suggestedFilename): |
| (WebKit::NetworkDataTaskCocoa::cancel): |
| (WebKit::NetworkDataTaskCocoa::resume): |
| (WebKit::NetworkDataTaskCocoa::suspend): |
| (WebKit::NetworkDataTaskCocoa::state): |
| * NetworkProcess/cocoa/NetworkProcessCocoa.mm: |
| (WebKit::NetworkProcess::platformInitializeNetworkProcessCocoa): |
| * NetworkProcess/cocoa/NetworkSessionCocoa.h: Added. |
| * NetworkProcess/cocoa/NetworkSessionCocoa.mm: |
| (-[WKNetworkSessionDelegate initWithNetworkSession:withCredentials:]): |
| (-[WKNetworkSessionDelegate URLSession:dataTask:didBecomeDownloadTask:]): |
| (WebKit::configurationForSessionID): |
| (WebKit::NetworkSessionCocoa::setCustomProtocolManager): |
| (WebKit::NetworkSessionCocoa::setSourceApplicationAuditTokenData): |
| (WebKit::NetworkSessionCocoa::setSourceApplicationBundleIdentifier): |
| (WebKit::NetworkSessionCocoa::setSourceApplicationSecondaryIdentifier): |
| (WebKit::NetworkSessionCocoa::setCTDataConnectionServiceType): |
| (WebKit::NetworkSessionCocoa::create): |
| (WebKit::NetworkSessionCocoa::defaultSession): |
| (WebKit::NetworkSessionCocoa::NetworkSessionCocoa): |
| (WebKit::NetworkSessionCocoa::~NetworkSessionCocoa): |
| (WebKit::NetworkSessionCocoa::invalidateAndCancel): |
| (WebKit::NetworkSessionCocoa::clearCredentials): |
| (WebKit::NetworkSessionCocoa::dataTaskForIdentifier): |
| (WebKit::NetworkSessionCocoa::addDownloadID): |
| (WebKit::NetworkSessionCocoa::downloadID): |
| (WebKit::NetworkSessionCocoa::takeDownloadID): |
| * NetworkProcess/mac/RemoteNetworkingContext.mm: |
| (WebKit::RemoteNetworkingContext::ensurePrivateBrowsingSession): |
| * NetworkProcess/soup/NetworkDataTaskSoup.cpp: |
| (WebKit::NetworkDataTaskSoup::NetworkDataTaskSoup): |
| (WebKit::NetworkDataTaskSoup::~NetworkDataTaskSoup): |
| (WebKit::NetworkDataTaskSoup::suggestedFilename): |
| (WebKit::NetworkDataTaskSoup::setPendingDownloadLocation): |
| (WebKit::NetworkDataTaskSoup::createRequest): |
| (WebKit::NetworkDataTaskSoup::clearRequest): |
| (WebKit::NetworkDataTaskSoup::resume): |
| (WebKit::NetworkDataTaskSoup::suspend): |
| (WebKit::NetworkDataTaskSoup::cancel): |
| (WebKit::NetworkDataTaskSoup::invalidateAndCancel): |
| (WebKit::NetworkDataTaskSoup::state): |
| (WebKit::NetworkDataTaskSoup::timeoutFired): |
| (WebKit::NetworkDataTaskSoup::startTimeout): |
| (WebKit::NetworkDataTaskSoup::stopTimeout): |
| (WebKit::NetworkDataTaskSoup::sendRequestCallback): |
| (WebKit::NetworkDataTaskSoup::didSendRequest): |
| (WebKit::NetworkDataTaskSoup::didReceiveResponse): |
| (WebKit::NetworkDataTaskSoup::tlsErrorsChangedCallback): |
| (WebKit::NetworkDataTaskSoup::tlsErrorsChanged): |
| (WebKit::NetworkDataTaskSoup::applyAuthenticationToRequest): |
| (WebKit::NetworkDataTaskSoup::authenticateCallback): |
| (WebKit::NetworkDataTaskSoup::authenticate): |
| (WebKit::NetworkDataTaskSoup::continueAuthenticate): |
| (WebKit::NetworkDataTaskSoup::skipInputStreamForRedirectionCallback): |
| (WebKit::NetworkDataTaskSoup::skipInputStreamForRedirection): |
| (WebKit::NetworkDataTaskSoup::didFinishSkipInputStreamForRedirection): |
| (WebKit::NetworkDataTaskSoup::shouldStartHTTPRedirection): |
| (WebKit::NetworkDataTaskSoup::continueHTTPRedirection): |
| (WebKit::NetworkDataTaskSoup::readCallback): |
| (WebKit::NetworkDataTaskSoup::read): |
| (WebKit::NetworkDataTaskSoup::didRead): |
| (WebKit::NetworkDataTaskSoup::didFinishRead): |
| (WebKit::NetworkDataTaskSoup::requestNextPartCallback): |
| (WebKit::NetworkDataTaskSoup::requestNextPart): |
| (WebKit::NetworkDataTaskSoup::didRequestNextPart): |
| (WebKit::NetworkDataTaskSoup::didFinishRequestNextPart): |
| (WebKit::NetworkDataTaskSoup::gotHeadersCallback): |
| (WebKit::NetworkDataTaskSoup::didGetHeaders): |
| (WebKit::NetworkDataTaskSoup::wroteBodyDataCallback): |
| (WebKit::NetworkDataTaskSoup::didWriteBodyData): |
| (WebKit::NetworkDataTaskSoup::download): |
| (WebKit::NetworkDataTaskSoup::writeDownloadCallback): |
| (WebKit::NetworkDataTaskSoup::writeDownload): |
| (WebKit::NetworkDataTaskSoup::didWriteDownload): |
| (WebKit::NetworkDataTaskSoup::didFinishDownload): |
| (WebKit::NetworkDataTaskSoup::didFailDownload): |
| (WebKit::NetworkDataTaskSoup::cleanDownloadFiles): |
| (WebKit::NetworkDataTaskSoup::didFail): |
| (WebKit::NetworkDataTaskSoup::networkEventCallback): |
| (WebKit::NetworkDataTaskSoup::networkEvent): |
| (WebKit::NetworkDataTaskSoup::startingCallback): |
| (WebKit::NetworkDataTaskSoup::requestStartedCallback): |
| (WebKit::NetworkDataTaskSoup::didStartRequest): |
| (WebKit::NetworkDataTaskSoup::restartedCallback): |
| (WebKit::NetworkDataTaskSoup::didRestart): |
| * NetworkProcess/soup/NetworkDataTaskSoup.h: Added. |
| * NetworkProcess/soup/NetworkSessionSoup.cpp: |
| (WebKit::NetworkSessionSoup::NetworkSessionSoup): |
| (WebKit::NetworkSessionSoup::~NetworkSessionSoup): |
| (WebKit::NetworkSessionSoup::soupSession): |
| (WebKit::NetworkSessionSoup::invalidateAndCancel): |
| * NetworkProcess/soup/NetworkSessionSoup.h: Added. |
| * NetworkProcess/soup/RemoteNetworkingContextSoup.cpp: |
| (WebKit::RemoteNetworkingContext::ensurePrivateBrowsingSession): Update to new NetworkSession::create() API. |
| * PlatformEfl.cmake: Add new files to compilation. |
| * PlatformGTK.cmake: Ditto. |
| * WebKit2.xcodeproj/project.pbxproj: Ditto. |
| * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm: |
| (WebKit::WebFrameNetworkingContext::ensurePrivateBrowsingSession): Update to new NetworkSession::create() API. |
| * WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.cpp: |
| (WebKit::WebFrameNetworkingContext::ensurePrivateBrowsingSession): Ditto. |
| |
| 2016-10-25 Antti Koivisto <antti@apple.com> |
| |
| Add support for introducing simulated latency in network process |
| https://bugs.webkit.org/show_bug.cgi?id=163902 |
| |
| Reviewed by Alex Christensen. |
| |
| For testing purposes it is useful to have a mechanism for simulating high latency. |
| This patch adds a basic mechanism that introduces a delay to each response in network |
| process. In Safari it can be used with |
| |
| defaults write com.apple.Safari WebKitNetworkLoadThrottleLatencyMilliseconds 200 |
| |
| Setting the delay to 0 disables the feature. |
| |
| * NetworkProcess/NetworkLoad.cpp: |
| (WebKit::NetworkLoad::Throttle::Throttle): |
| (WebKit::NetworkLoad::didReceiveResponseNetworkSession): |
| (WebKit::NetworkLoad::notifyDidReceiveResponse): |
| (WebKit::NetworkLoad::didReceiveData): |
| (WebKit::NetworkLoad::didCompleteWithError): |
| (WebKit::NetworkLoad::throttleDelayCompleted): |
| * NetworkProcess/NetworkLoad.h: |
| * NetworkProcess/NetworkProcess.cpp: |
| (WebKit::NetworkProcess::initializeNetworkProcess): |
| * NetworkProcess/NetworkProcess.h: |
| (WebKit::NetworkProcess::loadThrottleLatency): |
| * NetworkProcess/NetworkProcessCreationParameters.cpp: |
| (WebKit::NetworkProcessCreationParameters::encode): |
| (WebKit::NetworkProcessCreationParameters::decode): |
| * NetworkProcess/NetworkProcessCreationParameters.h: |
| * UIProcess/Cocoa/WebProcessPoolCocoa.mm: |
| (WebKit::WebProcessPool::platformInitializeNetworkProcess): |
| |
| 2016-10-24 Dan Bernstein <mitz@apple.com> |
| |
| REGRESSION (r206410): Sandbox violations beneath WebProcessProxy::platformIsBeingDebugged |
| https://bugs.webkit.org/show_bug.cgi?id=163879 |
| <rdar://problem/28728735> |
| |
| Reviewed by Darin Adler. |
| |
| * UIProcess/Cocoa/WebProcessProxyCocoa.mm: |
| (WebKit::WebProcessProxy::platformIsBeingDebugged): Check if the current process, which is |
| the UI process, is sandboxed before trying to find out if the Web process is being |
| debugged. |
| |
| 2016-10-21 Alex Christensen <achristensen@webkit.org> |
| |
| URL::port should return Optional<uint16_t> |
| https://bugs.webkit.org/show_bug.cgi?id=163806 |
| |
| Reviewed by Darin Adler. |
| |
| * NetworkProcess/mac/NetworkProcessMac.mm: |
| (WebKit::overrideSystemProxies): |
| * Shared/API/APISecurityOrigin.h: |
| (API::SecurityOrigin::create): |
| * Shared/API/APIURL.h: |
| (API::URL::protocol): |
| * Shared/API/c/WKSecurityOriginRef.cpp: |
| (WKSecurityOriginGetPort): |
| * UIProcess/API/Cocoa/WKSecurityOrigin.mm: |
| (-[WKSecurityOrigin port]): |
| * WebProcess/WebPage/WebPage.cpp: |
| (WebKit::WebPage::canHandleRequest): |
| * WebProcess/cocoa/WebProcessCocoa.mm: |
| (WebKit::origin): |
| |
| 2016-10-24 Eric Carlson <eric.carlson@apple.com> |
| |
| [MediaStream] Separate media capture and audio playback muting |
| https://bugs.webkit.org/show_bug.cgi?id=163855 |
| <rdar://problem/28827186> |
| |
| Reviewed by Darin Adler. |
| |
| * Shared/WebPageCreationParameters.h: Change 'muted' from bool to MutedStateFlags. |
| |
| * UIProcess/API/C/WKPage.cpp: Change parameter from bool to WKMediaMutedState. |
| (WKPageSetMuted): |
| * UIProcess/API/C/WKPagePrivate.h: Define WKMediaMutedState. |
| |
| * UIProcess/WebPageProxy.cpp: |
| (WebKit::WebPageProxy::WebPageProxy): |
| (WebKit::WebPageProxy::setMuted): m_muted -> m_mutedState. |
| (WebKit::WebPageProxy::creationParameters): Ditto. |
| * UIProcess/WebPageProxy.h: |
| |
| * WebProcess/Plugins/PluginView.cpp: |
| (WebKit::PluginView::isMuted): page.isMuted -> page.mutedState. |
| |
| * WebProcess/WebPage/WebPage.messages.in: Change SetMuted parameter. |
| |
| 2016-10-24 Youenn Fablet <youenn@apple.com> |
| |
| Activate WEB_RTC compilation flags for Mac bots |
| https://bugs.webkit.org/show_bug.cgi?id=163886 |
| |
| Reviewed by Eric Carlson. |
| |
| * Configurations/FeatureDefines.xcconfig: |
| |
| 2016-10-24 Brady Eidson <beidson@apple.com> |
| |
| IndexedDB 2.0: Support IDBIndex name assignment. |
| <rdar://problem/28806932> and https://bugs.webkit.org/show_bug.cgi?id=163805 |
| |
| Reviewed by Alex Christensen. |
| |
| * DatabaseProcess/IndexedDB/WebIDBConnectionToClient.cpp: |
| (WebKit::WebIDBConnectionToClient::didRenameIndex): |
| (WebKit::WebIDBConnectionToClient::renameIndex): |
| * DatabaseProcess/IndexedDB/WebIDBConnectionToClient.h: |
| * DatabaseProcess/IndexedDB/WebIDBConnectionToClient.messages.in: |
| |
| * WebProcess/Databases/IndexedDB/WebIDBConnectionToServer.cpp: |
| (WebKit::WebIDBConnectionToServer::renameIndex): |
| (WebKit::WebIDBConnectionToServer::didRenameIndex): |
| * WebProcess/Databases/IndexedDB/WebIDBConnectionToServer.h: |
| * WebProcess/Databases/IndexedDB/WebIDBConnectionToServer.messages.in: |
| |
| 2016-10-23 Michael Catanzaro <mcatanzaro@igalia.com> |
| |
| [GTK] Remove DO NOT MODIFY headers from files that are no longer autogenerated |
| https://bugs.webkit.org/show_bug.cgi?id=163867 |
| |
| Reviewed by Darin Adler. |
| |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAttr.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAttr.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAttrPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMBlob.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMBlob.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMBlobPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCDATASection.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCDATASection.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCDATASectionPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSRule.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSRuleList.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSRuleList.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSRuleListPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSRulePrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSStyleDeclaration.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSStyleDeclarationPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSStyleSheet.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSStyleSheetPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSValue.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSValuePrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCharacterData.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCharacterData.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCharacterDataPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMComment.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMComment.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCommentPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMImplementation.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMImplementationPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMSelection.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMSelection.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMSelectionPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMTokenList.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMTokenList.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMTokenListPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMWindow.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMWindow.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMWindowPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMWindowUnstable.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocument.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentFragment.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentFragment.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentFragmentPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentFragmentUnstable.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentType.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentType.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentTypePrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentUnstable.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMElementUnstable.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEvent.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEvent.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEventPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMFile.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMFile.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMFileList.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMFileList.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMFileListPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMFilePrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAnchorElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAnchorElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAnchorElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAppletElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAppletElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAppletElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAreaElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAreaElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAreaElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBRElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBRElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBRElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBaseElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBaseElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBaseElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBodyElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBodyElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBodyElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLButtonElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLButtonElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLButtonElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLCanvasElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLCanvasElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLCanvasElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLCollection.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLCollection.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLCollectionPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDListElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDListElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDListElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDirectoryElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDirectoryElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDirectoryElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDivElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDivElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDivElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDocument.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDocument.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDocumentPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLElementUnstable.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLEmbedElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLEmbedElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLEmbedElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFieldSetElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFieldSetElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFieldSetElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFontElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFontElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFontElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFormElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFormElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFormElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFrameElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFrameElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFrameElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFrameSetElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFrameSetElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFrameSetElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHRElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHRElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHRElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHeadElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHeadElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHeadElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHeadingElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHeadingElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHeadingElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHtmlElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHtmlElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHtmlElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLIFrameElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLIFrameElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLIFrameElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLImageElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLImageElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLImageElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLInputElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLInputElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLInputElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLIElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLIElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLIElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLabelElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLabelElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLabelElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLegendElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLegendElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLegendElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLinkElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLinkElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLinkElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMapElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMapElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMapElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMarqueeElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMarqueeElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMarqueeElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMenuElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMenuElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMenuElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMetaElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMetaElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMetaElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLModElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLModElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLModElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOListElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOListElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOListElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLObjectElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLObjectElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLObjectElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptGroupElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptGroupElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptGroupElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptionElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptionElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptionElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptionsCollection.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptionsCollection.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptionsCollectionPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLParagraphElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLParagraphElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLParagraphElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLParamElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLParamElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLParamElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLPreElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLPreElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLPreElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLPrivate.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLQuoteElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLQuoteElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLQuoteElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLScriptElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLScriptElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLScriptElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLSelectElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLSelectElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLSelectElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLStyleElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLStyleElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLStyleElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableCaptionElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableCaptionElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableCaptionElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableCellElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableCellElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableCellElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableColElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableColElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableColElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableRowElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableRowElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableRowElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableSectionElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableSectionElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableSectionElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTextAreaElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTextAreaElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTextAreaElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTitleElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTitleElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTitleElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLUListElement.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLUListElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLUListElementPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMKeyboardEvent.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMKeyboardEvent.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMKeyboardEventPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaList.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaListPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMouseEvent.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMouseEvent.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMouseEventPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNamedNodeMap.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNamedNodeMap.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNamedNodeMapPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNode.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeIterator.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeIterator.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeIteratorPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeList.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeList.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeListPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodePrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMProcessingInstruction.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMProcessingInstruction.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMProcessingInstructionPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMRange.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMRange.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMRangePrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMRangeUnstable.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStyleSheet.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStyleSheet.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStyleSheetList.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStyleSheetList.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStyleSheetListPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStyleSheetPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMText.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMText.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTextPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTreeWalker.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTreeWalker.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTreeWalkerPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMUIEvent.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMUIEvent.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMUIEventPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMWheelEvent.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMWheelEvent.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMWheelEventPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMXPathExpression.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMXPathExpression.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMXPathExpressionPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMXPathNSResolverPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMXPathResult.cpp: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMXPathResult.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMXPathResultPrivate.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/webkitdom.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/webkitdomautocleanups.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/webkitdomdefines.h: |
| |
| 2016-10-23 Chris Dumez <cdumez@apple.com> |
| |
| Another unreviewed attempt to fix the WatchOS / TvOS build after r207585. |
| <rdar://problem/28902292> |
| |
| Disable USE_CFURLCONNECTION on newer WatchOS / TvOS. |
| |
| * config.h: |
| |
| 2016-10-23 Chris Dumez <cdumez@apple.com> |
| |
| Unreviewed attempt to fix WatchOS / TvOS build after r207585. |
| <rdar://problem/28902292> |
| |
| Enable NETWORK_SESSION on those platforms. |
| |
| * config.h: |
| |
| 2016-10-22 Dan Bernstein <mitz@apple.com> |
| |
| [iOS] _webViewWillEndNavigationGesture:withNavigationToBackForwardListItem: is never called |
| https://bugs.webkit.org/show_bug.cgi?id=163758 |
| |
| Reviewed by Darin Adler. |
| |
| * UIProcess/ios/ViewGestureControllerIOS.mm: |
| (WebKit::ViewGestureController::beginSwipeGesture): Don’t reset the interactive update |
| handler. |
| |
| 2016-10-21 David Kilzer <ddkilzer@apple.com> |
| |
| Bug 163762: IntSize::area() should used checked arithmetic |
| <https://webkit.org/b/163762> |
| |
| Reviewed by Darin Adler. |
| |
| * Shared/ShareableBitmap.cpp: |
| (WebKit::ShareableBitmap::create): Add overflow check and return |
| nullptr on overflow. |
| (WebKit::ShareableBitmap::createShareable): Ditto. |
| (WebKit::ShareableBitmap::create): Change debug assert for |
| adequate buffer size check into release check. |
| * Shared/ShareableBitmap.h: |
| (WebKit::ShareableBitmap::numBytesForSize): Change to return a |
| Checked<unsigned, RecordOverflow> value. |
| (WebKit::ShareableBitmap::sizeInBytes): |
| * Shared/cairo/ShareableBitmapCairo.cpp: |
| (WebKit::ShareableBitmap::numBytesForSize): Ditto. |
| * UIProcess/API/Cocoa/WKWebView.mm: |
| (-[WKWebView _takeViewSnapshot]): Call unsafeGet(). |
| |
| 2016-10-21 Eric Carlson <eric.carlson@apple.com> |
| |
| [MediaStream] Dynamically generate media capture sandbox extensions |
| https://bugs.webkit.org/show_bug.cgi?id=154861 |
| <rdar://problem/24909411> |
| |
| Reviewed by Tim Horton. |
| |
| * Shared/SandboxExtension.h: |
| (WebKit::SandboxExtension::createHandleForGenericExtension): |
| * Shared/mac/SandboxExtensionMac.mm: |
| (WebKit::wkSandboxExtensionType): Add case for generic handle. |
| (WebKit::SandboxExtension::createHandleForGenericExtension): New. |
| |
| * UIProcess/UserMediaPermissionRequestManagerProxy.cpp: |
| (WebKit::UserMediaPermissionRequestManagerProxy::invalidateRequests): Clear the list of extensions granted. |
| (WebKit::UserMediaPermissionRequestManagerProxy::userMediaAccessWasGranted): Extend the web |
| process sandbox as necessary. |
| * UIProcess/UserMediaPermissionRequestManagerProxy.h: |
| |
| * WebProcess/MediaStream/UserMediaPermissionRequestManager.cpp: |
| (WebKit::UserMediaPermissionRequestManager::~UserMediaPermissionRequestManager): Revoke all |
| sandbox extensions. |
| (WebKit::UserMediaPermissionRequestManager::grantUserMediaDevicesSandboxExtension): Consume |
| sandbox extensions. |
| * WebProcess/MediaStream/UserMediaPermissionRequestManager.h: |
| |
| * WebProcess/WebPage/WebPage.cpp: |
| (WebKit::WebPage::grantUserMediaDevicesSandboxExtension): Pass-through to user media manager. |
| * WebProcess/WebPage/WebPage.h: |
| |
| * WebProcess/WebPage/WebPage.messages.in: Add GrantUserMediaDevicesSandboxExtension. |
| |
| * WebProcess/com.apple.WebProcess.sb.in: Add rules, defines, and a macro to allow dynamic extensions |
| for media capture devices. |
| |
| 2016-10-21 Gavin Barraclough <barraclough@apple.com> |
| |
| WebPageProxy should not need PageActivityState |
| https://bugs.webkit.org/show_bug.cgi?id=163821 |
| |
| Reviewed by Geoff Garen. |
| |
| The PageActivityState is currently plumbed back from WebCore up to the UI process, to |
| determine whether to enabled process suppression. However the information it contains |
| (whether a page load is ongoing, whether audio is playing) is already available via |
| other means. Remove this use of PageActivityState. |
| |
| * UIProcess/PageLoadState.cpp: |
| (WebKit::PageLoadState::commitChanges): |
| - PageLoadState notifies WebPageProxy when loading state changes. |
| * UIProcess/WebPageProxy.cpp: |
| (WebKit::WebPageProxy::updateThrottleState): |
| - Now relies on info from PageLoadState, setMuted, isPlayingMediaDidChange. |
| (WebKit::WebPageProxy::setMuted): |
| (WebKit::WebPageProxy::isPlayingMediaDidChange): |
| - If audio playback state changes we may need to update the throttle state. |
| (WebKit::WebPageProxy::setPageActivityState): Deleted. |
| - removed PageActivityState from WK2. |
| * UIProcess/WebPageProxy.h: |
| (WebKit::WebPageProxy::isLoadingChanged): |
| - PageLoadState notifies WebPageProxy when loading state changes. |
| * UIProcess/WebPageProxy.messages.in: |
| - removed PageActivityState from WK2. |
| * WebProcess/WebCoreSupport/WebChromeClient.cpp: |
| (WebKit::WebChromeClient::setPageActivityState): Deleted. |
| - removed PageActivityState from WK2. |
| * WebProcess/WebCoreSupport/WebChromeClient.h: |
| - removed PageActivityState from WK2. |
| * WebProcess/WebPage/WebPage.cpp: |
| (WebKit::WebPage::setPageActivityState): Deleted. |
| - removed PageActivityState from WK2. |
| * WebProcess/WebPage/WebPage.h: |
| - removed PageActivityState from WK2. |
| |
| 2016-10-21 Gavin Barraclough <barraclough@apple.com> |
| |
| WebPage should take UserActivity directly for user input |
| https://bugs.webkit.org/show_bug.cgi?id=163813 |
| |
| Reviewed by Anders Carlsson. |
| |
| When we receive mouse/keyboard events in a page, we want to prevent AppNap. We currently do so |
| via the PageThrottler. This patch is to just make the WebPage drive the UserActivity directly. |
| |
| Two reasons to do so: (1) to cleanup & simplify for further refactoring. (2) The current code |
| isn't really achieving the desired effect. The page setting the flag in the throttler to get |
| the activity to be set is now a less effective way of achieving this goal, since the |
| PageActivityState bounces back across to the UI process & then messages back to the WebContent |
| process to take the UserActivity. These extra hops defeat the purpose of making sure the boost |
| from the initial message isn't lost. |
| |
| * WebProcess/WebPage/WebPage.cpp: |
| (WebKit::m_userActivityHysteresis): |
| - m_userActivityHysteresis triggers updateUserActivity. |
| (WebKit::WebPage::setPageSuppressed): |
| - setPageSuppressed starts/stops m_userActivityHysteresis. |
| (WebKit::WebPage::updateUserActivity): |
| - update UserActivity based on state of m_userActivityHysteresis. |
| (WebKit::WebPage::mouseEvent): |
| (WebKit::WebPage::wheelEvent): |
| (WebKit::WebPage::keyEvent): |
| - input events impulse m_userActivityHysteresis. |
| * WebProcess/WebPage/WebPage.h: |
| |
| 2016-10-21 Wenson Hsieh <wenson_hsieh@apple.com> |
| |
| Support (insertFrom|deleteBy)Composition and (insert|delete)CompositionText inputTypes for InputEvents |
| https://bugs.webkit.org/show_bug.cgi?id=163460 |
| <rdar://problem/28784142> |
| |
| Reviewed by Darin Adler. |
| |
| Handle new EditAction types for inserting/deleting pending/final compositions. |
| |
| * UIProcess/WebEditCommandProxy.cpp: |
| (WebKit::WebEditCommandProxy::nameForEditAction): |
| |
| 2016-10-21 Jeremy Jones <jeremyj@apple.com> |
| |
| Implement basic pointer lock behavior for WebKit and WebKit2. |
| https://bugs.webkit.org/show_bug.cgi?id=162745 |
| |
| Reviewed by Simon Fraser. |
| |
| Enable basic pointer lock functionality by plumbing requests through WebPage IPC. |
| Pass through mouse movement deltas. |
| Unlock pointer when view is no longer visible. |
| |
| * Shared/WebEventConversion.cpp: |
| (WebKit::WebKit2PlatformMouseEvent::WebKit2PlatformMouseEvent): Pass along mouse movement. |
| * UIProcess/WebPageProxy.cpp: |
| (WebKit::WebPageProxy::dispatchViewStateChange): Unlock pointer when page is not visible. |
| (WebKit::WebPageProxy::requestPointerLock): Hide and disassociate pointer. |
| (WebKit::WebPageProxy::requestPointerUnlock): Show and associate pointer. |
| * UIProcess/WebPageProxy.h: |
| * UIProcess/WebPageProxy.messages.in: Add methods. |
| * WebProcess/WebCoreSupport/WebChromeClient.cpp: |
| (WebKit::WebChromeClient::requestPointerLock): Pass along to web page. |
| (WebKit::WebChromeClient::requestPointerUnlock): Ditto. |
| * WebProcess/WebCoreSupport/WebChromeClient.h: |
| * WebProcess/WebPage/WebPage.cpp: |
| (WebKit::WebPage::didAcquirePointerLock): Forward to PointerLockController. |
| (WebKit::WebPage::didNotAcquirePointerLock): Ditto. |
| (WebKit::WebPage::didLosePointerLock): Ditto. |
| * WebProcess/WebPage/WebPage.h: |
| * WebProcess/WebPage/WebPage.messages.in: Add methods. |
| |
| 2016-10-21 Wenson Hsieh <wenson_hsieh@apple.com> |
| |
| Implement InputEvent.getTargetRanges() for the input events spec |
| https://bugs.webkit.org/show_bug.cgi?id=162947 |
| <rdar://problem/28853079> |
| |
| Reviewed by Darin Adler. |
| |
| Boilerplate change to add a runtime guard for InputEvents-related IDL interfaces. See WebCore ChangeLog entry |
| for more details. |
| |
| * WebProcess/WebPage/WebPage.cpp: |
| (WebKit::WebPage::updatePreferences): |
| |
| 2016-10-20 Carlos Garcia Campos <cgarcia@igalia.com> |
| |
| [GTK] Configures but fails to link with ENABLE_OPENGL=OFF |
| https://bugs.webkit.org/show_bug.cgi?id=163449 |
| |
| Reviewed by Michael Catanzaro. |
| |
| * UIProcess/API/gtk/WebKitWebViewBase.cpp: |
| (webkitWebViewBaseRealize): Check TEXTURE_MAPPER_GL instead of TEXTURE_MAPPER and also ensure the current |
| display is X11. |
| (webkitWebViewBaseUnrealize): Ditto. |
| (webkitWebViewBaseDidRelaunchWebProcess): Check TEXTURE_MAPPER_GL instead of TEXTURE_MAPPER. |
| (webkitWebViewBasePageClosed): Ditto. |
| * UIProcess/AcceleratedDrawingAreaProxy.cpp: |
| (WebKit::AcceleratedDrawingAreaProxy::didUpdateBackingStoreState): Ditto. |
| (WebKit::AcceleratedDrawingAreaProxy::waitForAndDispatchDidUpdateBackingStoreState): Check EGL is enabled before |
| trying to use the WaylandCompositor. |
| * UIProcess/AcceleratedDrawingAreaProxy.h: |
| * UIProcess/WebProcessPool.cpp: |
| (WebKit::WebProcessPool::createNewWebProcess): Ditto. |
| * UIProcess/gtk/AcceleratedBackingStore.cpp: |
| (WebKit::AcceleratedBackingStore::create): Ditto. |
| * UIProcess/gtk/AcceleratedBackingStoreWayland.cpp: |
| * UIProcess/gtk/WaylandCompositor.cpp: |
| * UIProcess/gtk/WaylandCompositor.h: |
| * WebProcess/WebPage/AcceleratedDrawingArea.cpp: |
| (WebKit::AcceleratedDrawingArea::enterAcceleratedCompositingMode): Check TEXTURE_MAPPER_GL instead of TEXTURE_MAPPER. |
| * WebProcess/WebPage/AcceleratedDrawingArea.h: |
| * WebProcess/WebPage/DrawingArea.h: |
| * WebProcess/WebPage/DrawingArea.messages.in: |
| * WebProcess/WebPage/LayerTreeHost.h: |
| |
| 2016-10-20 Chris Dumez <cdumez@apple.com> |
| |
| "Download Linked File" context menu action should use 'download' attribute as suggested filename |
| https://bugs.webkit.org/show_bug.cgi?id=163742 |
| <rdar://problem/28840734> |
| |
| Reviewed by Darin Adler. |
| |
| Update "Download Linked File" context menu action to use the anchor |
| element's 'download' attribute as suggested filename for the download. |
| |
| * NetworkProcess/NetworkProcess.cpp: |
| (WebKit::NetworkProcess::downloadRequest): |
| * NetworkProcess/NetworkProcess.h: |
| * NetworkProcess/NetworkProcess.messages.in: |
| * Shared/WebHitTestResultData.cpp: |
| (WebKit::WebHitTestResultData::WebHitTestResultData): |
| (WebKit::WebHitTestResultData::encode): |
| (WebKit::WebHitTestResultData::decode): |
| * Shared/WebHitTestResultData.h: |
| * UIProcess/WebPageProxy.cpp: |
| (WebKit::WebPageProxy::contextMenuItemSelected): |
| * UIProcess/WebProcessPool.cpp: |
| (WebKit::WebProcessPool::download): |
| * UIProcess/WebProcessPool.h: |
| * WebProcess/InjectedBundle/InjectedBundleHitTestResult.cpp: |
| (WebKit::InjectedBundleHitTestResult::linkSuggestedFilename): |
| |
| 2016-10-19 Myles C. Maxfield <mmaxfield@apple.com> |
| |
| [macOS] [iOS] Disable variation fonts on macOS El Capitan and iOS 9 |
| https://bugs.webkit.org/show_bug.cgi?id=163374 |
| |
| Reviewed by Darin Adler. |
| |
| * Configurations/FeatureDefines.xcconfig: |
| |
| 2016-10-20 Brady Eidson <beidson@apple.com> |
| |
| IndexedDB 2.0: Support IDBObjectStore name assignment. |
| <rdar://problem/28806931> and https://bugs.webkit.org/show_bug.cgi?id=163749 |
| |
| Reviewed by Alex Christensen. |
| |
| * DatabaseProcess/IndexedDB/WebIDBConnectionToClient.cpp: |
| (WebKit::WebIDBConnectionToClient::didRenameObjectStore): |
| (WebKit::WebIDBConnectionToClient::renameObjectStore): |
| * DatabaseProcess/IndexedDB/WebIDBConnectionToClient.h: |
| * DatabaseProcess/IndexedDB/WebIDBConnectionToClient.messages.in: |
| |
| * WebProcess/Databases/IndexedDB/WebIDBConnectionToServer.cpp: |
| (WebKit::WebIDBConnectionToServer::renameObjectStore): |
| (WebKit::WebIDBConnectionToServer::didRenameObjectStore): |
| * WebProcess/Databases/IndexedDB/WebIDBConnectionToServer.h: |
| * WebProcess/Databases/IndexedDB/WebIDBConnectionToServer.messages.in: |
| |
| 2016-10-20 Carlos Garcia Campos <cgarcia@igalia.com> |
| |
| [GTK] Avoid strstr() when checking (E)GL extensions |
| https://bugs.webkit.org/show_bug.cgi?id=161958 |
| |
| Reviewed by Žan Doberšek. |
| |
| Use GLContext::isExtensionSupported() instead of strstr(). |
| |
| * UIProcess/gtk/WaylandCompositor.cpp: |
| (WebKit::WaylandCompositor::initializeEGL): |
| |
| 2016-10-20 Carlos Garcia Campos <cgarcia@igalia.com> |
| |
| Wrong use of EGL_DEPTH_SIZE |
| https://bugs.webkit.org/show_bug.cgi?id=155536 |
| |
| Reviewed by Michael Catanzaro. |
| |
| Use XErrorTrapper class instead of the custom XErrorHandler. |
| |
| * PluginProcess/unix/PluginProcessMainUnix.cpp: |
| (WebKit::PluginProcessMainUnix): |
| |
| 2016-10-19 Carlos Garcia Campos <cgarcia@igalia.com> |
| |
| [SOUP] Add NetworkSession implementation and switch to use it |
| https://bugs.webkit.org/show_bug.cgi?id=163597 |
| |
| Reviewed by Alex Christensen. |
| |
| Basically move the ResourceHandle implementation to the network process, but modernized, cleaned up, and adapted |
| to the NetworkSession model. |
| |
| * CMakeLists.txt: Add new files to compilation. |
| * NetworkProcess/Downloads/Download.cpp: |
| (WebKit::Download::Download): Use the same code for all ports using NetworkSession and add missing |
| initialization of m_sessionID. |
| * NetworkProcess/Downloads/Download.h: |
| (WebKit::Download::Download): Define PlatformDownloadTaskRef on every platform to make the constructor common to |
| all ports using NetworkSession. |
| * NetworkProcess/Downloads/soup/DownloadSoup.cpp: |
| (WebKit::Download::cancelNetworkLoad): |
| (WebKit::Download::platformDidFinish): |
| * NetworkProcess/NetworkDataTask.h: |
| (WebKit::NetworkDataTask::pendingDownloadID): Make const. |
| (WebKit::NetworkDataTask::pendingDownload): Ditto. |
| (WebKit::NetworkDataTask::pendingDownloadLocation): Ditto. |
| (WebKit::NetworkDataTask::isDownload): Helper to check if the task is a download. |
| * NetworkProcess/NetworkLoad.cpp: |
| (WebKit::NetworkLoad::didReceiveResponseNetworkSession): Use NetworkDataTask::isDownload(). |
| * NetworkProcess/NetworkProcess.cpp: |
| (WebKit::NetworkProcess::NetworkProcess): NetworkSession::setCustomProtocolManager() is Cocoa only. |
| * NetworkProcess/NetworkSession.h: |
| * NetworkProcess/cocoa/NetworkSessionCocoa.mm: |
| (WebKit::NetworkSession::networkStorageSession): Make const. |
| * NetworkProcess/soup/NetworkDataTaskSoup.cpp: Added. |
| (WebKit::NetworkDataTask::NetworkDataTask): |
| (WebKit::NetworkDataTask::~NetworkDataTask): |
| (WebKit::NetworkDataTask::scheduleFailure): |
| (WebKit::NetworkDataTask::failureTimerFired): |
| (WebKit::NetworkDataTask::suggestedFilename): |
| (WebKit::NetworkDataTask::setSuggestedFilename): |
| (WebKit::NetworkDataTask::setPendingDownloadLocation): |
| (WebKit::NetworkDataTask::allowsSpecificHTTPSCertificateForHost): |
| (WebKit::NetworkDataTask::createRequest): |
| (WebKit::NetworkDataTask::clearRequest): |
| (WebKit::NetworkDataTask::resume): |
| (WebKit::NetworkDataTask::suspend): |
| (WebKit::NetworkDataTask::cancel): |
| (WebKit::NetworkDataTask::invalidateAndCancel): |
| (WebKit::NetworkDataTask::state): |
| (WebKit::NetworkDataTask::timeoutFired): |
| (WebKit::NetworkDataTask::startTimeout): |
| (WebKit::NetworkDataTask::stopTimeout): |
| (WebKit::NetworkDataTask::sendRequestCallback): |
| (WebKit::NetworkDataTask::didSendRequest): |
| (WebKit::NetworkDataTask::didReceiveResponse): |
| (WebKit::NetworkDataTask::tlsErrorsChangedCallback): |
| (WebKit::NetworkDataTask::tlsErrorsChanged): |
| (WebKit::NetworkDataTask::applyAuthenticationToRequest): |
| (WebKit::NetworkDataTask::authenticateCallback): |
| (WebKit::isAuthenticationFailureStatusCode): |
| (WebKit::NetworkDataTask::authenticate): |
| (WebKit::NetworkDataTask::continueAuthenticate): |
| (WebKit::NetworkDataTask::skipInputStreamForRedirectionCallback): |
| (WebKit::NetworkDataTask::skipInputStreamForRedirection): |
| (WebKit::NetworkDataTask::didFinishSkipInputStreamForRedirection): |
| (WebKit::shouldRedirectAsGET): |
| (WebKit::NetworkDataTask::shouldStartHTTPRedirection): |
| (WebKit::NetworkDataTask::continueHTTPRedirection): |
| (WebKit::NetworkDataTask::readCallback): |
| (WebKit::NetworkDataTask::read): |
| (WebKit::NetworkDataTask::didRead): |
| (WebKit::NetworkDataTask::didFinishRead): |
| (WebKit::NetworkDataTask::requestNextPartCallback): |
| (WebKit::NetworkDataTask::requestNextPart): |
| (WebKit::NetworkDataTask::didRequestNextPart): |
| (WebKit::NetworkDataTask::didFinishRequestNextPart): |
| (WebKit::NetworkDataTask::gotHeadersCallback): |
| (WebKit::NetworkDataTask::didGetHeaders): |
| (WebKit::NetworkDataTask::wroteBodyDataCallback): |
| (WebKit::NetworkDataTask::didWriteBodyData): |
| (WebKit::NetworkDataTask::download): |
| (WebKit::NetworkDataTask::writeDownloadCallback): |
| (WebKit::NetworkDataTask::writeDownload): |
| (WebKit::NetworkDataTask::didWriteDownload): |
| (WebKit::NetworkDataTask::didFinishDownload): |
| (WebKit::NetworkDataTask::didFailDownload): |
| (WebKit::NetworkDataTask::cleanDownloadFiles): |
| (WebKit::NetworkDataTask::didFail): |
| (WebKit::NetworkDataTask::networkEventCallback): |
| (WebKit::NetworkDataTask::networkEvent): |
| (WebKit::NetworkDataTask::startingCallback): |
| (WebKit::NetworkDataTask::requestStartedCallback): |
| (WebKit::NetworkDataTask::didStartRequest): |
| (WebKit::NetworkDataTask::restartedCallback): |
| (WebKit::NetworkDataTask::didRestart): |
| * NetworkProcess/soup/NetworkSessionSoup.cpp: |
| (WebKit::NetworkSession::create): |
| (WebKit::NetworkSession::defaultSession): |
| (WebKit::NetworkSession::networkStorageSession): |
| (WebKit::NetworkSession::NetworkSession): |
| (WebKit::NetworkSession::~NetworkSession): |
| (WebKit::NetworkSession::soupSession): |
| (WebKit::NetworkSession::invalidateAndCancel): |
| (WebKit::NetworkSession::clearCredentials): |
| * NetworkProcess/soup/RemoteNetworkingContextSoup.cpp: |
| (WebKit::RemoteNetworkingContext::ensurePrivateBrowsingSession): Add implementation matching |
| WebFrameNetworkingContext::ensurePrivateBrowsingSession(). |
| (WebKit::RemoteNetworkingContext::storageSession): Do not always return the default session if the given one is |
| in the global map. |
| * PlatformEfl.cmake: Ad new files to compilation. |
| * PlatformGTK.cmake: Ditto. |
| * WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.cpp: |
| (WebKit::WebFrameNetworkingContext::ensurePrivateBrowsingSession): Also create a NetworkSession. |
| * config.h: Enable NetworkSession unconditionally for Soup based ports. |
| |
| 2016-10-19 Alex Christensen <achristensen@webkit.org> |
| |
| Revert r207151 |
| https://bugs.webkit.org/show_bug.cgi?id=163675 |
| |
| Reviewed by Brent Fulgham. |
| |
| * NetworkProcess/Downloads/Download.h: |
| * NetworkProcess/Downloads/mac/DownloadMac.mm: |
| * NetworkProcess/NetworkLoad.h: |
| * NetworkProcess/mac/NetworkLoadMac.mm: |
| (WebKit::NetworkLoad::willCacheResponseAsync): |
| * Shared/Authentication/cocoa/AuthenticationManagerCocoa.mm: |
| (WebKit::AuthenticationManager::receivedCredential): |
| (WebKit::AuthenticationManager::receivedRequestToContinueWithoutCredential): |
| (WebKit::AuthenticationManager::receivedCancellation): |
| (WebKit::AuthenticationManager::receivedRequestToPerformDefaultHandling): |
| (WebKit::AuthenticationManager::receivedChallengeRejection): |
| * Shared/WebProcessCreationParameters.cpp: |
| (WebKit::WebProcessCreationParameters::encode): |
| (WebKit::WebProcessCreationParameters::decode): |
| * Shared/WebProcessCreationParameters.h: |
| * Shared/mac/WebCoreArgumentCodersMac.mm: |
| (IPC::ArgumentCoder<ResourceRequest>::encodePlatformData): |
| (IPC::ArgumentCoder<ResourceRequest>::decodePlatformData): |
| * WebKit2.xcodeproj/project.pbxproj: |
| |
| 2016-10-19 Chris Dumez <cdumez@apple.com> |
| |
| [WK2] Expose suggested filename via WKBundleHitTestResult API |
| https://bugs.webkit.org/show_bug.cgi?id=163693 |
| <rdar://problem/28840734> |
| |
| Reviewed by Anders Carlsson. |
| |
| Expose suggested filename via WKBundleHitTestResult API. The implementation |
| currently relies on the 'download' attribute on anchor / area elements |
| that we recently started supporting. |
| |
| * WebProcess/InjectedBundle/API/c/WKBundleHitTestResult.cpp: |
| (WKBundleHitTestResultCopyLinkSuggestedFilename): |
| * WebProcess/InjectedBundle/API/c/WKBundleHitTestResult.h: |
| * WebProcess/InjectedBundle/InjectedBundleHitTestResult.cpp: |
| (WebKit::InjectedBundleHitTestResult::create): |
| (WebKit::InjectedBundleHitTestResult::mediaType): |
| (WebKit::InjectedBundleHitTestResult::linkSuggestedFilename): |
| (WebKit::InjectedBundleHitTestResult::imageRect): |
| * WebProcess/InjectedBundle/InjectedBundleHitTestResult.h: |
| |
| 2016-10-19 Ryan Haddad <ryanhaddad@apple.com> |
| |
| Unreviewed, rolling out r207557. |
| |
| This change caused animations/font-variations tests to time |
| out on pre-Sierra Macs. |
| |
| Reverted changeset: |
| |
| "[macOS] [iOS] Disable variation fonts on macOS El Capitan and |
| iOS 9" |
| https://bugs.webkit.org/show_bug.cgi?id=163374 |
| http://trac.webkit.org/changeset/207557 |
| |
| 2016-10-19 Andy Estes <aestes@apple.com> |
| |
| Crash in ASCIICaseInsensitiveHash::hash() when a response has a null MIME type |
| https://bugs.webkit.org/show_bug.cgi?id=163476 |
| <rdar://problem/26941395> |
| |
| Reviewed by Andreas Kling. |
| |
| When custom content providers are registered and a response has a null MIME type, WebPage |
| will pass a null String to HashSet::contains(). This results in a null pointer dereference, |
| since the String hash functions do not support null Strings and unconditionally dereference |
| their StringImpls. Fixed by checking that Strings are non-null before calling |
| HashSet::contains() on m_mimeTypesWithCustomContentProviders. |
| |
| New API test: WebKit2.LoadDataWithNilMIMEType. |
| |
| * WebProcess/WebPage/WebPage.cpp: |
| (WebKit::WebPage::shouldUseCustomContentProviderForResponse): Checked if mimeType is null |
| before calling m_mimeTypesWithCustomContentProviders.contains(). |
| (WebKit::WebPage::canShowMIMEType): Ditto. |
| * WebProcess/WebPage/WebPage.h: Made private the declaration of canPluginHandleResponse(). |
| |
| 2016-10-19 Chris Dumez <cdumez@apple.com> |
| |
| Move HTML Interactive Form Validation behind an experimental flag |
| https://bugs.webkit.org/show_bug.cgi?id=163673 |
| |
| Reviewed by Daniel Bates. |
| |
| Move HTML Interactive Form Validation behind an experimental feature flag |
| and disable by default until by have a better UI. |
| |
| * Shared/WebPreferencesDefinitions.h: |
| * WebProcess/InjectedBundle/InjectedBundle.cpp: |
| (WebKit::InjectedBundle::overrideBoolPreferenceForTestRunner): |
| |
| 2016-10-19 Damian Kaleta <dkaleta@apple.com> |
| |
| https://bugs.webkit.org/show_bug.cgi?id=163292 |
| |
| Reviewed by Brady Eidson. |
| |
| Added ability to display context menu asynchronously. |
| |
| * Shared/API/APIObject.h: Added ContextMenuListener. |
| * Shared/API/c/WKBase.h: Added WKContextMenuListenerRef struct. |
| * UIProcess/API/APIContextMenuClient.h: |
| (API::ContextMenuClient::getContextMenuFromProposedMenuAsync): New method that allows showing context menu asynchronously. |
| * UIProcess/API/C/WKAPICast.h: Added a new mapping for WebContextMenuListenerProxy. |
| * UIProcess/API/C/WKContextMenuListener.cpp: Added. New class that allow a client to return results asynchronously. |
| (WKContextMenuListenerGetTypeID): |
| (WKContextMenuListenerUseContextMenuItems): |
| * UIProcess/API/C/WKContextMenuListener.h: Added. |
| * UIProcess/API/C/WKPage.cpp: Added WKPageContextMenuClientV4. |
| (WKPageSetPageContextMenuClient): |
| * UIProcess/API/C/WKPageContextMenuClient.h: |
| * UIProcess/WebContextMenuListenerProxy.cpp: Copied from Source/WebKit2/UIProcess/mac/WebContextMenuProxyMac.h. |
| (WebKit::WebContextMenuListenerProxy::WebContextMenuListenerProxy): |
| (WebKit::WebContextMenuListenerProxy::~WebContextMenuListenerProxy): |
| (WebKit::WebContextMenuListenerProxy::useContextMenuItems): Passes items to m_contextMenuMac. |
| (WebKit::WebContextMenuListenerProxy::invalidate): |
| * UIProcess/WebContextMenuListenerProxy.h: Copied from Source/WebKit2/UIProcess/mac/WebContextMenuProxyMac.h. |
| (WebKit::WebContextMenuListenerProxy::create): |
| * UIProcess/mac/WebContextMenuProxyMac.h: |
| * UIProcess/mac/WebContextMenuProxyMac.mm: |
| (WebKit::WebContextMenuProxyMac::showContextMenuWithItems): Shows context menu. |
| (WebKit::WebContextMenuProxyMac::showContextMenu): Extracted some logic to showContextMenuWithItems(). |
| * WebKit2.xcodeproj/project.pbxproj: |
| |
| 2016-10-19 Myles C. Maxfield <mmaxfield@apple.com> |
| |
| [macOS] [iOS] Disable variation fonts on macOS El Capitan and iOS 9 |
| https://bugs.webkit.org/show_bug.cgi?id=163374 |
| |
| Reviewed by Darin Adler. |
| |
| * Configurations/FeatureDefines.xcconfig: |
| |
| 2016-10-19 Darin Adler <darin@apple.com> |
| |
| Move XPath from ExceptionCode to Exception |
| https://bugs.webkit.org/show_bug.cgi?id=163656 |
| |
| Reviewed by Chris Dumez. |
| |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocument.cpp: |
| (webkit_dom_document_create_expression): Use ExceptionOr. |
| (webkit_dom_document_evaluate): Ditto. |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMXPathExpression.cpp: |
| (webkit_dom_xpath_expression_evaluate): Ditto. |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMXPathResult.cpp: |
| (webkit_dom_xpath_result_iterate_next): Ditto. |
| (webkit_dom_xpath_result_snapshot_item): Ditto. |
| (webkit_dom_xpath_result_get_number_value): Ditto. |
| (webkit_dom_xpath_result_get_string_value): Ditto. |
| (webkit_dom_xpath_result_get_boolean_value): Ditto. |
| (webkit_dom_xpath_result_get_single_node_value): Ditto. |
| (webkit_dom_xpath_result_get_snapshot_length): Ditto. |
| |
| 2016-10-19 Carlos Garcia Campos <cgarcia@igalia.com> |
| |
| NetworkSession: updatedRequest parameter of NetworkProcess::findPendingDownloadLocation is unused since r206988 |
| https://bugs.webkit.org/show_bug.cgi?id=163588 |
| |
| Reviewed by Alex Christensen. |
| |
| The parameter was used only for the DownloadProxy::DidStart message that is no longer sent from |
| findPendingDownloadLocation since r206988. |
| |
| * NetworkProcess/NetworkDataTask.h: |
| (WebKit::NetworkDataTask::currentRequest): Removed since it's unused now. |
| * NetworkProcess/NetworkLoad.cpp: |
| (WebKit::NetworkLoad::convertTaskToDownload): Update the m_currentRequest and pass it to DidStart message. |
| (WebKit::NetworkLoad::didReceiveResponseNetworkSession): |
| * NetworkProcess/NetworkProcess.cpp: |
| (WebKit::NetworkProcess::findPendingDownloadLocation): |
| * NetworkProcess/NetworkProcess.h: |
| * NetworkProcess/cocoa/NetworkDataTaskCocoa.mm: Remove currentRequest() implementation. |
| |
| 2016-10-19 Carlos Garcia Campos <cgarcia@igalia.com> |
| |
| Unreviewed. Fix GTK+ build after r207522. |
| |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMWindow.cpp: |
| (webkit_dom_dom_window_webkit_message_handlers_post_message): Use new exceptions. |
| |
| 2016-10-19 Carlos Garcia Campos <cgarcia@igalia.com> |
| |
| Unreviewed. Fix GTK+ build after r207497. |
| |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLSelectElement.cpp: |
| (webkit_dom_html_select_element_add): Update implementation since add() now takes a Variant. |
| |
| 2016-10-18 Simon Fraser <simon.fraser@apple.com> |
| |
| Add a MiniBrowser menu item to apply page scale in WK1 and WK2 |
| https://bugs.webkit.org/show_bug.cgi?id=163627 |
| |
| Reviewed by Dean Jackson. |
| |
| New SPI to set and retrieve page scale. |
| |
| * UIProcess/API/Cocoa/WKWebView.mm: |
| (-[WKWebView _setPageScale:withOrigin:]): |
| (-[WKWebView _pageScale]): |
| * UIProcess/API/Cocoa/WKWebViewPrivate.h: |
| |
| 2016-10-18 Dean Jackson <dino@apple.com> |
| |
| Remove CSS_SHAPES feature definition. This should always be on. |
| https://bugs.webkit.org/show_bug.cgi?id=163628 |
| <rdar://problem/28834613> |
| |
| Reviewed by Tim Horton. |
| |
| * Configurations/FeatureDefines.xcconfig: |
| |
| 2016-10-18 Ryan Haddad <ryanhaddad@apple.com> |
| |
| Unreviewed, rolling out r207413. |
| |
| This change broke iOS builds. |
| |
| Reverted changeset: |
| |
| "[iOS] Hook up WebPlatformTouchPoint's radiusX / radiusY to |
| _UIWebTouchPoint.majorRadiusInScreenCoordinates" |
| https://bugs.webkit.org/show_bug.cgi?id=163547 |
| http://trac.webkit.org/changeset/207413 |
| |
| 2016-10-18 Commit Queue <commit-queue@webkit.org> |
| |
| Unreviewed, rolling out r207443. |
| https://bugs.webkit.org/show_bug.cgi?id=163616 |
| |
| "Caused 5% PLT regression" (Requested by krollin on #webkit). |
| |
| Reverted changeset: |
| |
| "Crash in ASCIICaseInsensitiveHash::hash() when a response has |
| a null MIME type" |
| https://bugs.webkit.org/show_bug.cgi?id=163476 |
| http://trac.webkit.org/changeset/207443 |
| |
| 2016-10-18 Megan Gardner <megan_gardner@apple.com> |
| |
| Fix build for platforms where HAVE(LINK_PREVIEW) is false |
| https://bugs.webkit.org/show_bug.cgi?id=163607 |
| |
| Reviewed by Tim Horton. |
| |
| Added needed # for link preview |
| |
| * UIProcess/ios/WKContentViewInteraction.mm: |
| (-[WKContentView _contentsOfUserInterfaceItem:]): |
| |
| 2016-10-18 Joseph Pecoraro <pecoraro@apple.com> |
| |
| Remote Web Inspector: Timeline UI not updating while recording |
| https://bugs.webkit.org/show_bug.cgi?id=163582 |
| <rdar://problem/28766837> |
| |
| Reviewed by Timothy Hatcher. |
| |
| * WebProcess/WebPage/RemoteWebInspectorUI.cpp: |
| (WebKit::RemoteWebInspectorUI::frontendLoaded): |
| Local inspector windows keep the web view alive and toggle the |
| WebInspector.visible state depending on whether or not an inspector is |
| open. Remote Inspector windows go away when closed, so they can always |
| be marked as open. This matches earlier remote inspector behavior. |
| |
| 2016-10-18 Eric Carlson <eric.carlson@apple.com> |
| |
| [MediaStream] Resolve constraints and enumerate devices in the UI process |
| https://bugs.webkit.org/show_bug.cgi?id=162147 |
| <rdar://problem/28803569> |
| |
| Reviewed by Darin Adler. |
| |
| Restructure gUM constraint validation and MediaDevices.enumerateDevices so all media device |
| access happens in the UI process. |
| |
| * Scripts/webkit/messages.py: |
| (headers_for_type): Special case MediaConstraintsData. |
| |
| * Shared/WebCoreArgumentCoders.cpp: |
| (IPC::encodeMediaTrackConstraintSetMap): MediaTrackConstraintSetMap encoder. |
| (IPC::ArgumentCoder<MediaConstraintsData>::encode): MediaConstraintsData encoder. |
| (IPC::decodeMediaTrackConstraintSetMap): MediaTrackConstraintSetMap decoder. |
| (IPC::ArgumentCoder<MediaConstraintsData>::decode): MediaConstraintsData decoder. |
| (IPC::ArgumentCoder<CaptureDevice>::encode): CaptureDevice enoder. |
| (IPC::ArgumentCoder<CaptureDevice>::decode): CaptureDevice decoder. |
| * Shared/WebCoreArgumentCoders.h: |
| |
| * UIProcess/API/APIUIClient.h: Remove UserMediaPermissionCheckProxy forward declaration. |
| |
| * UIProcess/API/C/WKUserMediaPermissionRequest.cpp: |
| (toWK): Translate UserMediaPermissionRequestDenialReason to UserMediaAccessDenialReason. |
| (WKUserMediaPermissionRequestDeny): Add "reason" parameter. |
| * UIProcess/API/C/WKUserMediaPermissionRequest.h: |
| |
| * UIProcess/UserMediaPermissionRequestManagerProxy.cpp: |
| (WebKit::UserMediaPermissionRequestManagerProxy::invalidateRequests): Invalidate pending device requests. |
| (WebKit::UserMediaPermissionRequestManagerProxy::createRequest): Make private. |
| (WebKit::toWebCore): Map from UserMediaAccessDenialReason to MediaAccessDenialReason, cast to |
| uint64_t to pass to web process. |
| (WebKit::UserMediaPermissionRequestManagerProxy::denyRequest): Send to web process. |
| (WebKit::UserMediaPermissionRequestManagerProxy::userMediaAccessWasGranted): Ditto. |
| (WebKit::UserMediaPermissionRequestManagerProxy::requestUserMediaPermissionForFrame): Validate |
| constraints and make sure gUM is enabled before prompting user. |
| (WebKit::UserMediaPermissionRequestManagerProxy::enumerateMediaDevicesForFrame): New. |
| (WebKit::UserMediaPermissionRequestManagerProxy::didCompleteUserMediaPermissionCheck): Send |
| results of device enumeration to web process. |
| (WebKit::UserMediaPermissionRequestManagerProxy::didReceiveUserMediaPermissionDecision): Deleted. |
| (WebKit::UserMediaPermissionRequestManagerProxy::createUserMediaPermissionCheck): Deleted. |
| * UIProcess/UserMediaPermissionRequestManagerProxy.h: |
| |
| * UIProcess/UserMediaPermissionRequestProxy.cpp: |
| (WebKit::UserMediaPermissionRequestProxy::allow): |
| (WebKit::UserMediaPermissionRequestProxy::deny): Take "reason" parameter. |
| * UIProcess/UserMediaPermissionRequestProxy.h: |
| |
| * UIProcess/WebPageProxy.cpp: |
| (WebKit::WebPageProxy::requestUserMediaPermissionForFrame): |
| (WebKit::WebPageProxy::enumerateMediaDevicesForFrame): |
| (WebKit::WebPageProxy::checkUserMediaPermissionForFrame): Deleted. |
| * UIProcess/WebPageProxy.h: |
| * UIProcess/WebPageProxy.messages.in: |
| |
| * WebProcess/MediaStream/UserMediaPermissionRequestManager.cpp: |
| (WebKit::UserMediaPermissionRequestManager::startUserMediaRequest): userMediaAccessDenied -> deny. |
| Pass the audio and video constraints to the UI process. |
| (WebKit::UserMediaPermissionRequestManager::userMediaAccessWasGranted): |
| (WebKit::UserMediaPermissionRequestManager::userMediaAccessWasDenied): |
| (WebKit::UserMediaPermissionRequestManager::enumerateMediaDevices): Send the enumeration request |
| to the UI process. |
| (WebKit::UserMediaPermissionRequestManager::cancelMediaDevicesEnumeration): |
| (WebKit::UserMediaPermissionRequestManager::didCompleteMediaDeviceEnumeration): |
| (WebKit::UserMediaPermissionRequestManager::didReceiveUserMediaPermissionDecision): Deleted. |
| (WebKit::UserMediaPermissionRequestManager::startUserMediaPermissionCheck): Deleted. |
| (WebKit::UserMediaPermissionRequestManager::cancelUserMediaPermissionCheck): Deleted. |
| (WebKit::UserMediaPermissionRequestManager::didCompleteUserMediaPermissionCheck): Deleted. |
| * WebProcess/MediaStream/UserMediaPermissionRequestManager.h: |
| |
| * WebProcess/WebCoreSupport/WebUserMediaClient.cpp: |
| (WebKit::WebUserMediaClient::enumerateMediaDevices): New. |
| (WebKit::WebUserMediaClient::cancelMediaDevicesEnumerationRequest): New. |
| (WebKit::WebUserMediaClient::checkUserMediaPermission): Deleted. |
| (WebKit::WebUserMediaClient::cancelUserMediaPermissionCheck): Deleted. |
| * WebProcess/WebCoreSupport/WebUserMediaClient.h: |
| |
| * WebProcess/WebPage/WebPage.cpp: |
| (WebKit::WebPage::userMediaAccessWasGranted): New. |
| (WebKit::WebPage::userMediaAccessWasDenied): Ditto. |
| (WebKit::WebPage::didCompleteMediaDeviceEnumeration): |
| (WebKit::WebPage::didReceiveUserMediaPermissionDecision): Deleted. |
| (WebKit::WebPage::didCompleteUserMediaPermissionCheck): Deleted. |
| * WebProcess/WebPage/WebPage.h: |
| * WebProcess/WebPage/WebPage.messages.in: |
| |
| 2016-10-17 Antti Koivisto <antti@apple.com> |
| |
| Rename setNeedsStyleRecalc to invalidateStyle |
| https://bugs.webkit.org/show_bug.cgi?id=163542 |
| |
| Reviewed by Darin Adler. |
| |
| * WebProcess/Plugins/PluginView.cpp: |
| (WebKit::PluginView::didInitializePlugin): |
| (WebKit::PluginView::pluginProcessCrashed): |
| |
| 2016-10-17 Carlos Garcia Campos <cgarcia@igalia.com> |
| |
| NetworkSession: PendingDownload is leaked if canceled before willDecidePendingDownloadDestination |
| https://bugs.webkit.org/show_bug.cgi?id=163545 |
| |
| Reviewed by Alex Christensen. |
| |
| If a download started by DownloadManager::startDownload() is cancelled before |
| DownloadManager::willDecidePendingDownloadDestination() is called, DownloadManager::cancelDownload() does |
| nothing, because the Download hasn't been created yet and m_downloadsWaitingForDestination map doesn't contain |
| the download ID, and the PendingDownload is never removed from the m_pendingDownloads map. |
| |
| * NetworkProcess/Downloads/DownloadManager.cpp: |
| (WebKit::DownloadManager::cancelDownload): Always take the PendingDownload from m_pendingDownloads map. Then, if |
| the download was already in m_downloadsWaitingForDestination map, get the network data task to properly cancel |
| it and then call the completion handler to ignore the request. Otherwise cancel the pending download if exists. |
| * NetworkProcess/Downloads/PendingDownload.cpp: |
| (WebKit::PendingDownload::cancel): Cancel the network load and notify the UI process that the download was canceled. |
| * NetworkProcess/Downloads/PendingDownload.h: |
| |
| 2016-10-17 Megan Gardner <megan_gardner@apple.com> |
| |
| Add test and infrastructure for link popover |
| https://bugs.webkit.org/show_bug.cgi?id=163406 |
| |
| Reviewed by Simon Fraser. |
| |
| Add infrastructure to see when a link popover appears, and what URL it has loaded. |
| |
| * UIProcess/API/Cocoa/WKWebView.mm: |
| (-[WKWebView didShowForcePressPreview]): |
| (-[WKWebView didDismissForcePressPreview]): |
| * UIProcess/API/Cocoa/WKWebViewPrivate.h: |
| * UIProcess/ios/WKContentViewInteraction.mm: |
| (-[WKContentView _contentsOfUserInterfaceItem:]): |
| (-[WKContentView _presentedViewControllerForPreviewItemController:]): |
| (-[WKContentView _previewItemController:didDismissPreview:committing:]): |
| (-[WKContentView _previewItemControllerDidCancelPreview:]): |
| |
| 2016-10-17 Tim Horton <timothy_horton@apple.com> |
| |
| REGRESSION (r169805): WKWebView canGoBack returning YES when nothing is in the back-forward list after restoring session state |
| https://bugs.webkit.org/show_bug.cgi?id=163573 |
| <rdar://problem/28744549> |
| |
| Reviewed by Dan Bernstein. |
| |
| * UIProcess/WebPageProxy.cpp: |
| (WebKit::WebPageProxy::restoreFromSessionState): |
| Update PageLoadState's canGoBack/canGoForward bits when restoring from |
| session state, because in the don't-navigate case, nothing else will make this happen, |
| and it will remain stale. |
| |
| 2016-10-17 Andy Estes <aestes@apple.com> |
| |
| Crash in ASCIICaseInsensitiveHash::hash() when a response has a null MIME type |
| https://bugs.webkit.org/show_bug.cgi?id=163476 |
| <rdar://problem/26941395> |
| |
| Reviewed by Tim Horton. |
| |
| When custom content providers are registered and a response has a null MIME type, WebPage |
| will pass a null String to HashSet::contains(). This results in a null pointer dereference, |
| since the String hash functions do not support null Strings and unconditionally dereference |
| their StringImpls. Fixed by checking that Strings are non-null before calling |
| HashSet::contains() on m_mimeTypesWithCustomContentProviders. |
| |
| Rearranging WebPage::shouldUseCustomContentProviderForResponse() to call |
| canPluginHandleResponse() before checking m_mimeTypesWithCustomContentProviders uncovered a |
| crash in existing layout tests where WebPage::m_mainFrame can be NULL during WebPage |
| construction (m_mainFrame isn't yet initialized). Fixed this by passing the main Frame to |
| canPluginHandleResponseInFrame() instead of relying on m_mainFrame. |
| |
| New API test: WebKit2.LoadDataWithNilMIMEType. |
| |
| * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp: |
| (WebKit::WebFrameLoaderClient::transitionToCommittedFromCachedFrame): Passed |
| m_frame->coreFrame() to shouldUseCustomContentProviderForResponse(). |
| (WebKit::WebFrameLoaderClient::transitionToCommittedForNewPage): Ditto. |
| * WebProcess/WebPage/WebPage.cpp: |
| (WebKit::WebPage::canPluginHandleResponse): Added a mainFrame parameter and used it instead |
| of m_mainFrame->coreFrame(). |
| (WebKit::WebPage::shouldUseCustomContentProviderForResponse): Passed mainFrame to |
| canPluginHandleResponse(), and checked if mimeType is null before calling |
| m_mimeTypesWithCustomContentProviders.contains(). |
| (WebKit::WebPage::canShowMIMEType): Checked if MIMEType is null before calling |
| m_mimeTypesWithCustomContentProviders.contains(). |
| * WebProcess/WebPage/WebPage.h: Made canPluginHandleResponse() a private declaration. |
| |
| 2016-10-17 Chris Dumez <cdumez@apple.com> |
| |
| [WK2][NetworkCache] PendingFrameLoad objects are sometimes leaked |
| https://bugs.webkit.org/show_bug.cgi?id=163569 |
| <rdar://problem/28810836> |
| |
| Reviewed by Antti Koivisto. |
| |
| PendingFrameLoad objects are created to track frame loads and added to |
| the m_pendingFrameLoads hash map. These objects are supposed to remove |
| themselves from the hash map once they detect that the page load has |
| finished by calling PendingFrameLoad::m_loadCompletionHandler(). |
| |
| PendingFrameLoad::m_loadCompletionHandler() is called from |
| markLoadAsCompleted() when we detect that the page load has finished |
| via the m_loadHysteresisActivity HysteresisActivity. We call impulse() |
| on the HysteresisActivity every time a subresource is loaded in the |
| frame. The issue is that if no subresource is ever loaded, then we |
| never call impulse() on the HysteresisActivity, which is therefore |
| never started. If it nevers starts, then it nevers stops and never |
| calls markLoadAsCompleted(). To address the problem, we now call |
| impulse() on the HysteresisActivity as soon as we construct it. |
| |
| * NetworkProcess/cache/NetworkCacheSpeculativeLoadManager.cpp: |
| |
| 2016-10-17 Jeremy Jones <jeremyj@apple.com> |
| |
| Enable keyboard in fullscreen. |
| https://bugs.webkit.org/show_bug.cgi?id=163146 |
| |
| Reviewed by Jer Noble. |
| |
| Allow keyboard in fullscreen. |
| |
| * UIProcess/WebFullScreenManagerProxy.cpp: |
| (WebKit::WebFullScreenManagerProxy::supportsFullScreen): |
| |
| 2016-10-17 Chris Dumez <cdumez@apple.com> |
| |
| Move form.reportValidity() behind InteractiveFormValidation setting |
| https://bugs.webkit.org/show_bug.cgi?id=163550 |
| |
| Reviewed by Darin Adler. |
| |
| Enable InteractiveFormValidation setting by default and link it to |
| RuntimeEnabledFeatures so we can use it in the IDL. |
| |
| * UIProcess/API/C/WKPreferencesRefPrivate.h: |
| * WebProcess/WebPage/WebPage.cpp: |
| (WebKit::WebPage::updatePreferences): |
| |
| 2016-10-17 Gavin Barraclough <barraclough@apple.com> |
| |
| UIProcess should determine throttle state for WebContent process |
| https://bugs.webkit.org/show_bug.cgi?id=163556 |
| |
| Reviewed by Anders Carlsson. |
| |
| This is a step towards merging page/process throttling code for mac & iOS. |
| |
| Previously WebPage determined whether to start a UserActivity based on page activity, |
| visibility and the preference to disable. Now WebPage passes the activity state across |
| to WebPageProxy, which makes the decision & explicitly instructs WebPage to start/stop |
| the UserActivity. |
| |
| * UIProcess/WebPageProxy.cpp: |
| (WebKit::WebPageProxy::WebPageProxy): |
| - updateActivityToken + updateProccessSuppressionState -> updateThrottleState |
| (WebKit::WebPageProxy::reattachToWebProcess): |
| - updateActivityToken -> updateThrottleState |
| (WebKit::WebPageProxy::dispatchViewStateChange): |
| - updateActivityToken -> updateThrottleState |
| (WebKit::WebPageProxy::setPageActivityState): |
| - Record activity state passed from WebPage, and update. |
| (WebKit::WebPageProxy::preferencesDidChange): |
| - updateProccessSuppressionState -> updateThrottleState |
| (WebKit::WebPageProxy::updateActivityToken): Deleted. |
| (WebKit::WebPageProxy::updateProccessSuppressionState): Deleted. |
| (WebKit::WebPageProxy::updateThrottleState): |
| - Merged existing updateActivityToken/updateProccessSuppressionState to unified updateThrottleState. |
| - Compute whether page should be suppressed, and send SetPageSuppressed message accordingly. |
| * UIProcess/WebPageProxy.h: |
| - Merged existing updateActivityToken/updateProccessSuppressionState to unified updateThrottleState. |
| - Added setPageActivityState/m_activityState to report/record page activity. |
| - Added m_pageSuppressed to prevent redundant message sends. |
| * UIProcess/WebPageProxy.messages.in: |
| - Expose SetPageActivityState message (called by WebPage). |
| * WebProcess/WebPage/WebPage.cpp: |
| (WebKit::WebPage::WebPage): |
| - removed m_processSuppressionEnabled |
| - updateUserActivity -> setPageSuppressed - explicitly set the page to not be suppressed, until WebPageProxy tells us to do so. |
| (WebKit::WebPage::setPageActivityState): |
| - post activity state on to WebPageProxy. |
| (WebKit::WebPage::setPageSuppressed): |
| - Start/stop USerActivity accordingly. |
| (WebKit::WebPage::setViewState): |
| - No longer need to monitor ViewState changes on the WebProcess side. |
| (WebKit::WebPage::updatePreferences): |
| - No longer need to monitor preference changes on the WebProcess side. |
| (WebKit::WebPage::updateUserActivity): Deleted. |
| - Only updated on reciept of setPageSuppressed message. |
| * WebProcess/WebPage/WebPage.h: |
| - Removed m_activityState, m_processSuppressionEnabled, updateUserActivity. |
| - Added setPageSuppressed message. |
| * WebProcess/WebPage/WebPage.messages.in: |
| - Added SetPageSuppressed message. |
| |
| 2016-10-17 Michael Catanzaro <mcatanzaro@igalia.com> |
| |
| REGRESSION(r206189): logs error statements when API::URLRequest is canceled |
| https://bugs.webkit.org/show_bug.cgi?id=163393 |
| |
| Reviewed by Antti Koivisto. |
| |
| Print this case at normal logging level, not as an error. |
| |
| * WebProcess/Network/WebLoaderStrategy.cpp: |
| (WebKit::WebLoaderStrategy::loadResource): |
| |
| 2016-10-17 Chris Dumez <cdumez@apple.com> |
| |
| [iOS] Hook up WebPlatformTouchPoint's radiusX / radiusY to _UIWebTouchPoint.majorRadiusInScreenCoordinates |
| https://bugs.webkit.org/show_bug.cgi?id=163547 |
| |
| Reviewed by Darin Adler. |
| |
| Hook up WebPlatformTouchPoint's radiusX / radiusY to _UIWebTouchPoint.majorRadiusInScreenCoordinates |
| now that it is available in UIKit. |
| |
| * Platform/spi/ios/UIKitSPI.h: |
| * Shared/ios/NativeWebTouchEventIOS.mm: |
| (WebKit::NativeWebTouchEvent::extractWebTouchPoint): |
| |
| 2016-10-17 Konstantin Tokarev <annulen@yandex.ru> |
| |
| Eleminate code duplication between ResourceRequest encoding/decoding implementations |
| https://bugs.webkit.org/show_bug.cgi?id=163507 |
| |
| Reviewed by Carlos Garcia Campos. |
| |
| ResourceRequestBase::encodeWithoutPlatformData() and Soup implementation of |
| ArgumentCoder<ResourceRequest>::encodePlatformData() share most of the code, |
| ditto for decoding implementations. |
| |
| * Shared/soup/WebCoreArgumentCodersSoup.cpp: |
| (IPC::ArgumentCoder<ResourceRequest>::encodePlatformData): |
| (IPC::ArgumentCoder<ResourceRequest>::decodePlatformData): |
| |
| 2016-10-17 Michael Catanzaro <mcatanzaro@igalia.com> |
| |
| Move user agent quirks to cross-platform location |
| https://bugs.webkit.org/show_bug.cgi?id=163508 |
| |
| Reviewed by Carlos Garcia Campos. |
| |
| #include <WebCore/UserAgent.h> instead of <WebCore/UserAgentGtk.h>. |
| |
| * UIProcess/API/gtk/WebKitSettings.cpp: |
| * UIProcess/efl/WebPageProxyEfl.cpp: |
| * UIProcess/gtk/WebPageProxyGtk.cpp: |
| * WebProcess/WebPage/gtk/WebPageGtk.cpp: |
| |
| 2016-10-17 Carlos Garcia Campos <cgarcia@igalia.com> |
| |
| [SOUP] Downloads should always sniff contents |
| https://bugs.webkit.org/show_bug.cgi?id=163538 |
| |
| Reviewed by Michael Catanzaro. |
| |
| It's quite common that downloads have weird filenames with no extension, so it would be better if the loader |
| sniff the contents to guess the mime type. |
| |
| * NetworkProcess/Downloads/soup/DownloadSoup.cpp: |
| (WebKit::Download::startNetworkLoad): Pass true for shouldContentSniff parameter of ResourceHandle::create(). |
| |
| 2016-10-17 Carlos Garcia Campos <cgarcia@igalia.com> |
| |
| [GTK] Switch to use API::DownloadClient instead of the C API client |
| https://bugs.webkit.org/show_bug.cgi?id=163537 |
| |
| Reviewed by Michael Catanzaro. |
| |
| The code is simpler and we avoid all the toImpl/toAPI. |
| |
| * UIProcess/API/gtk/WebKitDownloadClient.cpp: |
| (attachDownloadClientToContext): |
| (didStart): |
| (didReceiveResponse): |
| (didReceiveData): |
| (decideDestinationWithSuggestedFilename): |
| (didCreateDestination): |
| (didFail): |
| (didCancel): |
| (didFinish): |
| |
| 2016-10-17 Manuel Rego Casasnovas <rego@igalia.com> |
| |
| [css-grid] Disable CSS Grid Layout runtime flag by default |
| https://bugs.webkit.org/show_bug.cgi?id=163432 |
| |
| Reviewed by Darin Adler. |
| |
| It was enabled in r201042, but now Safari Technology Preview |
| has a UI to switch runtime flags so it doesn't need to be enabled |
| by default anymore. |
| |
| * Shared/WebPreferencesDefinitions.h: Disable grid layout runtime flag |
| by default. |
| |
| 2016-10-16 Darin Adler <darin@apple.com> |
| |
| Move CSS classes from ExceptionCode to Exception |
| https://bugs.webkit.org/show_bug.cgi?id=163494 |
| |
| Reviewed by Sam Weinig. |
| |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSRule.cpp: |
| (webkit_dom_css_rule_set_css_text): Updated for ExceptionOr. |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSStyleDeclaration.cpp: |
| (webkit_dom_css_style_declaration_remove_property): Ditto. |
| (webkit_dom_css_style_declaration_set_property): Ditto. |
| (webkit_dom_css_style_declaration_set_css_text): Ditto. |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSStyleSheet.cpp: |
| (webkit_dom_css_style_sheet_insert_rule): Ditto. |
| (webkit_dom_css_style_sheet_delete_rule): Ditto. |
| (webkit_dom_css_style_sheet_add_rule): Ditto. |
| (webkit_dom_css_style_sheet_remove_rule): Ditto. |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSValue.cpp: |
| (webkit_dom_css_value_set_css_text): Ditto. |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaList.cpp: |
| (webkit_dom_media_list_delete_medium): Ditto. |
| (webkit_dom_media_list_append_medium): Ditto. |
| (webkit_dom_media_list_set_media_text): Ditto. |
| |
| 2016-10-16 Carlos Garcia Campos <cgarcia@igalia.com> |
| |
| [GTK] Default WebKitWebsiteDataManager is always leaked in WebKitWebContext |
| https://bugs.webkit.org/show_bug.cgi?id=163443 |
| |
| Reviewed by Michael Catanzaro. |
| |
| Adopt the reference returned by webkitWebsiteDataManagerCreate(). |
| |
| * UIProcess/API/gtk/WebKitWebContext.cpp: |
| (webkitWebContextConstructed): |
| |
| 2016-10-16 Carlos Garcia Campos <cgarcia@igalia.com> |
| |
| [GTK] WebKitWebPage URI not updated after URI is modified by InjectedBundlePageResourceLoadClient::willSendRequestForFrame |
| https://bugs.webkit.org/show_bug.cgi?id=163389 |
| |
| Reviewed by Michael Catanzaro. |
| |
| Update the page URI also when the load is committed. |
| |
| * WebProcess/InjectedBundle/API/gtk/WebKitWebPage.cpp: |
| (getDocumentLoaderURL): |
| (didStartProvisionalLoadForFrame): |
| (didReceiveServerRedirectForProvisionalLoadForFrame): |
| (didCommitLoadForFrame): |
| (webkitWebPageCreate): |
| (getProvisionalURLForFrame): Deleted. |
| |
| 2016-10-15 Simon Fraser <simon.fraser@apple.com> |
| |
| Sort the project file. |
| |
| * WebKit2.xcodeproj/project.pbxproj: |
| |
| 2016-10-14 Anders Carlsson <andersca@apple.com> |
| |
| Fix Mac build. |
| |
| * UIProcess/ApplePay/mac/WebPaymentCoordinatorProxyMac.mm: |
| (WebKit::WebPaymentCoordinatorProxy::platformShowPaymentUI): |
| |
| 2016-10-14 Anders Carlsson <andersca@apple.com> |
| |
| Pass on networking settings to the PKPaymentRequest |
| https://bugs.webkit.org/show_bug.cgi?id=163462 |
| rdar://problem/28567629 |
| |
| Reviewed by Dan Bernstein. |
| |
| * UIProcess/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.h: |
| * UIProcess/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm: |
| (WebKit::toPKPaymentRequest): |
| * UIProcess/ApplePay/ios/WebPaymentCoordinatorProxyIOS.mm: |
| (WebKit::WebPaymentCoordinatorProxy::platformShowPaymentUI): |
| |
| 2016-10-14 Anders Carlsson <andersca@apple.com> |
| |
| Clean up BackForwardClient |
| https://bugs.webkit.org/show_bug.cgi?id=163454 |
| |
| Reviewed by Sam Weinig. |
| |
| Remove empty iOS only stubs. |
| |
| * WebKit2.xcodeproj/project.pbxproj: |
| * WebProcess/WebPage/WebBackForwardListProxy.h: |
| * WebProcess/WebPage/ios/WebBackForwardListProxyIOS.mm: Removed. |
| |
| 2016-10-14 Brady Eidson <beidson@apple.com> |
| |
| Enable Gamepads by default in WK2. |
| https://bugs.webkit.org/show_bug.cgi?id=163447 |
| |
| Rubberstamped by Sam Weinig. |
| |
| * Shared/WebPreferencesDefinitions.h: |
| |
| 2016-10-14 Gavin Barraclough <barraclough@apple.com> |
| |
| Add API to restrict WebKit processes to background priority |
| https://bugs.webkit.org/show_bug.cgi?id=163363 |
| |
| Reviewed by Anders Carlson. |
| |
| Add API on _WKProcessPoolConfiguration to flag a process pool as 'alwaysRunsAtBackgroundPriority'. |
| WebContent and Networking processes associated with that pool will only run a background priority, |
| when they otherwise would have run at foreground priority. |
| |
| * UIProcess/API/APIProcessPoolConfiguration.h: |
| - Add m_alwaysRunsAtBackgroundPriority flag to pool configuration object. |
| * UIProcess/API/Cocoa/_WKProcessPoolConfiguration.h: |
| * UIProcess/API/Cocoa/_WKProcessPoolConfiguration.mm: |
| (-[_WKProcessPoolConfiguration alwaysRunsAtBackgroundPriority]): |
| (-[_WKProcessPoolConfiguration setAlwaysRunsAtBackgroundPriority:]): |
| - Expose new configuration property through API. |
| * UIProcess/Network/NetworkProcessProxy.cpp: |
| (WebKit::NetworkProcessProxy::alwaysRunsAtBackgroundPriority): |
| * UIProcess/Network/NetworkProcessProxy.h: |
| - Support ProcessThrottlerClient interface to check if alwaysRunsAtBackgroundPriority is set. |
| * UIProcess/ProcessThrottler.cpp: |
| (WebKit::ProcessThrottler::assertionState): |
| - When determining whether to take a foreground exception check alwaysRunsAtBackgroundPriority. |
| * UIProcess/ProcessThrottlerClient.h: |
| - Add interface to access alwaysRunsAtBackgroundPriority state of WebProcess of NetworkProcess. |
| * UIProcess/WebProcessPool.cpp: |
| (WebKit::WebProcessPool::WebProcessPool): |
| * UIProcess/WebProcessPool.h: |
| - Add m_alwaysRunsAtBackgroundPriority, set by configuration. |
| * UIProcess/WebProcessProxy.cpp: |
| (WebKit::WebProcessProxy::alwaysRunsAtBackgroundPriority): |
| * UIProcess/WebProcessProxy.h: |
| - Support ProcessThrottlerClient interface to check if alwaysRunsAtBackgroundPriority is set. |
| |
| 2016-10-14 Youenn Fablet <youenn@apple.com> |
| |
| Make NetworkCache aware of fetch cache mode |
| https://bugs.webkit.org/show_bug.cgi?id=163332 |
| |
| Reviewed by Antti Koivisto. |
| |
| Adding explicit serialization of ResourceRequest cachePolicy since it does no longer map to platform request cache policy. |
| |
| Added support for: |
| - Bypassing entirely the network cache in case cache mode is NoStore. |
| - requiring revalidation in case of cache hit and cache mode is NoCache. |
| - Not using any entry if cache mode is Reload (but cache can still be updated) |
| |
| Also made sure that the ResourceRequest::cachePolicy remains the same throughout redirections. |
| |
| * NetworkProcess/NetworkResourceLoader.cpp: |
| (WebKit::NetworkResourceLoader::canUseCache): |
| (WebKit::NetworkResourceLoader::retrieveCacheEntry): |
| (WebKit::NetworkResourceLoader::continueWillSendRequest): |
| * NetworkProcess/cache/NetworkCache.cpp: |
| (WebKit::NetworkCache::cachePolicyAllowsExpired): |
| (WebKit::NetworkCache::makeRetrieveDecision): |
| * Shared/mac/WebCoreArgumentCodersMac.mm: |
| (IPC::ArgumentCoder<ResourceRequest>::encodePlatformData): |
| (IPC::ArgumentCoder<ResourceRequest>::decodePlatformData): |
| |
| 2016-10-13 Tim Horton <timothy_horton@apple.com> |
| |
| Rename the SPI added in r207292 due to post-landing review comments |
| https://bugs.webkit.org/show_bug.cgi?id=163364 |
| <rdar://problem/28012494> |
| |
| Reviewed by Simon Fraser. |
| |
| * UIProcess/API/APIPageConfiguration.h: |
| (API::PageConfiguration::waitsForPaintAfterViewDidMoveToWindow): |
| (API::PageConfiguration::setWaitsForPaintAfterViewDidMoveToWindow): |
| (API::PageConfiguration::shouldWaitForPaintAfterViewDidMoveToWindow): Deleted. |
| (API::PageConfiguration::setShouldWaitForPaintAfterViewDidMoveToWindow): Deleted. |
| * UIProcess/API/Cocoa/WKWebView.mm: |
| (-[WKWebView _initializeWithConfiguration:]): |
| * UIProcess/API/Cocoa/WKWebViewConfiguration.mm: |
| (-[WKWebViewConfiguration init]): |
| (-[WKWebViewConfiguration copyWithZone:]): |
| (-[WKWebViewConfiguration _waitsForPaintAfterViewDidMoveToWindow]): |
| (-[WKWebViewConfiguration _setWaitsForPaintAfterViewDidMoveToWindow:]): |
| (-[WKWebViewConfiguration _shouldWaitForPaintAfterViewDidMoveToWindow]): Deleted. |
| (-[WKWebViewConfiguration _setShouldWaitForPaintAfterViewDidMoveToWindow:]): Deleted. |
| * UIProcess/API/Cocoa/WKWebViewConfigurationPrivate.h: |
| * UIProcess/WebPageProxy.cpp: |
| (WebKit::WebPageProxy::WebPageProxy): |
| (WebKit::WebPageProxy::dispatchViewStateChange): |
| * UIProcess/WebPageProxy.h: |
| |
| 2016-10-13 Jonathan Bedard <jbedard@apple.com> |
| |
| GTK and EFL on Mac fail to compile WebTextChecker due to missing definition of WKTextCheckerClientBase |
| https://bugs.webkit.org/show_bug.cgi?id=163346 |
| |
| Reviewed by Daniel Bates. |
| |
| * UIProcess/API/C/WKTextChecker.cpp: Fixed #ifdefs for GTK and EFL builds on Darwin machines. |
| * UIProcess/API/C/WKTextChecker.h: Ditto. |
| |
| 2016-10-13 Tim Horton <timothy_horton@apple.com> |
| |
| Expose SPI to disable synchronously blocking on painting after parenting a WKWebView |
| https://bugs.webkit.org/show_bug.cgi?id=163364 |
| <rdar://problem/28012494> |
| |
| Reviewed by Geoff Garen. |
| |
| Some clients may not want the default WKWebView behavior where we synchronously |
| block on the Web process after the first time a WKWebView is re-added to the window, |
| because they are e.g. parenting re-used WKWebViews while scrolling. |
| |
| * UIProcess/API/APIPageConfiguration.h: |
| (API::PageConfiguration::shouldSynchronizeInitialPaintAfterMovingToWindow): |
| (API::PageConfiguration::setShouldSynchronizeInitialPaintAfterMovingToWindow): |
| * UIProcess/API/Cocoa/WKWebView.mm: |
| (-[WKWebView _initializeWithConfiguration:]): |
| * UIProcess/API/Cocoa/WKWebViewConfiguration.mm: |
| (-[WKWebViewConfiguration init]): |
| (-[WKWebViewConfiguration copyWithZone:]): |
| (-[WKWebViewConfiguration _shouldSynchronizeInitialPaintAfterMovingToWindow]): |
| (-[WKWebViewConfiguration _setShouldSynchronizeInitialPaintAfterMovingToWindow:]): |
| * UIProcess/API/Cocoa/WKWebViewConfigurationPrivate.h: |
| * UIProcess/WebPageProxy.h: |
| * UIProcess/WebPageProxy.cpp: |
| (WebKit::WebPageProxy::WebPageProxy): |
| Add and plumb a new WKWebView configuration parameter. |
| |
| (WebKit::WebPageProxy::dispatchViewStateChange): |
| If the new configuration parameter is set, don't block the main thread when |
| a view is reparented. |
| |
| 2016-10-12 Chris Dumez <cdumez@apple.com> |
| |
| [Web IDL] Drop support for legacy [ConstructorConditional=*] |
| https://bugs.webkit.org/show_bug.cgi?id=163368 |
| |
| Reviewed by Ryosuke Niwa. |
| |
| Drop ENABLE_DOM4_EVENTS_CONSTRUCTOR compiler flag. |
| |
| * Configurations/FeatureDefines.xcconfig: |
| |
| 2016-10-12 Alex Christensen <achristensen@webkit.org> |
| |
| Fix assertion after switching to URLParser |
| https://bugs.webkit.org/show_bug.cgi?id=163350 |
| rdar://problem/28739938 |
| |
| Reviewed by Brady Eidson. |
| |
| Covered by a new API test. |
| |
| * UIProcess/API/Cocoa/_WKUserStyleSheet.mm: |
| (-[_WKUserStyleSheet initWithSource:forMainFrameOnly:legacyWhitelist:legacyBlacklist:baseURL:userContentWorld:]): |
| The { } here is not understood by the compiler to mean WebCore::URL(), but rather the empty constructor for the enum ParsedURLStringTag. |
| We used to be unsafely trusting that the URL was valid and canonicalized, but with URLParser we are canonicalizing it, |
| and the assertion (url == m_string) in URL.cpp was failing. |
| |
| 2016-10-12 Anders Carlsson <andersca@apple.com> |
| |
| Remove an unused function |
| https://bugs.webkit.org/show_bug.cgi?id=163341 |
| |
| Reviewed by Dan Bernstein. |
| |
| * WebProcess/WebPage/WebBackForwardListProxy.cpp: |
| (WebKit::WebBackForwardListProxy::isActive): Deleted. |
| * WebProcess/WebPage/WebBackForwardListProxy.h: |
| |
| 2016-10-11 Gyuyoung Kim <gyuyoung.kim@navercorp.com> |
| |
| [EFL] Update API tests which are passed or failed |
| https://bugs.webkit.org/show_bug.cgi?id=163322 |
| |
| Unreviewed, simple on/off API test. |
| |
| *ewk_favicon_database_clear* has been crashed for a long time, however |
| *ewk_cookie_manager_permanent_storage* is fine now. So the passing test |
| is enabled again, and disable the failure tests. |
| |
| * UIProcess/API/efl/tests/test_ewk2_cookie_manager.cpp: |
| (TEST_F): |
| * UIProcess/API/efl/tests/test_ewk2_favicon_database.cpp: |
| (TEST_F): |
| |
| 2016-10-11 Daniel Bates <dabates@apple.com> |
| |
| Attempt to fix the Apple Internal Mac build following r207159 |
| (https://bugs.webkit.org/show_bug.cgi?id=163244) |
| |
| * UIProcess/API/Cocoa/WKWebView.mm: |
| (shouldRequireUserGestureToLoadVideo): |
| |
| 2016-10-11 Anders Carlsson <andersca@apple.com> |
| |
| Clean up WebPageGroup somewhat |
| https://bugs.webkit.org/show_bug.cgi?id=163299 |
| |
| Reviewed by Tim Horton. |
| |
| * Shared/API/c/WKDeprecatedFunctions.cpp: |
| (WKPageGroupCopyIdentifier): |
| Move this here from WKPageGroup. |
| |
| (WKPageGroupAddUserContentFilter): |
| (WKPageGroupRemoveUserContentFilter): |
| (WKPageGroupRemoveAllUserContentFilters): |
| Just call directly into the user content controller. |
| |
| * UIProcess/API/C/WKPageGroup.cpp: |
| (WKPageGroupAddUserStyleSheet): |
| (WKPageGroupRemoveAllUserStyleSheets): |
| (WKPageGroupAddUserScript): |
| (WKPageGroupRemoveAllUserScripts): |
| Just call directly into the user content controller. |
| |
| * UIProcess/API/C/WKPageGroup.h: |
| * UIProcess/WebPageGroup.cpp: |
| (WebKit::WebPageGroup::addUserStyleSheet): Deleted. |
| (WebKit::WebPageGroup::addUserScript): Deleted. |
| (WebKit::WebPageGroup::removeAllUserStyleSheets): Deleted. |
| (WebKit::WebPageGroup::removeAllUserScripts): Deleted. |
| (WebKit::WebPageGroup::removeAllUserContent): Deleted. |
| (WebKit::WebPageGroup::addUserContentExtension): Deleted. |
| (WebKit::WebPageGroup::removeUserContentExtension): Deleted. |
| (WebKit::WebPageGroup::removeAllUserContentExtensions): Deleted. |
| Get rid of these, all their callers just call into the user content controller now. |
| |
| * UIProcess/WebPageGroup.h: |
| (WebKit::WebPageGroup::identifier): Deleted. |
| (WebKit::WebPageGroup::sendToAllProcessesInGroup): Deleted. |
| Remove unused code. |
| |
| 2016-10-11 Daniel Bates <dabates@apple.com> |
| |
| [iOS] REGRESSION (r197953): User gesture required to load video in iOS 9-built apps |
| https://bugs.webkit.org/show_bug.cgi?id=163244 |
| <rdar://problem/27250015> |
| |
| Reviewed by Jer Noble. |
| |
| Enable or disable the Setting::requiresUserGestureToLoadVideo() in WebKit depending on the |
| version of iOS SDK that the app was linked against. We require a user gesture to begin |
| loading a video as of iOS 10. |
| |
| * Shared/WebPreferencesDefinitions.h: |
| * UIProcess/API/Cocoa/WKWebView.mm: |
| (shouldRequireUserGestureToLoadVideo): Added. |
| (-[WKWebView _initializeWithConfiguration:]): Set the requiresUserGestureToLoadVideo preference. |
| * WebProcess/WebPage/WebPage.cpp: |
| (WebKit::WebPage::updatePreferences): Modified to pass the WebKit requiresUserGestureToLoadVideo |
| preference to WebCore. |
| |
| 2016-10-11 Alex Christensen <achristensen@webkit.org> |
| |
| Remove dead networking code |
| https://bugs.webkit.org/show_bug.cgi?id=163263 |
| |
| Reviewed by Daniel Bates. |
| |
| * NetworkProcess/Downloads/Download.h: |
| * NetworkProcess/Downloads/ios/DownloadIOS.mm: Removed. |
| * NetworkProcess/Downloads/mac/DownloadMac.mm: |
| * NetworkProcess/NetworkLoad.h: |
| * NetworkProcess/mac/NetworkLoadMac.mm: |
| (WebKit::NetworkLoad::willCacheResponseAsync): Deleted. |
| * Shared/Authentication/cocoa/AuthenticationManagerCocoa.mm: |
| (WebKit::AuthenticationManager::receivedCredential): |
| (WebKit::AuthenticationManager::receivedRequestToContinueWithoutCredential): |
| (WebKit::AuthenticationManager::receivedCancellation): |
| (WebKit::AuthenticationManager::receivedRequestToPerformDefaultHandling): |
| (WebKit::AuthenticationManager::receivedChallengeRejection): |
| * Shared/WebProcessCreationParameters.cpp: |
| (WebKit::WebProcessCreationParameters::encode): |
| (WebKit::WebProcessCreationParameters::decode): |
| * Shared/WebProcessCreationParameters.h: |
| * Shared/mac/WebCoreArgumentCodersMac.mm: |
| (IPC::ArgumentCoder<ResourceRequest>::encodePlatformData): |
| (IPC::ArgumentCoder<ResourceRequest>::decodePlatformData): |
| * WebKit2.xcodeproj/project.pbxproj: |
| |
| 2016-10-11 Anders Carlsson <andersca@apple.com> |
| |
| Move no longer used functions to WKDeprecatedFunctions.cpp |
| https://bugs.webkit.org/show_bug.cgi?id=163290 |
| |
| Reviewed by Dan Bernstein. |
| |
| * Shared/API/c/WKDeprecatedFunctions.cpp: |
| (WKPageGroupAddUserContentFilter): |
| (WKPageGroupRemoveUserContentFilter): |
| (WKPageGroupRemoveAllUserContentFilters): |
| (WKContextSetProcessModel): Deleted. |
| * UIProcess/API/C/WKPageGroup.cpp: |
| (WKPageGroupRemoveAllUserScripts): |
| (WKPageGroupAddUserContentFilter): Deleted. |
| (WKPageGroupRemoveUserContentFilter): Deleted. |
| (WKPageGroupRemoveAllUserContentFilters): Deleted. |
| * UIProcess/API/C/WKPageGroup.h: |
| |
| 2016-10-11 Konstantin Tokarev <annulen@yandex.ru> |
| |
| Use modern for loops for iterating supplement maps |
| https://bugs.webkit.org/show_bug.cgi?id=163274 |
| |
| Reviewed by Alex Christensen. |
| |
| * NetworkProcess/NetworkProcess.cpp: |
| (WebKit::NetworkProcess::initializeNetworkProcess): |
| (WebKit::NetworkProcess::initializeConnection): |
| * UIProcess/WebProcessPool.cpp: |
| (WebKit::WebProcessPool::~WebProcessPool): |
| (WebKit::WebProcessPool::networkProcessCrashed): |
| (WebKit::WebProcessPool::databaseProcessCrashed): Iterate by values() |
| like in other places. |
| |
| 2016-10-11 Wenson Hsieh <wenson_hsieh@apple.com> |
| |
| The "Input Events" experimental feature runtime flag should not be on by default |
| https://bugs.webkit.org/show_bug.cgi?id=163278 |
| |
| Reviewed by Zalan Bujtas. |
| |
| This was intended to be off by default. |
| |
| * Shared/WebPreferencesDefinitions.h: |
| |
| 2016-10-10 Zan Dobersek <zdobersek@igalia.com> |
| |
| Add ENABLE_ENCRYPTED_MEDIA configuration option |
| https://bugs.webkit.org/show_bug.cgi?id=163219 |
| |
| Reviewed by Darin Adler. |
| |
| * Configurations/FeatureDefines.xcconfig: |
| Add the ENABLE_ENCRYPTED_MEDIA configuration option. It will be used |
| to enable or disable the new EME implementation at build-time. |
| |
| 2016-10-10 Carlos Garcia Campos <cgarcia@igalia.com> |
| |
| NetworkSession: NetworkDataTask is leaked if download finishes in didReceiveResponse completion handler |
| https://bugs.webkit.org/show_bug.cgi?id=163204 |
| |
| Reviewed by Alex Christensen. |
| |
| After the completion handler a reference of the NetworkDataTask is saved in m_downloadsAfterDestinationDecided. |
| If the download failed or was canceled DownloadManager::dataTaskBecameDownloadTask is never called and the data |
| task is kept in the download manager forever. This patch exposes NSURLSessionTask state property in |
| NetworkDataTask, so that the download manager can check the task state after the completion handler and return |
| early if the download finished or was cancelled. |
| |
| * NetworkProcess/Downloads/DownloadManager.cpp: |
| (WebKit::DownloadManager::continueDecidePendingDownloadDestination): |
| * NetworkProcess/NetworkDataTask.h: |
| * NetworkProcess/cocoa/NetworkDataTaskCocoa.mm: |
| (WebKit::NetworkDataTask::state): |
| |
| 2016-10-10 Konstantin Tokarev <annulen@yandex.ru> |
| |
| Added final specifier to WebInspectorServer and to its overridden methods |
| https://bugs.webkit.org/show_bug.cgi?id=163228 |
| |
| Reviewed by Darin Adler. |
| |
| * UIProcess/InspectorServer/WebInspectorServer.h: |
| |
| 2016-10-10 Carlos Garcia Campos <cgarcia@igalia.com> |
| |
| [GTK] 2.14.0 Compile Errors: GTK 3.22.1 |
| https://bugs.webkit.org/show_bug.cgi?id=163190 |
| |
| Reviewed by Alex Christensen. |
| |
| * UIProcess/gtk/AcceleratedBackingStoreX11.cpp: Include gtk.h since we are using gtk_widget_queue_draw(). |
| |
| 2016-10-10 Gyuyoung Kim <gyuyoung.kim@navercorp.com> |
| |
| [EFL] ewk_context_preferred_languages has been failed since r206949 |
| https://bugs.webkit.org/show_bug.cgi?id=163211 |
| |
| Reviewed by Chris Dumez. |
| |
| r206949 changed to return value of navigator.language from en-us to en-US |
| in order to match other browsers and w3c spec. So ewk_context_preferred_languages |
| needs to change the expected result as well. |
| |
| * UIProcess/API/efl/tests/test_ewk2_context.cpp: |
| (TEST_F): |
| |
| 2016-10-10 Carlos Garcia Campos <cgarcia@igalia.com> |
| |
| NetworkSession: downloads started by startDownload() can fail before starting from the API point of view |
| https://bugs.webkit.org/show_bug.cgi?id=163107 |
| |
| Reviewed by Alex Christensen. |
| |
| In the network process we use a PendingDownload in this case, but in the UI process we always have a single |
| download proxy. If an error happens before the pending download is converted inot a real download, the DidFail |
| messages is received in the download proxy before the DidStart one. This is problematic at least for the GTK+ |
| API, because it's common to connect to the started signal and connect to all other signals from there, but in |
| this case the started signal is never emitted, and then the failed one is not handled. This is not a problem for |
| downloads started by convertTaskToDownload, because in that case those loads are not considered a download by |
| the UI process when those early errors happen, and then the web page handles them. |
| |
| * NetworkProcess/Downloads/PendingDownload.cpp: |
| (WebKit::PendingDownload::PendingDownload): Send DidStart message right after the network load starts like the |
| non network session code does. |
| * NetworkProcess/NetworkLoad.cpp: |
| (WebKit::NetworkLoad::convertTaskToDownload): Send DidStart message now that the normal load has been converted |
| into a download. |
| * NetworkProcess/NetworkProcess.cpp: |
| (WebKit::NetworkProcess::findPendingDownloadLocation): Do not send DidStart message here. |
| |
| 2016-10-10 Carlos Garcia Campos <cgarcia@igalia.com> |
| |
| Network Session: PendingDownload is always nullptr in DownloadManager::dataTaskBecameDownloadTask |
| https://bugs.webkit.org/show_bug.cgi?id=163006 |
| |
| Reviewed by Alex Christensen. |
| |
| In DownloadManager::dataTaskBecameDownloadTask() we are supposed to have either a pending download, or a network |
| data task depending on whether the download was started by startDownload() or convertTaskToDownload. However, in |
| both cases we do have a data task and never a pending download. In the case of startDownload() the pending |
| download is removed from m_pendingDownloads in willDecidePendingDownloadDestination(). The task is always |
| added to m_downloadsWaitingForDestination in willDecidePendingDownloadDestination() and to |
| m_downloadsAfterDestinationDecided in continueDecidePendingDownloadDestination() in both cases. |
| |
| * NetworkProcess/Downloads/DownloadManager.cpp: |
| (WebKit::DownloadManager::dataTaskBecameDownloadTask): Add an ASSERT to ensure we don't have a pending download |
| at this point and that the download is not already in the map. Remove the download from the |
| m_downloadsAfterDestinationDecided map, but don't check its result because it might not bein that map if |
| dataTaskBecameDownloadTask is called synchronously from the didReceiveResponse completion handler. |
| (WebKit::DownloadManager::willDecidePendingDownloadDestination): Do not take the pending download here, wait |
| until didReceiveResponse completion handler is called. |
| (WebKit::DownloadManager::continueDecidePendingDownloadDestination): Take the pending download here ensuring |
| it's alive while the didReceiveResponse completion handler is called. Also remove invalid early return when |
| either networkDataTask or completionHandler are nullptr because we are using both unconditionally, we should |
| return early if both are nullptr to avoid crashes. However, we are checking that the download is in the |
| m_downloadsWaitingForDestination and in that case we should always have both, so better add asserts there. If |
| the download is already in the map after the completion handler it means that dataTaskBecameDownloadTask() has |
| alrady been called, so we can just return in that case. |
| * NetworkProcess/Downloads/DownloadManager.h: |
| * NetworkProcess/cocoa/NetworkSessionCocoa.mm: |
| (-[WKNetworkSessionDelegate URLSession:dataTask:didBecomeDownloadTask:]): Protect the NetworkDataTask that can |
| be deleted by dataTaskBecameDownloadTask(). |
| |
| 2016-10-10 Tim Horton <timothy_horton@apple.com> |
| |
| Share more code between iOS and macOS ViewGestureController |
| https://bugs.webkit.org/show_bug.cgi?id=163158 |
| |
| Reviewed by Simon Fraser. |
| |
| Share canSwipeInDirection() and the (unused on Mac) alternate back-forward list mechanism. |
| Make ViewGestureController operate in terms of WebPageProxy, not WKWebView, |
| because it shouldn't know anything about WKWebView. |
| Refactor scrollEventCanBecomeSwipe a bit to be less repetitive. |
| |
| * UIProcess/API/Cocoa/WKWebView.mm: |
| (-[WKWebView setAllowsBackForwardNavigationGestures:]): |
| * UIProcess/Cocoa/ViewGestureController.cpp: |
| (WebKit::ViewGestureController::ViewGestureController): |
| (WebKit::ViewGestureController::setAlternateBackForwardListSourcePage): |
| (WebKit::ViewGestureController::canSwipeInDirection): |
| (WebKit::ViewGestureController::gestureControllerForPage): Deleted. |
| * UIProcess/Cocoa/ViewGestureController.h: |
| * UIProcess/WebPageProxy.cpp: |
| (WebKit::WebPageProxy::WebPageProxy): |
| * UIProcess/WebPageProxy.h: |
| (WebKit::WebPageProxy::createWeakPtr): |
| * UIProcess/ios/ViewGestureControllerIOS.mm: |
| (WebKit::ViewGestureController::beginSwipeGesture): |
| (WebKit::ViewGestureController::setAlternateBackForwardListSourceView): Deleted. |
| (WebKit::ViewGestureController::canSwipeInDirection): Deleted. |
| * UIProcess/mac/ViewGestureControllerMac.mm: |
| (WebKit::ViewGestureController::PendingSwipeTracker::PendingSwipeTracker): |
| (WebKit::ViewGestureController::PendingSwipeTracker::scrollEventCanBecomeSwipe): |
| (WebKit::ViewGestureController::PendingSwipeTracker::tryToStartSwipe): |
| |
| 2016-10-10 Tomas Popela <tpopela@redhat.com> |
| |
| [GTK] UIProcess crashes when using Japanese IM |
| https://bugs.webkit.org/show_bug.cgi?id=163011 |
| |
| We have to reference the current GdkEventKey before we try process it |
| as later when the lambda body is reached the event could be already |
| freed. |
| |
| Reviewed by Carlos Garcia Campos. |
| |
| * UIProcess/API/gtk/WebKitWebViewBase.cpp: |
| (webkitWebViewBaseKeyPressEvent): |
| (webkitWebViewBaseKeyReleaseEvent): |
| * UIProcess/gtk/InputMethodFilter.h: |
| Use non-copyable Function so we can use WTFMove to pass the event to |
| lambda. |
| |
| 2016-10-09 Wenson Hsieh <wenson_hsieh@apple.com> |
| |
| Support InputEvent.inputType for the new InputEvent spec |
| https://bugs.webkit.org/show_bug.cgi?id=163025 |
| <rdar://problem/28658092> |
| |
| Reviewed by Darin Adler. |
| |
| Accounts for some changes to the EditAction enum in nameForEditAction. Some former edit |
| actions, such as EditActionTyping, have been split out into its more specific subtypes, |
| so we preserve shipping behavior by treating all of the new subtypes the same way as the |
| original type. |
| |
| * UIProcess/WebEditCommandProxy.cpp: |
| (WebKit::WebEditCommandProxy::nameForEditAction): |
| |
| 2016-10-08 Emanuele Aina <emanuele.aina@collabora.com> |
| |
| [GTK] Drop redundant wl_display_flush_clients() call |
| https://bugs.webkit.org/show_bug.cgi?id=161904 |
| |
| Reviewed by Michael Catanzaro. |
| |
| The Wayland GSource::prepare() function already calls |
| wl_display_flush_clients() at every mainloop iteration, so there's no |
| need to further call it on Surface::commit(). |
| |
| * UIProcess/gtk/WaylandCompositor.cpp: |
| (WebKit::WaylandCompositor::Surface::commit): |
| * UIProcess/gtk/WaylandCompositor.h: |
| |
| 2016-10-06 Darin Adler <darin@apple.com> |
| |
| Next step on moving to modern way to return DOM exceptions |
| https://bugs.webkit.org/show_bug.cgi?id=163016 |
| |
| Reviewed by Ryosuke Niwa. |
| |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMImplementation.cpp: |
| (webkit_dom_dom_implementation_create_document_type): Updated for name change |
| from takeReturnValue to releaseReturnValue. |
| (webkit_dom_dom_implementation_create_document): Ditto. |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMSelection.cpp: |
| (webkit_dom_dom_selection_collapse_to_end): Use ExceptionOr instead of ExceptionCode. |
| (webkit_dom_dom_selection_collapse_to_start): Ditto. |
| (webkit_dom_dom_selection_extend): Ditto. |
| (webkit_dom_dom_selection_get_range_at): Ditto. |
| |
| 2016-10-08 Commit Queue <commit-queue@webkit.org> |
| |
| Unreviewed, rolling out r206950. |
| https://bugs.webkit.org/show_bug.cgi?id=163169 |
| |
| broke an API test (Requested by thorton on #webkit). |
| |
| Reverted changeset: |
| |
| "Share more code between iOS and macOS ViewGestureController" |
| https://bugs.webkit.org/show_bug.cgi?id=163158 |
| http://trac.webkit.org/changeset/206950 |
| |
| 2016-10-08 Tim Horton <timothy_horton@apple.com> |
| |
| Share more code between iOS and macOS ViewGestureController |
| https://bugs.webkit.org/show_bug.cgi?id=163158 |
| |
| Reviewed by Simon Fraser. |
| |
| Share canSwipeInDirection() and the (unused on Mac) alternate back-forward list mechanism. |
| Make ViewGestureController operate in terms of WebPageProxy, not WKWebView, |
| because it shouldn't know anything about WKWebView. |
| Refactor scrollEventCanBecomeSwipe a bit to be less repetitive. |
| |
| * UIProcess/API/Cocoa/WKWebView.mm: |
| (-[WKWebView setAllowsBackForwardNavigationGestures:]): |
| * UIProcess/Cocoa/ViewGestureController.cpp: |
| (WebKit::ViewGestureController::ViewGestureController): |
| (WebKit::ViewGestureController::setAlternateBackForwardListSourcePage): |
| (WebKit::ViewGestureController::canSwipeInDirection): |
| (WebKit::ViewGestureController::gestureControllerForPage): Deleted. |
| * UIProcess/Cocoa/ViewGestureController.h: |
| * UIProcess/WebPageProxy.cpp: |
| (WebKit::WebPageProxy::WebPageProxy): |
| * UIProcess/WebPageProxy.h: |
| (WebKit::WebPageProxy::createWeakPtr): |
| * UIProcess/ios/ViewGestureControllerIOS.mm: |
| (WebKit::ViewGestureController::beginSwipeGesture): |
| (WebKit::ViewGestureController::setAlternateBackForwardListSourceView): Deleted. |
| (WebKit::ViewGestureController::canSwipeInDirection): Deleted. |
| * UIProcess/mac/ViewGestureControllerMac.mm: |
| (WebKit::ViewGestureController::PendingSwipeTracker::PendingSwipeTracker): |
| (WebKit::ViewGestureController::PendingSwipeTracker::scrollEventCanBecomeSwipe): |
| (WebKit::ViewGestureController::PendingSwipeTracker::tryToStartSwipe): |
| |
| 2016-10-07 Anders Carlsson <andersca@apple.com> |
| |
| Get rid of API::Session and WKSessionRef |
| https://bugs.webkit.org/show_bug.cgi?id=163140 |
| |
| Reviewed by Tim Horton. |
| |
| This API is no longer used. |
| |
| * CMakeLists.txt: |
| * Shared/API/APIObject.h: |
| * Shared/API/c/WKSharedAPICast.h: |
| * UIProcess/API/APISession.cpp: Removed. |
| (API::generateID): Deleted. |
| (API::Session::defaultSession): Deleted. |
| (API::Session::Session): Deleted. |
| (API::Session::createEphemeral): Deleted. |
| (API::Session::isEphemeral): Deleted. |
| (API::Session::getID): Deleted. |
| (API::Session::~Session): Deleted. |
| * UIProcess/API/APISession.h: Removed. |
| * UIProcess/API/C/WKPage.h: |
| * UIProcess/API/C/WKSessionRef.cpp: Removed. |
| (WKSessionCreate): Deleted. |
| (WKSessionGetTypeID): Deleted. |
| (WKSessionIsEphemeral): Deleted. |
| * UIProcess/API/C/WKSessionRef.h: Removed. |
| * UIProcess/WebPageProxy.h: |
| * UIProcess/WebProcessProxy.h: |
| * WebKit2.xcodeproj/project.pbxproj: |
| |
| 2016-10-07 Tim Horton <timothy_horton@apple.com> |
| |
| Move ViewGestureController files to more accurate locations |
| https://bugs.webkit.org/show_bug.cgi?id=163141 |
| |
| Reviewed by Anders Carlsson. |
| |
| * PlatformMac.cmake: |
| * UIProcess/Cocoa/ViewGestureController.cpp: Renamed from UIProcess/ViewGestureController.cpp. |
| * UIProcess/Cocoa/ViewGestureController.h: Renamed from UIProcess/mac/ViewGestureController.h. |
| * UIProcess/Cocoa/ViewGestureController.messages.in: Renamed from UIProcess/mac/ViewGestureController.messages.in. |
| * WebKit2.xcodeproj/project.pbxproj: |
| |
| 2016-10-07 Tim Horton <timothy_horton@apple.com> |
| |
| Adopt BlockPtr in ViewGestureController |
| https://bugs.webkit.org/show_bug.cgi?id=163132 |
| |
| Reviewed by Anders Carlsson. |
| |
| * UIProcess/Cocoa/WebViewImpl.h: |
| * UIProcess/Cocoa/WebViewImpl.mm: |
| (WebKit::WebViewImpl::setDidMoveSwipeSnapshotCallback): |
| * UIProcess/ViewGestureController.cpp: |
| (WebKit::ViewGestureController::SnapshotRemovalTracker::stopWaitingForEvent): |
| * UIProcess/mac/ViewGestureController.h: |
| (WebKit::ViewGestureController::setDidMoveSwipeSnapshotCallback): |
| (WebKit::ViewGestureController::m_didMoveSwipeSnapshotCallback): Deleted. |
| * UIProcess/mac/ViewGestureControllerMac.mm: |
| (WebKit::ViewGestureController::platformTeardown): |
| (WebKit::ViewGestureController::setDidMoveSwipeSnapshotCallback): Deleted. |
| |
| 2016-10-07 Anders Carlsson <andersca@apple.com> |
| |
| Get rid of WKPageSetSession |
| https://bugs.webkit.org/show_bug.cgi?id=163129 |
| |
| Reviewed by Tim Horton. |
| |
| This function is no longer used. |
| |
| * UIProcess/API/C/WKPage.cpp: |
| (WKPageSetSession): Deleted. |
| * UIProcess/API/C/WKPage.h: |
| * UIProcess/WebPageProxy.cpp: |
| (WebKit::WebPageProxy::setSessionID): Deleted. |
| * UIProcess/WebPageProxy.h: |
| (WebKit::WebPageProxy::sessionID): |
| * WebProcess/WebPage/WebPage.messages.in: |
| |
| 2016-10-07 Commit Queue <commit-queue@webkit.org> |
| |
| Unreviewed, rolling out r206909. |
| https://bugs.webkit.org/show_bug.cgi?id=163116 |
| |
| Caused most of GTK layout tests to crash (Requested by KaL on |
| #webkit). |
| |
| Reverted changeset: |
| |
| "[GTK] UIProcess crashes when using Japanese IM" |
| https://bugs.webkit.org/show_bug.cgi?id=163011 |
| http://trac.webkit.org/changeset/206909 |
| |
| 2016-10-07 Carlos Garcia Campos <cgarcia@igalia.com> |
| |
| Network Session: Allow NetworkDataTask decide what to do when override is allowed for a download |
| https://bugs.webkit.org/show_bug.cgi?id=163010 |
| |
| Reviewed by Alex Christensen. |
| |
| Current code always deletes the file before starting a download when allow override is True. In soup backend we |
| use glib API that takes care of it and tries to ensure that the original file is not deleted if the new file |
| creation fails for whatever reason. |
| |
| * NetworkProcess/Downloads/DownloadManager.cpp: |
| (WebKit::DownloadManager::continueDecidePendingDownloadDestination): Pass allowOverride to setPendingDownloadLocation(). |
| * NetworkProcess/NetworkDataTask.h: |
| * NetworkProcess/cocoa/NetworkDataTaskCocoa.mm: |
| (WebKit::NetworkDataTask::setPendingDownloadLocation): Delete the destination file if exists and allowOverride |
| is True. |
| |
| 2016-10-07 Tomas Popela <tpopela@redhat.com> |
| |
| [GTK] UIProcess crashes when using Japanese IM |
| https://bugs.webkit.org/show_bug.cgi?id=163011 |
| |
| We have to reference the current GdkEventKey before we try process it |
| as later when the lambda body is reached the event could be already |
| freed. |
| |
| Reviewed by Carlos Garcia Campos. |
| |
| * UIProcess/API/gtk/WebKitWebViewBase.cpp: |
| (webkitWebViewBaseKeyPressEvent): |
| (webkitWebViewBaseKeyReleaseEvent): |
| * UIProcess/gtk/InputMethodFilter.h: |
| Use non-copyable Function so we can use WTFMove to pass the event to |
| lambda. |
| |
| 2016-10-06 Michael Catanzaro <mcatanzaro@igalia.com> |
| |
| [GTK] Expose WebKitDOMHTMLInputElement APIs for form autofill |
| https://bugs.webkit.org/show_bug.cgi?id=163082 |
| |
| Reviewed by Darin Adler. |
| |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLInputElement.cpp: |
| (webkit_dom_html_input_element_get_auto_filled): Added. |
| (webkit_dom_html_input_element_set_auto_filled): Added. |
| (webkit_dom_html_input_element_set_editing_value): Added. |
| * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLInputElement.h: |
| * WebProcess/InjectedBundle/API/gtk/DOM/docs/webkitdomgtk-4.0-sections.txt: |
| |
| 2016-10-06 John Wilander <wilander@apple.com> |
| |
| Update Resource Load Statistics |
| https://bugs.webkit.org/show_bug.cgi?id=162811 |
| |
| Reviewed by Alex Christensen. |
| |
| * UIProcess/WebResourceLoadStatisticsStore.cpp: |
| (WebKit::WebResourceLoadStatisticsStore::hasPrevalentResourceCharacteristics): |
| Switched to vector-based classification. |
| (WebKit::WebResourceLoadStatisticsStore::classifyResource): |
| Simplified logic and moved the split between has and has |
| no user interaction into ResourceLoadStatisticsStore. |
| (WebKit::WebResourceLoadStatisticsStore::clearDataRecords): |
| Added. |
| (WebKit::WebResourceLoadStatisticsStore::resourceLoadStatisticsUpdated): |
| Updated to make use of the new functions. |
| (WebKit::WebResourceLoadStatisticsStore::persistentStoragePath): |
| Removed stray whitespace. |
| (WebKit::WebResourceLoadStatisticsStore::writeEncoderToDisk): |
| Removed stray whitespace. |
| (WebKit::WebResourceLoadStatisticsStore::createDecoderFromDisk): |
| Removed stray whitespace. |
| (WebKit::hasPrevalentResourceCharacteristics): Deleted. |
| (WebKit::classifyPrevalentResources): Deleted. |
| * UIProcess/WebResourceLoadStatisticsStore.h: |
| Added member variables for clearing of data records. |
| |
| 2016-10-06 Youenn Fablet <youenn@apple.com> |
| |
| [WK2] 304 revalidation on the network process does not update the validated response |
| https://bugs.webkit.org/show_bug.cgi?id=162973 |
| |
| Reviewed by Darin Adler. |
| |
| * NetworkProcess/NetworkResourceLoader.cpp: Updating cache entry with the revalidated one. |
| |
| 2016-10-05 Wenson Hsieh <wenson_hsieh@apple.com> |
| |
| Introduce InputEvent bindings in preparation for the input events spec |
| https://bugs.webkit.org/show_bug.cgi?id=162954 |
| |
| Reviewed by Ryosuke Niwa. |
| |
| Adds a new runtime switch for enabling InputEvents. |
| |
| * Shared/WebPreferencesDefinitions.h: |
| * WebProcess/WebPage/WebPage.cpp: |
| (WebKit::WebPage::updatePreferences): |
| |
| 2016-10-05 Myles C. Maxfield <mmaxfield@apple.com> |
| |
| Put variation fonts work behind a compile-time flag |
| https://bugs.webkit.org/show_bug.cgi?id=162949 |
| |
| Reviewed by Simon Fraser. |
| |
| * Configurations/FeatureDefines.xcconfig: |
| |
| 2016-10-05 Tim Horton <timothy_horton@apple.com> |
| |
| Fix the build. |
| |
| * UIProcess/Cocoa/WebViewImpl.mm: |
| |
| 2016-10-05 Tim Horton <timothy_horton@apple.com> |
| |
| Avoid automatically re-taking snapshots for back-forward items that were never loaded into the view |
| https://bugs.webkit.org/show_bug.cgi?id=162955 |
| <rdar://problem/27659173> |
| |
| Reviewed by Simon Fraser. |
| |
| Make it possible for clients to control the snapshot for back-forward |
| items that are restored from session state without navigating to them, |
| by ensuring that we won't stomp on the snapshot that they explicitly take, |
| until a load occurs. |
| |
| * UIProcess/WebBackForwardList.cpp: |
| (WebKit::WebBackForwardList::addItem): |
| (WebKit::WebBackForwardList::goToItem): |
| * UIProcess/ios/ViewGestureControllerIOS.mm: |
| (WebKit::ViewGestureController::beginSwipeGesture): |
| * UIProcess/mac/ViewGestureControllerMac.mm: |
| (WebKit::ViewGestureController::trackSwipeGesture): |
| Disambiguate explicit API-driven snapshot recording from automatic, |
| navigation-driven snapshot recording. |
| |
| * UIProcess/Cocoa/WebViewImpl.mm: |
| (WebKit::WebViewImpl::saveBackForwardSnapshotForCurrentItem): |
| Get rid of the version of recordNavigationSnapshot() that doesn't take a |
| back-forward list item, and grab the current item at the one remaining caller. |
| |
| * UIProcess/WebPageProxy.cpp: |
| (WebKit::WebPageProxy::recordAutomaticNavigationSnapshot): |
| (WebKit::WebPageProxy::recordNavigationSnapshot): |
| (WebKit::WebPageProxy::restoreFromSessionState): |
| (WebKit::WebPageProxy::didCommitLoadForFrame): |
| * UIProcess/WebPageProxy.h: |
| Rename m_suppressNavigationSnapshotting to m_suppressAutomaticNavigationSnapshotting, |
| and make it be only about automatic (navigation-driven) snapshots; it won't have |
| any impact on explicit snapshots forced by clients. |
| |
| Set m_suppressAutomaticNavigationSnapshotting unconditionally when restoring |
| from session state, so that we won't start automatically snapshotting until |
| something has loaded in the view. |
| |
| 2016-10-05 Tim Horton <timothy_horton@apple.com> |
| |
| Make it possible to test ViewSnapshotStore behaviors |
| https://bugs.webkit.org/show_bug.cgi?id=162983 |
| |
| Reviewed by Simon Fraser. |
| |
| Add two pieces of SPI to make it easier to test ViewSnapshotStore: |
| |
| - [WKWebView _disableBackForwardSnapshotVolatilityForTesting] |
| This makes it so that we don't make snapshots volatile after we |
| take them, so that they won't get purged while the test is running |
| and cause the test to be flaky. |
| |
| - [WKBackForwardListItem _copySnapshotForTesting] |
| This returns a CGImage with the content of the given back-forward |
| item's current snapshot, if there is one. |
| |
| * UIProcess/API/Cocoa/WKBackForwardListItem.mm: |
| (-[WKBackForwardListItem _copySnapshotForTesting]): |
| * UIProcess/API/Cocoa/WKBackForwardListItemInternal.h: |
| * UIProcess/API/Cocoa/WKBackForwardListItemPrivate.h: Added. |
| Add WKBackForwardListItem SPI to retrieve the snapshot for a given back-forward list item. |
| |
| * UIProcess/API/Cocoa/WKWebViewPrivate.h: |
| * UIProcess/API/Cocoa/WKWebView.mm: |
| (-[WKWebView _disableBackForwardSnapshotVolatilityForTesting]): |
| Add WKWebView SPI to disable volatility of snapshots, for testing purposes. |
| |
| * UIProcess/Cocoa/WebViewImpl.h: |
| * UIProcess/Cocoa/WebViewImpl.mm: |
| (WebKit::WebViewImpl::takeViewSnapshot): |
| Adopt ViewSnapshot::setVolatile instead of reaching into the surface. |
| |
| * UIProcess/mac/ViewGestureControllerMac.mm: |
| (WebKit::ViewGestureController::removeSwipeSnapshot): |
| Adopt ViewSnapshot::setVolatile instead of reaching into the surface. |
| |
| * UIProcess/mac/ViewSnapshotStore.h: |
| (WebKit::ViewSnapshotStore::setDisableSnapshotVolatilityForTesting): |
| (WebKit::ViewSnapshotStore::disableSnapshotVolatilityForTesting): |
| * UIProcess/mac/ViewSnapshotStore.mm: |
| (WebKit::ViewSnapshotStore::ViewSnapshotStore): |
| (WebKit::ViewSnapshot::setVolatile): |
| (WebKit::ViewSnapshot::asLayerContents): |
| Move all touching of snapshot volatility into the new setVolatile, |
| and short-circuit if the testing-only m_disableSnapshotVolatility bit is set |
| |
| (WebKit::ViewSnapshot::asImageForTesting): |
| Make a CGImageRef for the aforementioned WKBackForwardListItem SPI. |
| This is currently not implemented for the iOS Simulator, because we |
| don't have access to the bits of the image in that case. |
| |
| 2016-10-05 Chris Dumez <cdumez@apple.com> |
| |
| KeyboardEvent.getModifierState() should support "CapsLock" modifier |
| https://bugs.webkit.org/show_bug.cgi?id=162861 |
| |
| Reviewed by Darin Adler. |
| |
| Add support for CapsLock modifier on events. |
| |
| * Shared/API/c/WKEvent.h: |
| * Shared/API/c/WKSharedAPICast.h: |
| (WebKit::toAPI): |
| * Shared/WebEventConversion.cpp: |
| (WebKit::WebKit2PlatformMouseEvent::WebKit2PlatformMouseEvent): |
| (WebKit::WebKit2PlatformWheelEvent::WebKit2PlatformWheelEvent): |
| (WebKit::WebKit2PlatformKeyboardEvent::WebKit2PlatformKeyboardEvent): |
| (WebKit::WebKit2PlatformTouchEvent::WebKit2PlatformTouchEvent): |
| (WebKit::WebKit2PlatformGestureEvent::WebKit2PlatformGestureEvent): |
| * Shared/efl/WebEventFactory.cpp: |
| (WebKit::toWebEventModifiers): |
| * Shared/ios/WebIOSEventFactory.mm: |
| (modifiersForEvent): |
| * Shared/mac/WebEventFactory.mm: |
| (WebKit::modifiersForEvent): |
| * UIProcess/API/Cocoa/WKNavigationAction.mm: |
| (toNSEventModifierFlags): |
| * UIProcess/Cocoa/WebAutomationSessionCocoa.mm: |
| (WebKit::WebAutomationSession::platformSimulateMouseInteraction): |
| |
| 2016-10-05 Zan Dobersek <zdobersek@igalia.com> |
| |
| Rename ENABLE_ENCRYPTED_MEDIA_V2 to ENABLE_LEGACY_ENCRYPTED_MEDIA |
| https://bugs.webkit.org/show_bug.cgi?id=162903 |
| |
| Reviewed by Alex Christensen. |
| |
| Rename build guards for the remaining implementation of the legacy EME API |
| to ENABLE_LEGACY_ENCRYPTED_MEDIA. This will allow for the future implementation |
| of the near-finished API to be guarded with the simple ENABLE_ENCRYPTED_MEDIA guards. |
| |
| * Configurations/FeatureDefines.xcconfig: |
| * WebProcess/WebPage/WebPage.cpp: |
| (WebKit::m_userInterfaceLayoutDirection): |
| * WebProcess/WebProcess.cpp: |
| (WebKit::m_resourceLoadStatisticsStorage): |
| |
| 2016-10-05 Daniel Bates <dabates@apple.com> |
| |
| [WK2][NetworkSession] Ping requests should follow redirects if applicable |
| https://bugs.webkit.org/show_bug.cgi?id=162580 |
| <rdar://problem/28631274> |
| |
| Reviewed by Alex Christensen. |
| |
| Implement support for following redirects, if applicable, of a ping request when using the |
| Network Session (ENABLE(NETWORK_SESSION)) code path in WebKit2. For ping requests that are |
| in response to hyperlink auditing (e.g. <a ping>) we should follow redirect responses. |
| For Content Security Policy and XSS Auditor violation reports we should not follow redirect |
| responses. |
| |
| Currently we always ignore redirects for ping requests that are sent using the Network Session |
| code path in WebKit2. This behavior disagrees with the behavior described in section |
| "Hyperlink auditing" of the HTML standard, <https://html.spec.whatwg.org/multipage/semantics.html#hyperlink-auditing> (27 September 2016), |
| as well as the behavior in Legacy WebKit and WebKit2 with Network Session disabled. We should |
| follow redirects for ping requests initiated as part of hyperlink auditing to more closely |
| conform to the HTML standard and match the behavior in Legacy WebKit and WebKit2 with Network |
| Session disabled. |
| |
| * NetworkProcess/PingLoad.h: |
| |
| 2016-10-05 Daniel Bates <dabates@apple.com> |
| |
| Do not follow redirects when sending violation report |
| https://bugs.webkit.org/show_bug.cgi?id=162520 |
| <rdar://problem/27957639> |
| |
| Reviewed by Alex Christensen. |
| |
| Update the non-Network Session WebKit2 implementation to follow redirect responses for a ping |
| request, if applicable. I did not update the Network Session implementation at this time. I |
| will fix it in <https://bugs.webkit.org/show_bug.cgi?id=162580>. |
| |
| * NetworkProcess/NetworkConnectionToWebProcess.cpp: |
| (WebKit::NetworkConnectionToWebProcess::loadPing): Tell PingHandle whether to follow redirects. |
| * NetworkProcess/NetworkLoadParameters.h: |
| * NetworkProcess/NetworkResourceLoadParameters.cpp: |
| (WebKit::NetworkResourceLoadParameters::encode): Encode NetworkResourceLoadParameters::shouldFollowRedirects. |
| (WebKit::NetworkResourceLoadParameters::decode): Decode NetworkResourceLoadParameters::shouldFollowRedirects. |
| * NetworkProcess/PingLoad.h: Added FIXME comment to implement support for following redirects, |
| if applicable (for hyperlink auditing). See <https://bugs.webkit.org/show_bug.cgi?id=162580> |
| for more details. |
| * WebProcess/Network/WebLoaderStrategy.cpp: |
| (WebKit::WebLoaderStrategy::createPingHandle): Modified to take a boolean whether to follow |
| redirects responses and set NetworkResourceLoadParameters::shouldFollowRedirects as appropriate. |
| * WebProcess/Network/WebLoaderStrategy.h: |
| |
| 2016-10-05 Carlos Garcia Campos <cgarcia@igalia.com> |
| |
| [SOUP] Move global TLS errors handling from ResourceHandle to SoupNetworkSession |
| https://bugs.webkit.org/show_bug.cgi?id=162910 |
| |
| Reviewed by Alex Christensen. |
| |
| Use SoupNetworkSession instead of ResourceHandle. |
| |
| * NetworkProcess/soup/NetworkProcessSoup.cpp: |
| (WebKit::NetworkProcess::setIgnoreTLSErrors): |
| (WebKit::NetworkProcess::allowSpecificHTTPSCertificateForHost): |
| |
| 2016-10-05 Carlos Garcia Campos <cgarcia@igalia.com> |
| |
| Unreviewed. Fix GTK+ build with USE_REDIRECTED_XCOMPOSITE_WINDOW disabled. |
| |
| * UIProcess/AcceleratedDrawingAreaProxy.cpp: |
| (WebKit::AcceleratedDrawingAreaProxy::setNativeSurfaceHandleForCompositing): |
| |
| 2016-10-04 Chris Dumez <cdumez@apple.com> |
| |
| Implement KeyboardEvent.code from the UI Event spec |
| https://bugs.webkit.org/show_bug.cgi?id=149584 |
| |
| Reviewed by Darin Adler. |
| |
| Add support for Keyboard.code attribute: |
| - https://w3c.github.io/uievents/#dom-keyboardevent-code |
| - https://w3c.github.io/uievents-code/ |
| |
| * Shared/WebEvent.h: |
| (WebKit::WebKeyboardEvent::code): |
| * Shared/WebEventConversion.cpp: |
| (WebKit::WebKit2PlatformKeyboardEvent::WebKit2PlatformKeyboardEvent): |
| * Shared/WebKeyboardEvent.cpp: |
| (WebKit::WebKeyboardEvent::WebKeyboardEvent): |
| (WebKit::WebKeyboardEvent::encode): |
| (WebKit::WebKeyboardEvent::decode): |
| * Shared/mac/WebEventFactory.mm: |
| (WebKit::WebEventFactory::createWebKeyboardEvent): |
| |
| 2016-10-04 Said Abou-Hallawa <sabouhallawa@apple.com> |
| |
| The dragged image should be the current frame only of the animated image |
| https://bugs.webkit.org/show_bug.cgi?id=162109 |
| |
| Reviewed by Tim Horton. |
| |
| * UIProcess/Cocoa/WebViewImpl.mm: |
| (WebKit::WebViewImpl::provideDataForPasteboard): Call the Image function with its new name. |
| |
| 2016-10-04 Ryosuke Niwa <rniwa@webkit.org> |
| |
| Revert a change erroneously committed in r206795. |
| |
| * WebProcess/WebPage/WebPage.cpp: |
| (WebKit::WebPage::updatePreferences): |
| |
| 2016-10-04 Anders Carlsson <andersca@apple.com> |
| |
| Properly kill web processes in the launching state |
| https://bugs.webkit.org/show_bug.cgi?id=162938 |
| |
| Reviewed by Tim Horton. |
| |
| * UIProcess/Launcher/ProcessLauncher.h: |
| Add m_xpcConnection member. |
| |
| * UIProcess/Launcher/mac/ProcessLauncherMac.mm: |
| (WebKit::ProcessLauncher::launchProcess): |
| Store the XPC connection in the m_xpcConnection member variable. |
| In the reply handler, handle m_xpcConnection being null. |
| |
| (WebKit::ProcessLauncher::platformInvalidate): |
| Cancel and kill the connection. |
| |
| * UIProcess/WebPageProxy.cpp: |
| (WebKit::WebPageProxy::terminateProcess): |
| Get rid of an assertion. |
| |
| * UIProcess/WebProcessProxy.cpp: |
| (WebKit::WebProcessProxy::requestTermination): |
| Handle the launching state. |
| |
| 2016-10-04 Tim Horton <timothy_horton@apple.com> |
| |
| Fix the build. |
| |
| * Shared/WebBackForwardListItem.cpp: |
| (WebKit::WebBackForwardListItem::WebBackForwardListItem): |
| (WebKit::WebBackForwardListItem::highestUsedItemID): |
| |
| 2016-10-04 Tim Horton <timothy_horton@apple.com> |
| |
| Fix a typo in WebBackForwardListItem (highed->highest) |
| https://bugs.webkit.org/show_bug.cgi?id=162935 |
| |
| Reviewed by Anders Carlsson. |
| |
| * Shared/WebBackForwardListItem.cpp: |
| (WebKit::WebBackForwardListItem::highestUsedItemID): |
| (WebKit::WebBackForwardListItem::highedUsedItemID): Deleted. |
| * Shared/WebBackForwardListItem.h: |
| * UIProcess/WebPageProxy.cpp: |
| (WebKit::WebPageProxy::creationParameters): |
| |
| 2016-10-04 Yusuke Suzuki <utatane.tea@gmail.com> |
| |
| [DOMJIT] Introduce DOMJIT::GetterSetter to tell JIT information |
| https://bugs.webkit.org/show_bug.cgi?id=162916 |
| |
| Reviewed by Filip Pizlo. |
| |
| * CMakeLists.txt: |
| |
| 2016-10-04 Carlos Garcia Campos <cgarcia@igalia.com> |
| |
| [SOUP] Remove SSLPolicyFlags from SoupNetworkSession |
| https://bugs.webkit.org/show_bug.cgi?id=162906 |
| |
| Reviewed by Michael Catanzaro. |
| |
| * NetworkProcess/soup/NetworkProcessMainSoup.cpp: |
| (WebKit::NetworkProcessMainUnix): |
| |
| 2016-10-04 Wenson Hsieh <wenson_hsieh@apple.com> |
| |
| Media controls are displayed in the incorrect state momentarily after switching between tabs playing media |
| https://bugs.webkit.org/show_bug.cgi?id=162766 |
| <rdar://problem/28533523> |
| |
| Reviewed by Jer Noble. |
| |
| Plumbs some more Now Playing information from the web process to the UI process for testing purposes. See |
| WebCore ChangeLog for more details. |
| |
| * UIProcess/API/Cocoa/WKWebView.mm: |
| (-[WKWebView _handleActiveNowPlayingSessionInfoResponse:title:duration:elapsedTime:]): |
| (-[WKWebView _handleActiveNowPlayingSessionInfoResponse:]): Deleted. |
| * UIProcess/API/Cocoa/WKWebViewPrivate.h: |
| * UIProcess/PageClient.h: |
| * UIProcess/WebPageProxy.cpp: |
| (WebKit::WebPageProxy::handleActiveNowPlayingSessionInfoResponse): |
| * UIProcess/WebPageProxy.h: |
| * UIProcess/WebPageProxy.messages.in: |
| * UIProcess/mac/PageClientImpl.h: |
| * UIProcess/mac/PageClientImpl.mm: |
| (WebKit::PageClientImpl::handleActiveNowPlayingSessionInfoResponse): |
| * WebProcess/WebPage/mac/WebPageMac.mm: |
| (WebKit::WebPage::requestActiveNowPlayingSessionInfo): |
| |
| 2016-10-04 Zan Dobersek <zdobersek@igalia.com> |
| |
| Unreviewed GTK+ build fix. |
| |
| * UIProcess/API/C/WKPage.cpp: |
| (WKPageSetPageNavigationClient): Guard the call to getDefaultWebCryptoMasterKey() |
| with ENABLE(SUBTLE_CRYPTO), since the same guard is used for the definition. Fixes |
| GTK+ production builds where the feature is disabled. |
| |
| 2016-10-03 Keith Rollin <krollin@apple.com> |
| |
| More logging to diagnose "WebKit encountered an internal error" messages |
| https://bugs.webkit.org/show_bug.cgi?id=162754 |
| |
| Reviewed by Antti Koivisto. |
| |
| Add more logging around calls to internalError, as well as some |
| low-level logging around SharedMemory, and mach_vm_map in particular. |
| |
| * NetworkProcess/NetworkResourceLoader.cpp: |
| (WebKit::NetworkResourceLoader::startNetworkLoad): |
| * Platform/Logging.h: |
| * Platform/mac/SharedMemoryMac.cpp: |
| (WebKit::SharedMemory::allocate): |
| (WebKit::makeMemoryEntry): |
| (WebKit::SharedMemory::map): |
| (WebKit::SharedMemory::~SharedMemory): |
| * WebProcess/Network/WebLoaderStrategy.cpp: |
| (WebKit::WebLoaderStrategy::networkProcessCrashed): |
| (WebKit::WebLoaderStrategy::loadResourceSynchronously): |
| * WebProcess/Network/WebResourceLoader.cpp: |
| (WebKit::WebResourceLoader::didReceiveResource): |
| |
| 2016-10-03 Ryan Haddad <ryanhaddad@apple.com> |
| |
| Unreviewed, rolling out r206754. |
| |
| This change broke the El Capitan and Yosemite debug builds. |
| |
| Reverted changeset: |
| |
| "More logging to diagnose "WebKit encountered an internal |
| error" messages" |
| https://bugs.webkit.org/show_bug.cgi?id=162754 |
| http://trac.webkit.org/changeset/206754 |
| |
| 2016-10-03 Keith Rollin <krollin@apple.com> |
| |
| More logging to diagnose "WebKit encountered an internal error" messages |
| https://bugs.webkit.org/show_bug.cgi?id=162754 |
| |
| Reviewed by Antti Koivisto. |
| |
| Add more logging around calls to internalError, as well as some |
| low-level logging around SharedMemory, and mach_vm_map in particular. |
| |
| * NetworkProcess/NetworkResourceLoader.cpp: |
| (WebKit::NetworkResourceLoader::startNetworkLoad): |
| * Platform/Logging.h: |
| * Platform/mac/SharedMemoryMac.cpp: |
| (WebKit::SharedMemory::allocate): |
| (WebKit::makeMemoryEntry): |
| (WebKit::SharedMemory::map): |
| (WebKit::SharedMemory::~SharedMemory): |
| * WebProcess/Network/WebLoaderStrategy.cpp: |
| (WebKit::WebLoaderStrategy::networkProcessCrashed): |
| (WebKit::WebLoaderStrategy::loadResourceSynchronously): |
| * WebProcess/Network/WebResourceLoader.cpp: |
| (WebKit::WebResourceLoader::didReceiveResource): |
| |
| 2016-10-03 Chris Dumez <cdumez@apple.com> |
| |
| Add support for KeyboardEvent.key attribute |
| https://bugs.webkit.org/show_bug.cgi?id=36267 |
| |
| Reviewed by Darin Adler. |
| |
| Add support for KeyboardEvent.key attribute. |
| |
| * Shared/WebEvent.h: |
| (WebKit::WebKeyboardEvent::key): |
| (WebKit::WebKeyboardEvent::unmodifiedText): Deleted. |
| * Shared/WebEventConversion.cpp: |
| (WebKit::WebKit2PlatformKeyboardEvent::WebKit2PlatformKeyboardEvent): |
| * Shared/WebKeyboardEvent.cpp: |
| (WebKit::WebKeyboardEvent::WebKeyboardEvent): |
| (WebKit::WebKeyboardEvent::encode): |
| (WebKit::WebKeyboardEvent::decode): |
| * Shared/mac/WebEventFactory.mm: |
| (WebKit::WebEventFactory::createWebKeyboardEvent): |
| |
| 2016-10-03 Chris Dumez <cdumez@apple.com> |
| |
| Add support for KeyboardEvent.key attribute |
| https://bugs.webkit.org/show_bug.cgi?id=36267 |
| |
| Reviewed by Darin Adler. |
| |
| Add support for KeyboardEvent.key attribute. |
| |
| * Shared/WebEvent.h: |
| (WebKit::WebKeyboardEvent::key): |
| (WebKit::WebKeyboardEvent::unmodifiedText): Deleted. |
| * Shared/WebEventConversion.cpp: |
| (WebKit::WebKit2PlatformKeyboardEvent::WebKit2PlatformKeyboardEvent): |
| * Shared/WebKeyboardEvent.cpp: |
| (WebKit::WebKeyboardEvent::WebKeyboardEvent): |
| (WebKit::WebKeyboardEvent::encode): |
| (WebKit::WebKeyboardEvent::decode): |
| * Shared/mac/WebEventFactory.mm: |
| (WebKit::WebEventFactory::createWebKeyboardEvent): |
| |
| 2016-10-03 Carlos Garcia Campos <cgarcia@igalia.com> |
| |
| [SOUP] Cleanup persistent credential storage code |
| https://bugs.webkit.org/show_bug.cgi?id=162777 |
| |
| Reviewed by Alex Christensen. |
| |
| Use USE(LIBSECRET) instead of ENABLE(CREDENTIAL_STORAGE). |
| |
| * UIProcess/API/gtk/WebKitAuthenticationRequest.cpp: |
| (webkit_authentication_request_can_save_credentials): |
| |
| 2016-10-02 Ryan Haddad <ryanhaddad@apple.com> |
| |
| Unreviewed, rolling out r206683. |
| |
| This change caused API test WebKit2.FindMatches to fail on |
| Mac. |
| |
| Reverted changeset: |
| |
| "The dragged image should be the current frame only of the |
| animated image" |
| https://bugs.webkit.org/show_bug.cgi?id=162109 |
| http://trac.webkit.org/changeset/206683 |
| |
| 2016-09-30 Myles C. Maxfield <mmaxfield@apple.com> |
| |
| Follow-up patch after r206701 |
| https://bugs.webkit.org/show_bug.cgi?id=162818 |
| |
| Unreviewed. |
| |
| I missed one place required to enable an experimental feature by default. |
| |
| * UIProcess/Cocoa/WebProcessPoolCocoa.mm: |
| (WebKit::registerUserDefaultsIfNeeded): |
| |
| 2016-09-30 Dan Bernstein <mitz@apple.com> |
| |
| [iOS] Editing menu omits the Share command if the selected text is longer than 200 characters |
| https://bugs.webkit.org/show_bug.cgi?id=162821 |
| <rdar://problem/28409828> |
| |
| Reviewed by Tim Horton. |
| |
| * UIProcess/ios/WKContentViewInteraction.mm: |
| (-[WKContentView canPerformAction:withSender:]): Changed to return YES for the _share: |
| action even if the selection is longer than 200 characters. While Define should not have |
| been available for longer selections, Share does not have such a limitation. |
| |
| 2016-09-30 Myles C. Maxfield <mmaxfield@apple.com> |
| |
| Turn variation fonts on by default |
| https://bugs.webkit.org/show_bug.cgi?id=162818 |
| |
| Reviewed by Simon Fraser. |
| |
| * Shared/WebPreferencesDefinitions.h: |
| |
| 2016-09-30 Brady Eidson <beidson@apple.com> |
| |
| REGRESSION (Safari 10 combined with WK changes): Unable to store WebCrypto keys in IndexedDB database. |
| <rdar://problem/28334440> and https://bugs.webkit.org/show_bug.cgi?id=162554 |
| |
| Reviewed by Alexey Proskuryakov. |
| |
| Safari 10 has a WKPageNavigation client but does not implement the "copyWebCryptoMasterKey" callback. |
| |
| WebKit just fails in this case, instead of falling back to "getDefaultWebCryptoMasterKey". |
| It should fall back. |
| |
| Additionally there's a WKContextClient callback to get the crypto key, also, but it is completely unused. |
| So it should be pulled. |
| |
| * UIProcess/API/APILoaderClient.h: |
| (API::LoaderClient::webCryptoMasterKey): Deleted. |
| * UIProcess/API/C/WKContext.h: |
| |
| * UIProcess/API/C/WKPage.cpp: |
| (WKPageSetPageLoaderClient): |
| (WKPageSetPageNavigationClient): If the client doesn't implement this method, fallback to getDefaultWebCryptoMasterKey. |
| |
| * UIProcess/Cocoa/NavigationState.mm: |
| (WebKit::NavigationState::NavigationClient::webCryptoMasterKey): If the client doesn't implement this method, |
| fallback to getDefaultWebCryptoMasterKey. |
| |
| * UIProcess/WebContextClient.cpp: |
| (WebKit::WebContextClient::copyWebCryptoMasterKey): Deleted. |
| * UIProcess/WebContextClient.h: |
| |
| * UIProcess/WebPageProxy.cpp: |
| (WebKit::WebPageProxy::wrapCryptoKey): Only ask the NavigationClient before falling back. Don't ask the loader client. |
| (WebKit::WebPageProxy::unwrapCryptoKey): Ditto. |
| |
| 2016-09-30 Said Abou-Hallawa <sabouhallawa@apple.com> |
| |
| The dragged image should be the current frame only of the animated image |
| https://bugs.webkit.org/show_bug.cgi?id=162109 |
| |
| Reviewed by Tim Horton. |
| |
| * UIProcess/Cocoa/WebViewImpl.mm: |
| (WebKit::WebViewImpl::provideDataForPasteboard): Call the Image function with its new name. |
| |
| 2016-09-30 Anders Carlsson <andersca@apple.com> |
| |
| Second time going into fullscreen using silverlight, will hide the menu bar and dock for Safari |
| https://bugs.webkit.org/show_bug.cgi?id=162805 |
| rdar://problem/28208495 |
| |
| Reviewed by Dan Bernstein. |
| |
| Turns out that the WindowRef wrappers for full screen NSWindows can end up in the m_windows HashSet, |
| and never go away. |
| |
| Fix this by storing the canonical CGWindowIDs in the hash map instead. |
| |
| * PluginProcess/mac/PluginProcessMac.mm: |
| (WebKit::cgWindowID): |
| (WebKit::windowCoversAnyScreen): |
| (WebKit::FullscreenWindowTracker::windowShown): |
| (WebKit::FullscreenWindowTracker::windowHidden): |
| |
| 2016-09-30 Myles C. Maxfield <mmaxfield@apple.com> |
| |
| Create runtime flag for variation font work |
| https://bugs.webkit.org/show_bug.cgi?id=162780 |
| |
| Reviewed by Alex Christensen. |
| |
| * Shared/WebPreferencesDefinitions.h: |
| * WebProcess/WebPage/WebPage.cpp: |
| (WebKit::WebPage::updatePreferences): |
| |
| 2016-09-30 Chris Dumez <cdumez@apple.com> |
| |
| [WK2][iOS] Add radiusX / radiusY / rotationAngle to WebPlatformTouchPoint |
| https://bugs.webkit.org/show_bug.cgi?id=162787 |
| <rdar://problem/28554292> |
| |
| Reviewed by Benjamin Poulain. |
| |
| Add radiusX / radiusY / rotationAngle to WebPlatformTouchPoint. |
| |
| * Platform/spi/ios/UIKitSPI.h: |
| * Shared/WebEvent.h: |
| (WebKit::WebPlatformTouchPoint::setRadiusX): |
| (WebKit::WebPlatformTouchPoint::radiusX): |
| (WebKit::WebPlatformTouchPoint::setRadiusY): |
| (WebKit::WebPlatformTouchPoint::radiusY): |
| (WebKit::WebPlatformTouchPoint::setRotationAngle): |
| (WebKit::WebPlatformTouchPoint::rotationAngle): |
| * Shared/WebEventConversion.cpp: |
| (WebKit::WebKit2PlatformTouchPoint::WebKit2PlatformTouchPoint): |
| * Shared/ios/NativeWebTouchEventIOS.mm: |
| (WebKit::NativeWebTouchEvent::extractWebTouchPoint): |
| * Shared/ios/WebPlatformTouchPointIOS.cpp: |
| (WebKit::WebPlatformTouchPoint::encode): |
| (WebKit::WebPlatformTouchPoint::decode): |
| |
| 2016-09-30 Megan Gardner <megan_gardner@apple.com> |
| |
| Make it possible to test web-related user-interface features |
| https://bugs.webkit.org/show_bug.cgi?id=162657 |
| |
| Reviewed by Simon Fraser. |
| |
| Added the ability to pull the strings from an Action Sheet and pass them to |
| test scripts to make sure we are giving the correct available actions for |
| the item we are interacting with. |
| Added a test for long press on an image, and used the sheet scraping functionality |
| to make sure that the correct actions were being displayed. |
| Test for previous patch, Changeset 205915; Bug 161761 |
| |
| * UIProcess/API/Cocoa/WKWebView.mm: |
| (-[WKWebView _contentsOfUserInterfaceItem:]): |
| * UIProcess/API/Cocoa/WKWebViewPrivate.h: |
| * UIProcess/ios/WKActionSheetAssistant.h: |
| * UIProcess/ios/WKActionSheetAssistant.mm: |
| (-[WKActionSheetAssistant currentAvailableActionStrings]): |
| * UIProcess/ios/WKContentViewInteraction.h: |
| * UIProcess/ios/WKContentViewInteraction.mm: |
| (-[WKContentView _contentsOfUserInterfaceItem:]): |
| |
| 2016-09-27 Anders Carlsson <andersca@apple.com> |
| |
| Remove a couple of unused members from PlatformKeyboardEvent |
| https://bugs.webkit.org/show_bug.cgi?id=162641 |
| |
| Reviewed by Tim Horton. |
| |
| * Shared/WebEventConversion.cpp: |
| (WebKit::WebKit2PlatformKeyboardEvent::WebKit2PlatformKeyboardEvent): |
| |
| 2016-09-29 Nan Wang <n_wang@apple.com> |
| |
| AX: iOS: Tapping <input> in Safari zooms in a bit when page has max scale = 1 |
| https://bugs.webkit.org/show_bug.cgi?id=162471 |
| |
| Reviewed by Simon Fraser. |
| |
| * Shared/AssistedNodeInformation.cpp: |
| (WebKit::AssistedNodeInformation::encode): |
| (WebKit::AssistedNodeInformation::decode): |
| * Shared/AssistedNodeInformation.h: |
| * UIProcess/ios/WKContentViewInteraction.mm: |
| (-[WKContentView _displayFormNodeInputView]): |
| * WebProcess/WebPage/WebPage.h: |
| * WebProcess/WebPage/ios/WebPageIOS.mm: |
| (WebKit::WebPage::maximumPageScaleFactorIgnoringAlwaysScalable): |
| (WebKit::WebPage::getAssistedNodeInformation): |
| |
| 2016-09-29 Daniel Bates <dabates@apple.com> |
| |
| Mark NetworkLoad as final |
| https://bugs.webkit.org/show_bug.cgi?id=162681 |
| |
| Reviewed by Alex Christensen. |
| |
| Mark class NetworkLoad as final as we do not have any derived classes at the moment and it |
| is unclear if it would make sense to subclass it. We can always unmark the class if it turns |
| out that it makes sense to subclass it. |
| |
| * NetworkProcess/NetworkLoad.h: |
| |
| 2016-09-29 Sam Weinig <sam@webkit.org> |
| |
| Allow overriding some NSURLSessionConfiguration properties on a per-NetworkProcess basis |
| <rdar://problem/27648683> |
| https://bugs.webkit.org/show_bug.cgi?id=162735 |
| |
| Reviewed by Dan Bernstein. |
| |
| Add SPI for overriding the following NSURLSessionConfigurations properties: |
| - _sourceApplicationBundleIdentifier |
| - _sourceApplicationSecondaryIdentifier |
| - _CTDataConnectionServiceType |
| |
| * NetworkProcess/NetworkProcess.cpp: |
| (WebKit::NetworkProcess::initializeNetworkProcess): |
| * NetworkProcess/NetworkProcessCreationParameters.cpp: |
| (WebKit::NetworkProcessCreationParameters::encode): |
| (WebKit::NetworkProcessCreationParameters::decode): |
| * NetworkProcess/NetworkProcessCreationParameters.h: |
| * NetworkProcess/NetworkSession.h: |
| * NetworkProcess/cocoa/NetworkProcessCocoa.mm: |
| (WebKit::NetworkProcess::platformInitializeNetworkProcessCocoa): |
| * NetworkProcess/cocoa/NetworkSessionCocoa.mm: |
| (WebKit::globalSourceApplicationBundleIdentifier): |
| (WebKit::globalSourceApplicationSecondaryIdentifier): |
| (WebKit::globalCTDataConnectionServiceType): |
| (WebKit::NetworkSession::setCustomProtocolManager): |
| (WebKit::NetworkSession::setSourceApplicationAuditTokenData): |
| (WebKit::NetworkSession::setSourceApplicationBundleIdentifier): |
| (WebKit::NetworkSession::setSourceApplicationSecondaryIdentifier): |
| (WebKit::NetworkSession::setCTDataConnectionServiceType): |
| (WebKit::NetworkSession::NetworkSession): |
| * UIProcess/API/APIProcessPoolConfiguration.cpp: |
| (API::ProcessPoolConfiguration::copy): |
| * UIProcess/API/APIProcessPoolConfiguration.h: |
| * UIProcess/API/Cocoa/_WKProcessPoolConfiguration.h: |
| * UIProcess/API/Cocoa/_WKProcessPoolConfiguration.mm: |
| (-[_WKProcessPoolConfiguration sourceApplicationBundleIdentifier]): |
| (-[_WKProcessPoolConfiguration setSourceApplicationBundleIdentifier:]): |
| (-[_WKProcessPoolConfiguration sourceApplicationSecondaryIdentifier]): |
| (-[_WKProcessPoolConfiguration setSourceApplicationSecondaryIdentifier:]): |
| (-[_WKProcessPoolConfiguration CTDataConnectionServiceType]): |
| (-[_WKProcessPoolConfiguration setCTDataConnectionServiceType:]): |
| * UIProcess/Cocoa/WebProcessPoolCocoa.mm: |
| (WebKit::WebProcessPool::platformInitializeNetworkProcess): |
| * WebProcess/WebProcess.cpp: |
| (WebKit::WebProcess::initializeWebProcess): |
| * WebProcess/cocoa/WebProcessCocoa.mm: |
| (WebKit::WebProcess::platformInitializeWebProcess): |
| |
| 2016-09-29 Carlos Garcia Campos <cgarcia@igalia.com> |
| |
| NetworkSession: HTTP authentication doesn't work if PROTECTION_SPACE_AUTH_CALLBACK is not enabled |
| https://bugs.webkit.org/show_bug.cgi?id=162724 |
| |
| Reviewed by Alex Christensen. |
| |
| NetworkLoad always expects continueCanAuthenticateAgainstProtectionSpace() to be called to complete the |
| authentication challenge, which is only defined when PROTECTION_SPACE_AUTH_CALLBACK is enabled. |
| I've added missing #ifdefs for PROTECTION_SPACE_AUTH_CALLBACK. |
| |
| * NetworkProcess/Downloads/DownloadManager.cpp: |
| (WebKit::DownloadManager::continueCanAuthenticateAgainstProtectionSpace): |
| * NetworkProcess/Downloads/DownloadManager.h: |
| * NetworkProcess/Downloads/PendingDownload.cpp: |
| (WebKit::PendingDownload::continueCanAuthenticateAgainstProtectionSpace): |
| * NetworkProcess/Downloads/PendingDownload.h: |
| * NetworkProcess/NetworkLoad.cpp: |
| (WebKit::NetworkLoad::~NetworkLoad): |
| (WebKit::NetworkLoad::didReceiveChallenge): Call completeAuthenticationChallenge() instead of |
| canAuthenticateAgainstProtectionSpaceAsync() when PROTECTION_SPACE_AUTH_CALLBACK is not enabled. |
| (WebKit::NetworkLoad::completeAuthenticationChallenge): Moved common code to complete the authentication |
| challenge from continueCanAuthenticateAgainstProtectionSpace(). |
| (WebKit::NetworkLoad::continueCanAuthenticateAgainstProtectionSpace): Call completeAuthenticationChallenge(). |
| (WebKit::NetworkLoad::canAuthenticateAgainstProtectionSpaceAsync): |
| * NetworkProcess/NetworkLoad.h: |
| * NetworkProcess/NetworkLoadClient.h: |
| * NetworkProcess/NetworkProcess.cpp: |
| (WebKit::NetworkProcess::continueCanAuthenticateAgainstProtectionSpaceDownload): |
| * NetworkProcess/NetworkProcess.h: |
| * NetworkProcess/NetworkProcess.messages.in: |
| * NetworkProcess/NetworkResourceLoader.cpp: |
| (WebKit::NetworkResourceLoader::canAuthenticateAgainstProtectionSpaceAsync): |
| (WebKit::NetworkResourceLoader::continueCanAuthenticateAgainstProtectionSpace): |
| * NetworkProcess/NetworkResourceLoader.h: |
| * NetworkProcess/cache/NetworkCacheSpeculativeLoad.h: |
| * Shared/Authentication/AuthenticationManager.h: |
| * UIProcess/Downloads/DownloadProxy.cpp: |
| (WebKit::DownloadProxy::canAuthenticateAgainstProtectionSpace): |
| * UIProcess/Downloads/DownloadProxy.h: |
| * UIProcess/Downloads/DownloadProxy.messages.in: |
| |
| 2016-09-28 Joseph Pecoraro <pecoraro@apple.com> |
| |
| WKSharedAPICast should not warn about acceptable custom context menu tag values |
| https://bugs.webkit.org/show_bug.cgi?id=162597 |
| <rdar://problem/28487627> |
| |
| Reviewed by Tim Horton. |
| |
| * Shared/API/c/WKSharedAPICast.h: |
| (WebKit::toAPI): |
| (WebKit::toImpl): |
| Don't log an error when casting ContextMenu types if it is within |
| the Custom ContextMenu tag range. |
| |
| 2016-09-27 Wenson Hsieh <wenson_hsieh@apple.com> |
| |
| Adopt MediaRemote SPI to achieve desired Now Playing behavior |
| https://bugs.webkit.org/show_bug.cgi?id=162658 |
| <rdar://problem/28499358> |
| |
| Reviewed by Jer Noble. |
| |
| Plumbs Now Playing session information (for now, this is just a flag indicating whether or not there is an |
| active session) across from the web process to the UI process for testing in the form of asynchronous request/ |
| handle-response messages on the WebPage and its proxy in the UI process. |
| |
| * UIProcess/API/Cocoa/WKWebView.mm: |
| (-[WKWebView _requestActiveNowPlayingSessionInfo]): |
| (-[WKWebView _handleActiveNowPlayingSessionInfoResponse:]): |
| * UIProcess/API/Cocoa/WKWebViewPrivate.h: |
| * UIProcess/PageClient.h: |
| * UIProcess/WebPageProxy.cpp: |
| (WebKit::WebPageProxy::requestActiveNowPlayingSessionInfo): |
| (WebKit::WebPageProxy::handleActiveNowPlayingSessionInfoResponse): |
| * UIProcess/WebPageProxy.h: |
| * UIProcess/WebPageProxy.messages.in: |
| * UIProcess/mac/PageClientImpl.h: |
| * UIProcess/mac/PageClientImpl.mm: |
| (WebKit::PageClientImpl::handleActiveNowPlayingSessionInfoResponse): |
| * WebProcess/WebPage/WebPage.h: |
| * WebProcess/WebPage/WebPage.messages.in: |
| * WebProcess/WebPage/mac/WebPageMac.mm: |
| (WebKit::WebPage::requestActiveNowPlayingSessionInfo): |
| |
| 2016-09-28 Carlos Garcia Campos <cgarcia@igalia.com> |
| |
| [GTK] Switch to use GMenu internally in the context menu implementation |
| https://bugs.webkit.org/show_bug.cgi?id=162603 |
| |
| Reviewed by Michael Catanzaro. |
| |
| Switch to use GAction instead of GtkAction internally, but still keeping a GtkAction associated to the GAction, |
| because our API depends on GtkAction. |
| |
| * Shared/gtk/WebContextMenuItemGtk.cpp: |
| (WebKit::WebContextMenuItemGtk::WebContextMenuItemGtk): |
| (WebKit::WebContextMenuItemGtk::createActionIfNeeded): Create the GAction and the associated GtkAction. Ensure a |
| unique name for the GAction, since the name now matters. |
| * Shared/gtk/WebContextMenuItemGtk.h: |
| (WebKit::WebContextMenuItemGtk::gtkAction): |
| (WebKit::WebContextMenuItemGtk::gAction): |
| (WebKit::WebContextMenuItemGtk::submenuItems): Deleted. |
| * UIProcess/gtk/WebContextMenuProxyGtk.cpp: |
| (WebKit::contextMenuItemActivatedCallback): Use the GAction. |
| (WebKit::WebContextMenuProxyGtk::append): Create a new GMenuItem for the GAction. |
| (WebKit::WebContextMenuProxyGtk::buildMenu): Build a GMenu for the given items. |
| (WebKit::WebContextMenuProxyGtk::populate): Create a GMenu and bind it ot the GtkMenu. |
| (WebKit::WebContextMenuProxyGtk::WebContextMenuProxyGtk): Create the GActionGroup for the menu. |
| (WebKit::WebContextMenuProxyGtk::~WebContextMenuProxyGtk): Remove the action group from the GtkMenu. |
| * UIProcess/gtk/WebContextMenuProxyGtk.h: |
| |
| 2016-09-27 Daniel Bates <dabates@apple.com> |
| |
| NetworkLoad and PingLoad should use private inheritance |
| https://bugs.webkit.org/show_bug.cgi?id=162649 |
| |
| Reviewed by Alex Christensen. |
| |
| Make NetworkLoad privately inherit from NetworkDataTaskClient and ResourceHandleClient, |
| and make the client callbacks from these interfaces private as this class implements |
| these interfaces. |
| |
| Similarly, make PingLoad privately inherit from ResourceHandleClient. |
| |
| * NetworkProcess/NetworkLoad.h: |
| * NetworkProcess/PingLoad.h: |
| |
| 2016-09-20 Anders Carlsson <andersca@apple.com> |
| |
| PlatformEvent::m_modifiers should be an OptionSet |
| https://bugs.webkit.org/show_bug.cgi?id=162326 |
| |
| Reviewed by Daniel Bates. |
| |
| * Shared/WebEventConversion.cpp: |
| (WebKit::WebKit2PlatformMouseEvent::WebKit2PlatformMouseEvent): |
| (WebKit::WebKit2PlatformWheelEvent::WebKit2PlatformWheelEvent): |
| (WebKit::WebKit2PlatformKeyboardEvent::WebKit2PlatformKeyboardEvent): |
| (WebKit::WebKit2PlatformGestureEvent::WebKit2PlatformGestureEvent): |
| |
| 2016-09-27 Dan Bernstein <mitz@apple.com> |
| |
| [iOS] REGRESSION (r182126): Selection highlight and handles aren’t visible with WKSelectionGranularityCharacter |
| https://bugs.webkit.org/show_bug.cgi?id=162577 |
| <rdar://problem/28481984> |
| |
| Reviewed by Simon Fraser. |
| |
| * UIProcess/API/Cocoa/WKWebView.mm: |
| (-[WKWebView _uiTextSelectionRectViews]): Added this method in the WKTesting category, which |
| uses UIKit internals to get the views used for the selection highlight. |
| * UIProcess/API/Cocoa/WKWebViewPrivate.h: |
| |
| * UIProcess/ios/WKContentViewInteraction.mm: |
| (-[WKContentView _selectionClipRect]): When selection is not confined to a form control or |
| content-editable element, return the null rect to indicate no clipping, rather than |
| clipping to the empty rect at the origin. |
| |
| 2016-09-27 Jer Noble <jer.noble@apple.com> |
| |
| Remove deprecated ENCRYPTED_MEDIA implementation. |
| https://bugs.webkit.org/show_bug.cgi?id=161010 |
| |
| Reviewed by Eric Carlson. |
| |
| Remove ENABLE_ENCRYPTED_MEDIA. |
| |
| * Configurations/FeatureDefines.xcconfig: |
| |
| 2016-09-27 Chris Dumez <cdumez@apple.com> |
| |
| [WK2] Navigating to a Blob URL does not trigger a download |
| https://bugs.webkit.org/show_bug.cgi?id=162574 |
| |
| Reviewed by Darin Adler. |
| |
| Add support for converting Blob URL loads into downloads. |
| |
| * NetworkProcess/Downloads/BlobDownloadClient.cpp: |
| (WebKit::BlobDownloadClient::didReceiveResponseAsync): |
| Make sure we return a valid suggested filename because the client side (Safari) |
| does not deal with empty suggested filenames. Use "unknown" by default to |
| match the default suggested filename of non-Blob downloads. |
| |
| * NetworkProcess/Downloads/Download.cpp: |
| (WebKit::Download::startWithHandle): |
| * NetworkProcess/Downloads/Download.h: |
| * NetworkProcess/Downloads/DownloadManager.cpp: |
| (WebKit::DownloadManager::convertHandleToDownload): |
| * NetworkProcess/Downloads/DownloadManager.h: |
| * NetworkProcess/Downloads/ios/DownloadIOS.mm: |
| (WebKit::Download::startNetworkLoadWithHandle): |
| * NetworkProcess/Downloads/mac/DownloadMac.mm: |
| (WebKit::Download::startNetworkLoadWithHandle): |
| * NetworkProcess/Downloads/soup/DownloadSoup.cpp: |
| (WebKit::Download::startNetworkLoadWithHandle): |
| * NetworkProcess/NetworkConnectionToWebProcess.cpp: |
| (WebKit::NetworkConnectionToWebProcess::convertMainResourceLoadToDownload): |
| * NetworkProcess/NetworkLoad.h: |
| (WebKit::NetworkLoad::handle): |
| |
| 2016-09-27 Michael Catanzaro <mcatanzaro@igalia.com> |
| |
| [GTK] Unreviewed typo fix |
| |
| * UIProcess/API/gtk/WebKitWebInspector.cpp: |
| (webkit_web_inspector_class_init): |
| |
| 2016-09-27 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> |
| |
| [GTK] Should check whether GDK can use GL before asking it to |
| https://bugs.webkit.org/show_bug.cgi?id=162598 |
| |
| Reviewed by Michael Catanzaro. |
| |
| gdk_cairo_draw_from_gl can fail even when WebKit itself has been able to use GL (its |
| context creation code might be buggy, GL may have been disabled using GDK_GL=disable, …). |
| Unfortunately it does not have any error reporting other than a warning printed to |
| stderr, so we cannot fallback from it. We have to first check if GL can be used by GDK |
| by trying to create a context. |
| |
| See https://bugzilla.redhat.com/show_bug.cgi?id=1378987 |
| |
| * UIProcess/gtk/AcceleratedBackingStoreWayland.cpp: |
| (WebKit::AcceleratedBackingStoreWayland::canGdkUseGL): decide whether GDK can use GL by |
| trying to create a context for a GdkWindow. |
| (WebKit::AcceleratedBackingStoreWayland::paint): fallback to glReadPixels if GDK cannot |
| use GL. |
| * UIProcess/gtk/AcceleratedBackingStoreWayland.h: |
| |
| 2016-09-26 Tim Horton <timothy_horton@apple.com> |
| |
| Delete some unused code from r202695 |
| https://bugs.webkit.org/show_bug.cgi?id=162595 |
| <rdar://problem/28343784> |
| |
| Reviewed by Dan Bernstein. |
| |
| * UIProcess/API/Cocoa/WKWebView.mm: |
| (-[WKWebView _initializeWithConfiguration:]): |
| (-[WKWebView _setIsBlankBeforeFirstNonEmptyLayout:]): Deleted. |
| (-[WKWebView _didFirstVisuallyNonEmptyLayoutForMainFrame]): Deleted. |
| * UIProcess/API/Cocoa/WKWebViewInternal.h: |
| * UIProcess/ios/PageClientImplIOS.mm: |
| (WebKit::PageClientImpl::didFirstVisuallyNonEmptyLayoutForMainFrame): |
| We didn't end up needing this mechanism. |
| |
| 2016-09-26 Dan Bernstein <mitz@apple.com> |
| |
| -_webViewWebProcessDidBecomeUnresponsive: gets called when the Web process is stopped in the debugger |
| https://bugs.webkit.org/show_bug.cgi?id=162234 |
| |
| Reviewed by Sam Weinig. |
| |
| * UIProcess/Cocoa/WebProcessProxyCocoa.mm: |
| (WebKit::WebProcessProxy::platformIsBeingDebugged): Use the KERN_PROC sysctl to get the |
| process flags and check for P_TRACED. |
| |
| * UIProcess/ResponsivenessTimer.cpp: |
| (WebKit::ResponsivenessTimer::timerFired): Call the new client function |
| mayBecomeUnresponsive. If it returns false, restart the timer and bail out without |
| changing the responsiveness state. |
| |
| * UIProcess/ResponsivenessTimer.h: Declared new client function mayBecomeUnresponsive. |
| |
| * UIProcess/WebProcessProxy.cpp: |
| (WebKit::WebProcessProxy::platformIsBeingDebugged): A generic implementation that always |
| returns false. |
| (WebKit::WebProcessProxy::mayBecomeUnresponsive): Implement this new |
| ResponsivenessTimer::Client function to return true unless the process is being debugged. |
| * UIProcess/WebProcessProxy.h: |
| |
| 2016-09-26 Chris Dumez <cdumez@apple.com> |
| |
| [WK2] BlobDownloadClient should use asynchronous IPC to decide destination path |
| https://bugs.webkit.org/show_bug.cgi?id=162568 |
| |
| Reviewed by Alex Christensen. |
| |
| Use DecideDestinationWithSuggestedFilenameAsync IPC to decide the destination |
| path in the case of Blob downloads, instead of the synchronous alternative. |
| To achieve this, BlobResourceHandle was updated in WebCore to properly support |
| asynchronous callback and BlobDownloadClient was updated to use asynchronous |
| callbacks. When BlobDownloadClient::didReceiveResponseAsync() is called, we |
| now ask the WebContent process asynchronously to decide what the destination |
| path should be. Then, when we later get the destination path back from the |
| WebContent process, we create the file on disk and call |
| continueDidReceiveResponse() on the BlobResourceHandle so we start getting the |
| blob data to write. |
| |
| * NetworkProcess/Downloads/BlobDownloadClient.cpp: |
| (WebKit::BlobDownloadClient::didReceiveResponseAsync): |
| (WebKit::BlobDownloadClient::didDecideDownloadDestination): |
| * NetworkProcess/Downloads/BlobDownloadClient.h: |
| * NetworkProcess/Downloads/Download.cpp: |
| (WebKit::Download::decideDestinationWithSuggestedFilenameAsync): |
| (WebKit::Download::didDecideDownloadDestination): |
| (WebKit::Download::continueDidReceiveResponse): |
| (WebKit::Download::decideDestinationWithSuggestedFilename): Deleted. |
| * NetworkProcess/Downloads/Download.h: |
| * NetworkProcess/Downloads/DownloadManager.cpp: |
| (WebKit::DownloadManager::willDecidePendingDownloadDestination): |
| (WebKit::DownloadManager::continueDecidePendingDownloadDestination): |
| (WebKit::DownloadManager::convertHandleToDownload): Deleted. |
| * NetworkProcess/Downloads/DownloadManager.h: |
| * NetworkProcess/NetworkLoad.cpp: |
| (WebKit::NetworkLoad::continueDidReceiveResponse): |
| * NetworkProcess/NetworkProcess.cpp: |
| (WebKit::NetworkProcess::continueDecidePendingDownloadDestination): |
| * NetworkProcess/NetworkProcess.h: |
| * NetworkProcess/NetworkProcess.messages.in: |
| * UIProcess/Downloads/DownloadProxy.cpp: |
| (WebKit::DownloadProxy::decideDestinationWithSuggestedFilenameAsync): Deleted. |
| * UIProcess/Downloads/DownloadProxy.h: |
| * UIProcess/Downloads/DownloadProxy.messages.in: |
| |
| 2016-09-26 Daniel Bates <dabates@apple.com> |
| |
| Mark Ping{Handle, Load} as final |
| https://bugs.webkit.org/show_bug.cgi?id=162576 |
| |
| Reviewed by Alex Christensen. |
| |
| We should not support subclassing of a ping handle or overriding its NetworkDataTaskClient |
| callbacks because there are security/privacy implications with a ping request. We should |
| not encourage subclassing without careful consideration. |
| |
| * NetworkProcess/PingLoad.h: |
| |
| 2016-09-26 Daniel Bates <dabates@apple.com> |
| |
| Rename IOS_TEXT_AUTOSIZING to TEXT_AUTOSIZING |
| https://bugs.webkit.org/show_bug.cgi?id=162365 |
| |
| Reviewed by Simon Fraser. |
| |
| * Configurations/FeatureDefines.xcconfig: |
| * WebProcess/WebPage/WebPage.cpp: |
| (WebKit::WebPage::updatePreferences): |
| |
| 2016-09-26 Michael Catanzaro <mcatanzaro@igalia.com> |
| |
| Fix -Wformat warnings in WebLoaderStrategy |
| https://bugs.webkit.org/show_bug.cgi?id=162553 |
| |
| Reviewed by Alex Christensen. |
| |
| Consistently use PRIu64 to print uint64_t |
| |
| * NetworkProcess/Downloads/Download.cpp: |
| (WebKit::Download::didReceiveResponse): |
| (WebKit::Download::didReceiveData): |
| (WebKit::Download::didFinish): |
| (WebKit::Download::didFail): |
| (WebKit::Download::didCancel): |
| * NetworkProcess/NetworkResourceLoader.cpp: |
| (WebKit::NetworkResourceLoader::start): |
| (WebKit::NetworkResourceLoader::startNetworkLoad): |
| (WebKit::NetworkResourceLoader::setDefersLoading): |
| (WebKit::NetworkResourceLoader::abort): |
| (WebKit::NetworkResourceLoader::didReceiveBuffer): |
| (WebKit::NetworkResourceLoader::didFinishLoading): |
| (WebKit::NetworkResourceLoader::didFailLoading): |
| (WebKit::NetworkResourceLoader::continueWillSendRequest): |
| * WebProcess/Network/WebLoaderStrategy.cpp: |
| (WebKit::WebLoaderStrategy::scheduleLoad): |
| * WebProcess/Network/WebResourceLoader.cpp: |
| (WebKit::WebResourceLoader::willSendRequest): |
| (WebKit::WebResourceLoader::didReceiveResponse): |
| (WebKit::WebResourceLoader::didReceiveData): |
| (WebKit::WebResourceLoader::didFinishResourceLoad): |
| (WebKit::WebResourceLoader::didFailResourceLoad): |
| (WebKit::WebResourceLoader::didReceiveResource): |
| |
| == Rolled over to ChangeLog-2016-09-26 == |