2010-11-30 Mark Rowe Reviewed by Sam Weinig. Build fix. * Configurations/BaseTarget.xcconfig: Don't run Copy Files and Run Script build phases during installhdrs. It's not necessary, and it results in Xcode attempting to copy the plug-in shim dylib when it has not yet been built. * WebKit2.xcodeproj/project.pbxproj: Stop copying the .xcconfig file in to the application wrapper. 2010-11-30 Anders Carlsson Reviewed by Sam Weinig. Pass the plug-in process shim in DYLD_INSERT_LIBRARIES when launching the plug-in process https://bugs.webkit.org/show_bug.cgi?id=50262 * UIProcess/Launcher/mac/ProcessLauncherMac.mm: Add an EnvironmentVariables class that allows for easy modification of the environment variables passed to posix_spawn. (WebKit::ProcessLauncher::launchProcess): When spawning the plug-in process, insert the plug-in process shim. 2010-11-30 Anders Carlsson Reviewed by Sam Weinig. Add plug-in process shim https://bugs.webkit.org/show_bug.cgi?id=50261 * Configurations/PluginProcessShim.xcconfig: Added. * PluginProcess/mac/PluginProcessShim.cpp: Added. (PluginProcessShimInitialize): * PluginProcess/mac/PluginProcessShim.h: Added. * WebKit2.xcodeproj/project.pbxproj: 2010-11-30 Brian Weinstein Fix the Windows build by copying WKFindOptions.h into WebKitOutputDir with the other headers. * win/WebKit2Generated.make: 2010-11-30 Dan Bernstein Try to fix the Windows build. * win/WebKit2.vcproj: 2010-11-30 Dan Bernstein Reviewed by Anders Carlsson. Injected bundle support for WebKitTestRunner needs layoutTestController.findString https://bugs.webkit.org/show_bug.cgi?id=50238 * Shared/API/c/WKFindOptions.h: Added. Moved the definition of WKFindOptions here from WKPage.h. * Shared/API/c/WKSharedAPICast.h: (WebKit::toFindOptions): Moved from WKAPICast.h. * UIProcess/API/C/WKAPICast.h: * UIProcess/API/C/WKPage.h: * WebKit2.xcodeproj/project.pbxproj: Added WKFindOptions.h. * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp: (WKBundlePageFindString): Added. * WebProcess/InjectedBundle/API/c/WKBundlePage.h: * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::findStringFromInjectedBundle): Added. * WebProcess/WebPage/WebPage.h: 2010-11-30 Andreas Kling Reviewed by Dirk Schulze. GraphicsContext: Remove "current path" and have strokePath, fillPath and clipPath take a Path argument https://bugs.webkit.org/show_bug.cgi?id=48516 * UIProcess/FindIndicator.cpp: (WebKit::FindIndicator::draw): 2010-11-30 Steve Falkenburg Reviewed by Adam Roben. All projects on Windows should use cmd files for build events https://bugs.webkit.org/show_bug.cgi?id=50213 * win/WebKit2Common.vsprops: * win/WebKit2WebProcessCommon.vsprops: * win/WebKit2WebProcessPostBuild.cmd: Added. * win/WebKit2WebProcessPreBuild.cmd: Added. * win/WebKitPostBuild.cmd: Added. * win/WebKitPreBuild.cmd: Added. * win/WebKitPreLink.cmd: Added. 2010-11-30 Kenneth Rohde Christiansen Reviewed by Andreas Kling. [Qt] Early return if setResizesToContentsUsingLayoutSize() is called with already-set size * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::setResizesToContentsUsingLayoutSize): 2010-11-29 Dan Bernstein Reviewed by Darin Adler. WebKit2 part of adding word-prefix search options to the text search API. https://bugs.webkit.org/show_bug.cgi?id=50038 Based on a patch from Darin Adler. * Shared/WebFindOptions.h: Renamed FindOptions.h to this to account for WebCore’s new private FindOptions.h. Added and reordered FindOptions and rolled FindDirection into FindOptions. * UIProcess/API/C/WKAPICast.h: Removed toFindDirection(). (WebKit::toFindOptions): Updated for new values. * UIProcess/API/C/WKPage.cpp: (WKPageFindString): Removed separate WKFindDirection. (WKPageCountStringMatches): Replaces caseInsensitive boolean with WKFindOptions. * UIProcess/API/C/WKPage.h: Removed WKFindDirection and updated WKFindOptions. * UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::findString): Removed separate FindDirection. (WebKit::WebPageProxy::countStringMatches): Replaced caseInsensitive boolean with FindOptions. * UIProcess/WebPageProxy.h: * WebKit2.xcodeproj/project.pbxproj: Updated for the header rename. * WebProcess/WebPage/FindController.cpp: (WebKit::core): Added. Converts WebKit2 FindOptions to WebCore FindOptions. (WebKit::FindController::countStringMatches): Changed to use FindOptions. (WebKit::FindController::findString): Ditto. * WebProcess/WebPage/FindController.h: * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::findString): Ditto. (WebKit::WebPage::countStringMatches): Ditto. * WebProcess/WebPage/WebPage.h: * WebProcess/WebPage/WebPage.messages.in: Ditto. 2010-11-29 Brent Fulgham Unreviewed build fix. * win/WebKit2.vcproj: Add missing vsprops association for Debug_Cairo_CFLite target. 2010-11-29 Anders Carlsson Reviewed by Sam Weinig. Cursor does not always change back to arrow when exiting image document https://bugs.webkit.org/show_bug.cgi?id=50190 * Shared/mac/WebEventFactory.mm: (WebKit::mouseEventTypeForEvent): (WebKit::globalPointForEvent): (WebKit::pointForEvent): Handle the NSMouseEntered and NSMouseExited events. * UIProcess/API/mac/WKView.mm: (-[WKView initWithFrame:pageNamespaceRef:hiddenFromInjectedBundle:]): We want entered and exited events for this tracking area. Add mouseEntered and mouseExited handlers. 2010-11-29 Anders Carlsson Reviewed by Darin Adler. Should be able to pause and resume downloads https://bugs.webkit.org/show_bug.cgi?id=50185 * UIProcess/API/C/WKContext.h: Add didCancel callback. * UIProcess/API/C/WKDownload.cpp: (WKDownloadGetResumeData): (WKDownloadCancel): Call the respective DownloadProxy member functions. * UIProcess/API/C/WKDownload.h: * UIProcess/Downloads/DownloadProxy.cpp: (WebKit::DownloadProxy::cancel): Send Cancel to the WebProcess. (WebKit::DownloadProxy::didFail): This now takes a resumeData reference. (WebKit::DownloadProxy::didCancel): Set the resume data and call didCancel. * UIProcess/Downloads/DownloadProxy.h: (WebKit::DownloadProxy::resumeData): Return the resume data. * UIProcess/Downloads/DownloadProxy.messages.in: Add DidCancel message, Add resume data to DidFail. * UIProcess/WebDownloadClient.cpp: (WebKit::WebDownloadClient::didCancel): Call the didCancel context client function. * WebProcess/Downloads/Download.cpp: (WebKit::Download::didFail): This now takes a resume data argument as well. (WebKit::Download::didCancel): Send DidCancel. * WebProcess/Downloads/DownloadManager.cpp: (WebKit::DownloadManager::cancelDownload): Look up the download and cancel it. * WebProcess/Downloads/cf/DownloadCFNet.cpp: (WebKit::Download::cancel): Add stub. * WebProcess/Downloads/mac/DownloadMac.mm: (WebKit::Download::cancel): Cancel the download. (-[WKDownloadAsDelegate download:didFailWithError:]): Pass the resume data along. * WebProcess/Downloads/qt/DownloadQt.cpp: (WebKit::Download::cancel): Add stub. * WebProcess/WebProcess.cpp: (WebKit::WebProcess::cancelDownload): Ask the download manager to cancel the download. * WebProcess/WebProcess.h: * WebProcess/WebProcess.messages.in: Add CancelDownload message. 2010-11-29 Balazs Kelemen Reviewed by Adam Roben. [WK2] Support repeating timers https://bugs.webkit.org/show_bug.cgi?id=50024 Added boolean member for TimerBase on PLATFORM(WIN) and PLATFORM(QT) to be able to differentiate between repeating and one shot operating mode. Change the confusing signature of TimerBase::start: use a bool for selecting operating mode. * Platform/RunLoop.h: (RunLoop::TimerBase::startRepeating): (RunLoop::TimerBase::startOneShot): * Platform/mac/RunLoopMac.mm: (RunLoop::TimerBase::start): * Platform/qt/RunLoopQt.cpp: (RunLoop::TimerBase::timerFired): Only stop the timer if it is not in repeating mode. (RunLoop::TimerBase::TimerBase): (RunLoop::TimerBase::start): * Platform/win/RunLoopWin.cpp: (RunLoop::TimerBase::timerFired): Only stop the timer if it is not in repeating mode. (RunLoop::TimerBase::TimerBase): (RunLoop::TimerBase::start): 2010-11-29 Anders Carlsson Reviewed by Sam Weinig. Downloads: When the web process crashes, call error callbacks for pending downloads https://bugs.webkit.org/show_bug.cgi?id=50164 * UIProcess/API/C/WKContext.h: Add processDidCrash callback. * UIProcess/Downloads/DownloadProxy.cpp: (WebKit::DownloadProxy::~DownloadProxy): Assert that the web context is null. (WebKit::DownloadProxy::processDidClose): Call the processDidCrash callback. (WebKit::DownloadProxy::didFinish): (WebKit::DownloadProxy::didFail): Call downloadFinished. * UIProcess/WebContext.cpp: (WebKit::WebContext::processDidClose): Call processDidClose on all pending downloads. (WebKit::WebContext::downloadFinished): Remove the download proxy from the map. * UIProcess/WebDownloadClient.cpp: (WebKit::WebDownloadClient::processDidCrash): Call the processDidCrash callback function. 2010-11-29 Laszlo Gombos Reviewed by Kenneth Rohde Christiansen. [Qt] Allow pre-generation for package builds for WebKit2 https://bugs.webkit.org/show_bug.cgi?id=50139 Use a build variable for the generated directory path and set the value based on CONFIG just like for WebKit1. For non-package builds use a relative base path for the genrated directory just like for WebKit1. * DerivedSources.pro: * WebKit2.pro: 2010-11-28 Laszlo Gombos Reviewed by Kenneth Rohde Christiansen. [Qt] Move some build logic from Qt to platform independent code https://bugs.webkit.org/show_bug.cgi?id=50134 Remove the creation of the directories under $$OUTPUT_DIR/include as these will be handled by the fwheader_generator target. Remove the explicit generation of $$OUTPUT_DIR/WebKit2/generated as this is not required. * DerivedSources.pro: 2010-11-24 Brady Eidson Reviewed implicitly by John Sullivan. https://bugs.webkit.org/show_bug.cgi?id=50042 * UIProcess/mac/WebContextMenuProxyMac.mm: (-[WebUserDataWrapper initWithUserData:WebKit::]): Do the proper self = [super init] dance here. 2010-11-24 Brady Eidson Reviewed by Dan Bernstein. More of and https://bugs.webkit.org/show_bug.cgi?id=50042 WK2 Context Menu Items need a user data object and a client callback for selection. * Shared/API/c/WKContextMenuItem.cpp: (WKContextMenuItemGetUserData): (WKContextMenuItemSetUserData): * Shared/API/c/WKContextMenuItem.h: * Shared/WebContextMenuItem.cpp: (WebKit::WebContextMenuItem::userData): (WebKit::WebContextMenuItem::setUserData): * Shared/WebContextMenuItem.h: * Shared/WebContextMenuItemData.cpp: (WebKit::WebContextMenuItemData::userData): (WebKit::WebContextMenuItemData::setUserData): * Shared/WebContextMenuItemData.h: * UIProcess/API/C/WKPage.h: * UIProcess/WebPageContextMenuClient.cpp: (WebKit::WebPageContextMenuClient::customContextMenuItemSelected): Added for WK2 apps to get a callback. * UIProcess/WebPageContextMenuClient.h: * UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::contextMenuItemSelected): * UIProcess/mac/WebContextMenuProxyMac.mm: (-[WebUserDataWrapper initWithUserData:WebKit::]): Add an "APIObject" user data wrapper class to associate with the NSMenuItem. (-[WebUserDataWrapper WebKit::]): (-[WebMenuTarget forwardContextMenuAction:]): Include the user data object in the created ContextMenuItemData. (WebKit::nsMenuItemVector): 2010-11-24 Andras Becsi Reviewed by Kenneth Rohde Christiansen. Make WebKit2 compile with !ENABLE(INSPECTOR). https://bugs.webkit.org/show_bug.cgi?id=49973 * Shared/API/c/WKSharedAPICast.h: (WebKit::toAPI): (WebKit::toImpl): * UIProcess/API/C/WKAPICast.h: * UIProcess/API/C/WKInspector.cpp: * UIProcess/API/C/WKInspector.h: * UIProcess/API/C/WKPage.cpp: * UIProcess/API/C/WKPage.h: * UIProcess/WebInspectorProxy.cpp: * UIProcess/WebInspectorProxy.h: * UIProcess/WebInspectorProxy.messages.in: * UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::close): (WebKit::WebPageProxy::didReceiveMessage): (WebKit::WebPageProxy::didReceiveSyncMessage): (WebKit::WebPageProxy::processDidCrash): * UIProcess/WebPageProxy.h: * UIProcess/mac/WebInspectorProxyMac.mm: * UIProcess/qt/WebInspectorProxyQt.cpp: * UIProcess/win/WebInspectorProxyWin.cpp: * WebProcess/WebCoreSupport/WebInspectorClient.cpp: * WebProcess/WebCoreSupport/WebInspectorClient.h: * WebProcess/WebCoreSupport/WebInspectorFrontendClient.cpp: * WebProcess/WebCoreSupport/WebInspectorFrontendClient.h: * WebProcess/WebPage/WebInspector.cpp: * WebProcess/WebPage/WebInspector.h: * WebProcess/WebPage/WebInspector.messages.in: * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::WebPage): (WebKit::WebPage::close): (WebKit::WebPage::windowIsFocused): (WebKit::WebPage::didReceiveMessage): * WebProcess/WebPage/WebPage.h: * WebProcess/WebPage/qt/WebInspectorQt.cpp: * WebProcess/WebPage/win/WebInspectorWin.cpp: 2010-11-24 Andreas Kling Reviewed by Kenneth Rohde Christiansen. [Qt][WK2] Make deep copies of tile images We need the tile images we get from UpdateChunk::createImage() to persist, so we should take a copy() of them. * UIProcess/qt/TiledDrawingAreaTileQt.cpp: (WebKit::TiledDrawingAreaTile::updateFromChunk): 2010-11-24 Andreas Kling Reviewed by Kenneth Rohde Christiansen. [Qt] Fix uninitialized variable in QGraphicsWKViewPrivate Always initialize QGWKVP::m_isChangingScale in the constructor. * UIProcess/API/qt/qgraphicswkview.cpp: (QGraphicsWKViewPrivate::QGraphicsWKViewPrivate): 2010-11-23 Kenneth Rohde Christiansen Reviewed by Andreas Kling. Adapt to setShouldDelegateScrolling not being a real setting anymore. We now similarily to setUseFixedLayout and setPaintEntireContents set it on the FrameView wen transitioning to a new page, etc. * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp: (WebKit::WebFrameLoaderClient::transitionToCommittedForNewPage): * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::setResizesToContentsUsingLayoutSize): 2010-11-22 Adam Roben Use paths relative to $WebKitVSPropsRedirectionDir to access shared .vsprops files Apple's Windows build allows placing header files and import libraries for WebKit's dependencies (CoreGraphics, CFNetwork, SQLite, etc.) outside the source tree via the $WebKitLibrariesDir environment variable. This is both required for production builds and convenient for Apple-internal developer builds. Apple's production builds also require that WebKit's shared .vsprops files be accessed relative to $WebKitLibrariesDir. In production builds, the files are copied into that directory tree by the WebKitLibraries/win/tools/WinTools.make file. In Apple-internal developer builds, the copying is done by JavaScriptCore/JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCoreGenerated.make. This .vsprops copying is problematic in one very important case: when a developer updates their source tree and then tries to build. Visual Studio only reads .vsprops files when a project is first loaded. So, when Visual Studio is first opened after the .vsprops files are updated, it reads in the old files that were already residing in $WebKitLibrariesDir. When a build is started, JavaScriptCoreGenerated.make copies the new .vsprops files into $WebKitLibrariesDir, but Visual Studio will not pick up the changes. The rest of the build will proceed with out-of-date .vsprops files, which will likely result in a build failure. To fix this, we now use normal relative paths to access the .vsprops files in the source tree rather than in $WebKitLibrariesDir, but prefix those paths with a new environment variable, $WebKitVSPropsRedirectionDir. In developer builds, this environment variable is unset, so the normal relative paths are used to read the .vsprops files out of the source tree directly. In production builds, this environment variable is set to a fake directory that will cause the .vsprops files in $WebKitLibrariesDir to be found when the relative path is resolved. For example, JavaScriptCore.vcproj uses this path for FeatureDefines.vsprops: $(WebKitVSPropsRedirectionDir)..\..\..\WebKitLibraries\win\tools\vsprops\FeatureDefines.vsprops In developer builds, where $WebKitVSPropsRedirectionDir is unset, this will point to the files in WebKitLibraries\win\tools\vsprops in the source tree. In production builds, JavaScriptCore.make sets $WebKitVSPropsRedirectionDir to "$(SRCROOT)\AppleInternal\tools\vsprops\OpenSource\1\2\3\", so the full path for FeatureDefines.vsprops becomes: $(SRCROOT)\AppleInternal\tools\vsprops\OpenSource\1\2\3\..\..\..\WebKitLibraries\win\tools\vsprops\FeatureDefines.vsprops which resolves to: $(SRCROOT)\AppleInternal\tools\vsprops\OpenSource\WebKitLibraries\win\tools\vsprops\FeatureDefines.vsprops (We rely on the fact that Windows doesn't care whether the directories "1", "2", and "3" actually exist since they are matched by an equal number of ".." path components.) Note that Visual Studio still won't pick up changes made to .vsprops files while Visual Studio is open, but that problem hasn't seemed to cause developers many headaches so far. Fixes Windows build fails mysteriously when .vsprops files are updated Reviewed by Dave Hyatt. * win/WebKit2.make: Set $WebKitVSPropsRedirectionDir so that production builds can find the .vsprops files. * win/WebKit2.vcproj: * win/WebKit2WebProcess.vcproj: Changed to use paths relative to $WebKitVSPropsRedirectionDir to access shared .vsprops files. 2010-11-22 Kenneth Rohde Christiansen Reviewed by Andreas Kling. Make WebKit2 compile with ENABLE_JAVASCRIPT_DEBUGGER=0 * WebProcess/WebPage/WebInspector.cpp: Add missing ENABLE(JAVASCRIPT_DEBUGGER) guards. (WebKit::WebInspector::startJavaScriptDebugging): (WebKit::WebInspector::stopJavaScriptDebugging): (WebKit::WebInspector::startJavaScriptProfiling): (WebKit::WebInspector::stopJavaScriptProfiling): 2010-11-21 Sam Weinig Reviewed by Dan Bernstein. Textareas should be resizable by default https://bugs.webkit.org/show_bug.cgi?id=49892 Test: WebKit2/WKPreferences * Shared/WebPreferencesStore.cpp: (WebKit::WebPreferencesStore::WebPreferencesStore): (WebKit::WebPreferencesStore::encode): (WebKit::WebPreferencesStore::decode): * Shared/WebPreferencesStore.h: Add textAreasAreResizable bit. * UIProcess/API/C/WKPreferences.cpp: (WKPreferencesSetJavaEnabled): (WKPreferencesGetJavaEnabled): Fix typo, WKPRe... -> WKPre... (WKPreferencesSetMinimumFontSize): (WKPreferencesGetMinimumFontSize): Fix comment to correctly reflect that the default minimumFontSize is 0, not 1. (WKPreferencesSetTextAreasAreResizable): (WKPreferencesGetTextAreasAreResizable): * UIProcess/API/C/WKPreferences.h: Add API. * UIProcess/API/C/WKPreferencesPrivate.h: Don't use PLATFORM in API headers. * UIProcess/WebPreferences.cpp: (WebKit::WebPreferences::setTextAreasAreResizable): (WebKit::WebPreferences::textAreasAreResizable): * UIProcess/WebPreferences.h: * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::updatePreferences): Pipe bit through to the WebProcess and onto WebCore::Settings. 2010-11-19 Zalan Bujtas Reviewed by Andreas Kling. WebUIClient::createNewPage() expects a retained WKPageRef. https://bugs.webkit.org/show_bug.cgi?id=48549 * UIProcess/API/qt/ClientImpl.cpp: (qt_wk_createNewPage): 2010-11-19 Anders Carlsson Reviewed by Sam Weinig. Add a didFail WKContextDownloadClient callback https://bugs.webkit.org/show_bug.cgi?id=49847 * UIProcess/API/C/WKContext.h: Add didFail callback. * UIProcess/Downloads/DownloadProxy.cpp: (WebKit::DownloadProxy::didFail): Call WebDownloadClient::didFail. * UIProcess/WebDownloadClient.cpp: (WebKit::WebDownloadClient::didFail): Call the didFail client function. 2010-11-19 Anders Carlsson Reviewed by Sam Weinig. Extend sandbox when downloading files https://bugs.webkit.org/show_bug.cgi?id=49844 * Platform/CoreIPC/HandleMessage.h: (CoreIPC::callMemberFunction): Add new overload. * UIProcess/Downloads/DownloadProxy.cpp: (WebKit::DownloadProxy::decideDestinationWithSuggestedFilename): Create a sandbox extension handle if necessary. * UIProcess/Downloads/DownloadProxy.messages.in: Add a sandbox extension handle out parameter to the DecideDestinationWithSuggestedFilename message. * WebProcess/Downloads/Download.cpp: (WebKit::Download::decideDestinationWithSuggestedFilename): Create and consume the returned sandbox extension handle. (WebKit::Download::didFinish): (WebKit::Download::didFail): Invalidate the sandbox extension handles. * WebProcess/Downloads/mac/DownloadMac.mm: (-[WKDownloadAsDelegate download:shouldDecodeSourceDataOfMIMEType:]): Whoops, fix inverted logic. 2010-11-19 Steve Falkenburg Reviewed by Adam Roben. Add Debug_Cairo_CFLite and Release_Cairo_CFLite configurations for all vcproj files https://bugs.webkit.org/show_bug.cgi?id=49819 * win/WebKit2.vcproj: * win/WebKit2Generated.vcproj: * win/WebKit2WebProcess.vcproj: * win/WebKit2WebProcessCommon.vsprops: 2010-11-19 Brady Eidson Reviewed by Darin Adler. More of and https://bugs.webkit.org/show_bug.cgi?id=49836 Add WebKit2 API relevant to customization of context menus * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp: (WKBundleFrameAllowsFollowingLink): * WebProcess/InjectedBundle/API/c/WKBundleFrame.h: * WebProcess/WebPage/WebFrame.cpp: (WebKit::WebFrame::allowsFollowingLink): * WebProcess/WebPage/WebFrame.h: 2010-11-19 Brady Eidson Reviewed by Darin Adler. and https://bugs.webkit.org/show_bug.cgi?id=49836 Add WebKit2 API relevant to customization of context menus Most of this is just exposing already-existing concepts in API. * Shared/API/c/WKURLRequest.cpp: (WKURLRequestCreateWithWKURL): * Shared/API/c/WKURLRequest.h: * Shared/WebURLRequest.cpp: (WebKit::WebURLRequest::create): * Shared/WebURLRequest.h: * WebProcess/InjectedBundle/API/c/WKBundleHitTestResult.cpp: (WKBundleHitTestResultCopyAbsoluteImageURL): (WKBundleHitTestResultCopyAbsoluteMediaURL): (WKBundleHitTestResultGetImageRect): (WKBundleHitTestResultGetIsSelected): * WebProcess/InjectedBundle/API/c/WKBundleHitTestResult.h: * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp: (WKBundlePageHasLocalDataForURL): (WKBundlePageCanHandleRequest): * WebProcess/InjectedBundle/API/c/WKBundlePage.h: * WebProcess/InjectedBundle/InjectedBundleHitTestResult.cpp: (WebKit::InjectedBundleHitTestResult::absoluteImageURL): (WebKit::InjectedBundleHitTestResult::absoluteMediaURL): (WebKit::InjectedBundleHitTestResult::imageRect): (WebKit::InjectedBundleHitTestResult::isSelected): * WebProcess/InjectedBundle/InjectedBundleHitTestResult.h: * WebProcess/WebPage/WebContextMenu.cpp: (WebKit::WebContextMenu::show): * WebProcess/WebPage/WebPage.h: * WebProcess/WebPage/mac/WebPageMac.mm: (WebKit::WebPage::hasLocalDataForURL): (WebKit::WebPage::canHandleRequest): * WebProcess/WebPage/qt/WebPageQt.cpp: (WebKit::WebPage::hasLocalDataForURL): Stubbed for now. (WebKit::WebPage::canHandleRequest): Ditto. * WebProcess/WebPage/win/WebPageWin.cpp: (WebKit::WebPage::hasLocalDataForURL): Ditto. (WebKit::WebPage::canHandleRequest): Ditto. 2010-11-19 Darin Adler Reviewed by Sam Weinig. Need a way to clear disk cache from WebContext https://bugs.webkit.org/show_bug.cgi?id=49820 * UIProcess/API/C/WKContext.cpp: (WKContextClearResourceCaches): Added. (WKContextClearApplicationCache): Added. * UIProcess/API/C/WKContext.h: * UIProcess/WebContext.cpp: (WebKit::WebContext::clearResourceCaches): Added. (WebKit::WebContext::clearApplicationCache): Added. * UIProcess/WebContext.h: * WebProcess/WebProcess.cpp: (WebKit::WebProcess::clearResourceCaches): Added. (WebKit::WebProcess::clearApplicationCache): Added. * WebProcess/WebProcess.h: * WebProcess/WebProcess.messages.in: Added messages. * WebProcess/mac/WebProcessMac.mm: (WebKit::WebProcess::platformClearResourceCaches): Added. * WebProcess/qt/WebProcessQt.cpp: (WebKit::WebProcess::platformClearResourceCaches): Added. * WebProcess/win/WebProcessWin.cpp: (WebKit::WebProcess::platformClearResourceCaches): Added. 2010-11-19 Anders Carlsson Reviewed by Sam Weinig. Implement support for loading local files https://bugs.webkit.org/show_bug.cgi?id=49828 * UIProcess/WebPageProxy.cpp: (WebKit::initializeSandboxExtensionHandle): Given an URL, create a sandbox extension if it's a local file URL. (WebKit::WebPageProxy::loadURL): (WebKit::WebPageProxy::loadURLRequest): Pass along sandbox extension handles to the LoadURL and LoadURLRequest messages. * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp: (WebKit::WebFrameLoaderClient::dispatchDidStartProvisionalLoad): Call SandboxExtensionTracker::didStartProvisionalLoad. (WebKit::WebFrameLoaderClient::dispatchDidCommitLoad): Call SandboxExtensionTracker::didCommitProvisionalLoad. (WebKit::WebFrameLoaderClient::dispatchDidFailProvisionalLoad): Call SandboxExtensionTracker::didFailProvisionalLoad. * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::~WebPage): Invalidate the sandbox extension tracker. (WebKit::WebPage::close): Invalidate the sandbox extension tracker. (WebKit::WebPage::loadURL): (WebKit::WebPage::loadURLRequest): Pass the sandbox extension handle to the sandbox extension tracker. (WebKit::WebPage::SandboxExtensionTracker::~SandboxExtensionTracker): Invalidate the sandbox extension tracker. (WebKit::WebPage::SandboxExtensionTracker::invalidate): invalidate ell the sandbox extensions. (WebKit::WebPage::SandboxExtensionTracker::beginLoad): Create a sandbox extension and store it as the "pending provisional extension". (WebKit::WebPage::SandboxExtensionTracker::didStartProvisionalLoad): Consume the pending provisional extension and make it the provisional extension. (WebKit::WebPage::SandboxExtensionTracker::didCommitProvisionalLoad): Invalidate the committed extension and make the provisional extension the committed extension. (WebKit::WebPage::SandboxExtensionTracker::didFailProvisionalLoad): Invalidate the provisional extension. * WebProcess/WebPage/WebPage.messages.in: Add SandboxExtension::Handle parameters to LoadURL and LoadURLRequest. 2010-11-19 Anders Carlsson Reviewed by Darin Adler. Make it possible to encode null SandboxExtension handles https://bugs.webkit.org/show_bug.cgi?id=49825 * Shared/mac/SandboxExtensionMac.mm: (WebKit::SandboxExtension::Handle::encode): If there's no underlying sandbox extension, just encode an empty byte array. (WebKit::SandboxExtension::Handle::decode): If the decoded byte array is empty, don't try to create a sandbox extension. (WebKit::SandboxExtension::create): If the handle is null, return null. (WebKit::SandboxExtension::consume): Consuming shuld not null out the underlying sandbox extension object. 2010-11-19 Steve Falkenburg Reviewed by Darin Adler. Normalize Cairo/CFLite project/solution configuration names https://bugs.webkit.org/show_bug.cgi?id=49818 * win/WebKit2.vcproj: * win/WebKit2WebProcess.vcproj: 2010-11-19 Anders Carlsson Reviewed by Sam Weinig. Add SandboxExtension abstraction and use it for the injected bundle extension https://bugs.webkit.org/show_bug.cgi?id=49817 * Shared/SandboxExtension.h: Add SandboxExtension abstraction. * Shared/WebProcessCreationParameters.cpp: (WebKit::WebProcessCreationParameters::encode): (WebKit::WebProcessCreationParameters::decode): * Shared/WebProcessCreationParameters.h: Instead of encoding/decoding a token, encode/decode the sandbox extension handle. * Shared/mac/SandboxExtensionMac.mm: Added. Add Mac implementation of SandboxExtension. * UIProcess/WebContext.cpp: (WebKit::WebContext::ensureWebProcess): Create a SandboxExtension::Handle object. * WebKit2.xcodeproj/project.pbxproj: Add new files. * WebProcess/InjectedBundle/InjectedBundle.h: (WebKit::InjectedBundle::setSandboxExtension): Set the sandbox extension. * WebProcess/InjectedBundle/mac/InjectedBundleMac.cpp: (WebKit::InjectedBundle::load): Consume the sandbox extension. * WebProcess/WebProcess.cpp: (WebKit::WebProcess::initializeWebProcess): Create a sandbox extension and set it on the injected bundle. 2010-11-18 Steve Falkenburg Reviewed by Adam Roben. Windows vcproj configuration names should be normalized across projects https://bugs.webkit.org/show_bug.cgi?id=49776 * win/WebKit2.submit.sln: * win/WebKit2Generated.vcproj: * win/WebKit2GeneratedCommon.vsprops: Added. 2010-11-18 Anders Carlsson Reviewed by Adam Roben. Crash in WebKit::PluginView::manualLoadDidReceiveResponse when navigating to a .wav file in WebKit2 on Mac https://bugs.webkit.org/show_bug.cgi?id=48559 Add null checks for m_plugin. * WebProcess/Plugins/PluginView.cpp: (WebKit::PluginView::manualLoadDidReceiveResponse): (WebKit::PluginView::manualLoadDidReceiveData): (WebKit::PluginView::manualLoadDidFinishLoading): (WebKit::PluginView::manualLoadDidFail): 2010-11-18 Mark Rowe Rubber-stamped by Adam Roben. Enable compaction support. * Configurations/WebKit2.xcconfig: 2010-11-18 Brian Weinstein Reviewed by Adam Roben. WebKit2: Safari shouldn't auto-activate plug-ins in background tabs. https://bugs.webkit.org/show_bug.cgi?id=49770 Add an API on Windows to call setIsInWindow, which calls through to WebPage::setIsInWindow. Remove the !PLATFORM(WIN) check in WebPage, so we don't automatically start plugins that are loaded in background tabs. * UIProcess/API/C/win/WKView.cpp: (WKViewSetIsInWindow): Call through to WebView::setIsInWindow. * UIProcess/API/C/win/WKView.h: * UIProcess/win/WebView.cpp: (WebKit::WebView::setIsInWindow): Call through to WebPage::setIsInWindow. * UIProcess/win/WebView.h: * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::WebPage): Remove the !PLATFORM(WIN) check and update the comment. 2010-11-18 Darin Adler * WebProcess/WebPage/WebPage.cpp: Fix build by rolling out a change. 2010-11-18 Darin Adler Reviewed by Kevin Decker. REGRESSION (WebKit2): Plug-ins and