1. 21 Jan, 2014 9 commits
    • commit-queue@webkit.org's avatar
      Unreviewed, rolling out r162452. · 4acc4a4b
      commit-queue@webkit.org authored
      http://trac.webkit.org/changeset/162452
      https://bugs.webkit.org/show_bug.cgi?id=127366
      
      broke a few tests on all Mac WebKit1 bots (Requested by
      thorton on #webkit).
      
      Source/WebCore:
      
      * WebCore.exp.in:
      * page/FocusController.cpp:
      (WebCore::FocusController::FocusController):
      (WebCore::FocusController::setFocused):
      (WebCore::FocusController::setActive):
      (WebCore::FocusController::setContentIsVisible):
      * page/FocusController.h:
      (WebCore::FocusController::isActive):
      (WebCore::FocusController::isFocused):
      * page/Page.cpp:
      (WebCore::Page::Page):
      (WebCore::Page::setIsInWindow):
      (WebCore::Page::setIsVisuallyIdle):
      (WebCore::Page::setIsVisible):
      (WebCore::Page::visibilityState):
      (WebCore::Page::hiddenPageCSSAnimationSuspensionStateChanged):
      * page/Page.h:
      (WebCore::Page::isVisible):
      (WebCore::Page::isInWindow):
      
      Source/WebKit/mac:
      
      * WebView/WebView.mm:
      (-[WebView _windowWillOrderOnScreen:]):
      (-[WebView _windowWillOrderOffScreen:]):
      
      Source/WebKit2:
      
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::WebPage):
      (WebKit::WebPage::setActive):
      (WebKit::WebPage::setViewIsVisible):
      (WebKit::WebPage::setFocused):
      (WebKit::WebPage::setIsInWindow):
      (WebKit::WebPage::setViewStateInternal):
      (WebKit::WebPage::setIsVisuallyIdle):
      * WebProcess/WebPage/WebPage.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162467 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4acc4a4b
    • commit-queue@webkit.org's avatar
      Trivial Session API cleanup. · c3f31ab5
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=127356
      
      Patch by Martin Hock <mhock@apple.com> on 2014-01-21
      Reviewed by Alexey Proskuryakov.
      
      * UIProcess/API/C/WKSessionRef.cpp:
      (WKSessionIsEphemeral):
      * UIProcess/API/C/WKSessionRef.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162465 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c3f31ab5
    • simon.fraser@apple.com's avatar
      Log an error for a common cause of WebProcess early launch crashing in... · 215375d8
      simon.fraser@apple.com authored
      Log an error for a common cause of WebProcess early launch crashing in misconfigured development builds
      https://bugs.webkit.org/show_bug.cgi?id=127121
      
      Reviewed by Anders Carlsson.
      
      A common cause of early WebProcess crashes during development is a null return
      from CFBundleGetValueForInfoDictionaryKey(), so log and return an error in
      this case rather than passing a null C string to dlsym().
      
      * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessMain.mm:
      (WebKit::BootstrapMain):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162461 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      215375d8
    • timothy_horton@apple.com's avatar
      Sort headers after the rename that happened in r162454. · f4bf3112
      timothy_horton@apple.com authored
      * UIProcess/mac/RemoteLayerTreeHost.mm:
      * WebProcess/WebPage/mac/PlatformCALayerRemoteCustom.mm:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162458 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f4bf3112
    • timothy_horton@apple.com's avatar
      Address late review naming comments after r162453. · 8736f0e1
      timothy_horton@apple.com authored
      * UIProcess/API/mac/WKView.mm:
      And, fix the build by adding an include I accidentally missed.
      
      * UIProcess/mac/RemoteLayerTreeHost.mm:
      * WebProcess/WebPage/mac/PlatformCALayerRemoteCustom.mm:
      
      * WebCore.xcodeproj/project.pbxproj:
      * platform/graphics/ca/mac/PlatformCALayerMac.mm:
      * platform/graphics/mac/CALayerWebAdditions.h: Removed.
      * platform/graphics/mac/CALayerWebAdditions.mm: Removed.
      * platform/graphics/mac/WebCoreCALayerExtras.h: Added.
      * platform/graphics/mac/WebCoreCALayerExtras.mm: Added.
      Rename.
      
      (-[CALayer web_disableAllActions]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162454 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8736f0e1
    • timothy_horton@apple.com's avatar
      Keep CALayer implicit animation disabling code in a single place · fdfc3bb9
      timothy_horton@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=127355
      
      Reviewed by Simon Fraser.
      
      * WebCore.xcodeproj/project.pbxproj:
      Add CALayerWebAdditions.{h,mm}.
      
      * platform/graphics/ca/mac/PlatformCALayerMac.mm:
      (PlatformCALayerMac::commonInit):
      Remove nullActionsDictionary() and use [CALayer(WebAdditions) web_disableAllActions] instead.
      
      * platform/graphics/mac/CALayerWebAdditions.h: Added.
      * platform/graphics/mac/CALayerWebAdditions.mm: Added.
      (-[CALayer web_disableAllActions]):
      Added. Disable all implicit actions on the layer.
      
      * Shared/mac/RemoteLayerTreePropertyApplier.h:
      * Shared/mac/RemoteLayerTreePropertyApplier.mm:
      Remove disableActionsForLayer.
      
      * UIProcess/API/mac/WKView.mm:
      (-[WKView _rootLayer]):
      Disable actions on the root layer. It doesn't need them, and currently
      isn't affected by implicit animations, but future patches which animate
      the root layer will benefit from this.
      
      * UIProcess/mac/RemoteLayerTreeHost.mm:
      (WebKit::RemoteLayerTreeHost::createLayer):
      Use web_disableAllActions instead of disableActionsForLayer.
      
      * WebKit2.xcodeproj/project.pbxproj:
      * WebProcess/WebPage/mac/PlatformCALayerRemoteCustom.mm: Renamed from Source/WebKit2/WebProcess/WebPage/mac/PlatformCALayerRemoteCustom.cpp.
      (PlatformCALayerRemoteCustom::PlatformCALayerRemoteCustom):
      (PlatformCALayerRemoteCustom::~PlatformCALayerRemoteCustom):
      (PlatformCALayerRemoteCustom::hostingContextID):
      Use web_disableAllActions instead of disableActionsForLayer.
      This requires making this file Obj-C++ but that's OK since it's Mac/iOS only.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162453 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fdfc3bb9
    • barraclough@apple.com's avatar
      Change Page, FocusController to use ViewState · 3ffc4f37
      barraclough@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=126533
      
      Reviewed by Tim Horton.
      
      These classes currently maintain a set of separate fields to represent the view state;
      combine these into a single field, and allow WebPage to send the combined update rather
      than individual changes.
      
      Maintain existing interface for WebKit1 clients.
      
      Source/WebCore: 
      
      * WebCore.exp.in:
          - Added WebCore::setViewState, removed WebCore::setIsVisuallyIdle.
      * page/FocusController.cpp:
      (WebCore::FocusController::FocusController):
          - Initialize combined m_viewState.
      (WebCore::FocusController::setFocused):
          - Calls setViewState.
      (WebCore::FocusController::setFocusedInternal):
          - setFocused -> setFocusedInternal.
      (WebCore::FocusController::setViewState):
          - Added, update all ViewState flags.
      (WebCore::FocusController::setActive):
          - Calls setViewState.
      (WebCore::FocusController::setActiveInternal):
          - setActive -> setActiveInternal.
      (WebCore::FocusController::setContentIsVisible):
          - Calls setViewState.
      (WebCore::FocusController::setContentIsVisibleInternal):
          - setContentIsVisible -> setContentIsVisibleInternal.
      * page/FocusController.h:
      (WebCore::FocusController::isActive):
      (WebCore::FocusController::isFocused):
      (WebCore::FocusController::contentIsVisible):
          - Implemented in terms of ViewState.
      * page/Page.cpp:
      (WebCore::Page::Page):
          - Initialize using PageInitialViewState.
      (WebCore::Page::setIsInWindow):
          - Calls setViewState.
      (WebCore::Page::setIsInWindowInternal):
          - setIsInWindow -> setIsInWindowInternal.
      (WebCore::Page::setIsVisuallyIdleInternal):
          - setIsVisuallyIdle -> setIsVisuallyIdleInternal.
      (WebCore::Page::setViewState):
          - Added, update all ViewState flags, including FocusController.
      (WebCore::Page::setIsVisible):
          - Calls setViewState.
      (WebCore::Page::setIsVisibleInternal):
          - setIsVisible -> setIsVisibleInternal.
      (WebCore::Page::visibilityState):
          - m_isVisible -> isVisible()
      (WebCore::Page::hiddenPageCSSAnimationSuspensionStateChanged):
          - m_isVisible -> isVisible()
      * page/Page.h:
      (WebCore::Page::isVisible):
      (WebCore::Page::isInWindow):
          - Implemented in terms of ViewState.
      (WebCore::Page::scriptedAnimationsSuspended):
          - Combined member fields into ViewState::Flags.
      
      Source/WebKit/mac: 
      
      * WebView/WebView.mm:
      (-[WebView _windowWillOrderOnScreen:]):
      (-[WebView _windowWillOrderOffScreen:]):
          - remove calls to FocusController::setContentIsVisible, these are redundant
            (this is handled when page visibility is set).
      
      Source/WebKit2: 
      
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::WebPage):
          - Combined separate calls to Page::setViewState.
      (WebKit::WebPage::updateIsInWindow):
          - Simplied from setIsInWindow.
      (WebKit::WebPage::setViewState):
          - Combined separate calls to Page::setViewState.
      * WebProcess/WebPage/WebPage.h:
          - Declare updateIsInWindow.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162452 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3ffc4f37
    • carlosgc@webkit.org's avatar
      [SOUP] Implement CUSTOM PROTOCOLS · 6188bb92
      carlosgc@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=125583
      
      Reviewed by Anders Carlsson.
      
      Add new classes to implement CustomProtocols for soup. The
      implementation is the same, but using the CustomProtocol API and
      messages. The current implementation can be removed once all ports
      using soup switch to using CustomProtocols.
      
      * GNUmakefile.am: Add new include paths.
      * GNUmakefile.list.am: Add new files to compilation.
      * PlatformGTK.cmake: Add new files to compilation.
      * Shared/API/c/soup/WKBaseSoup.h:
      * Shared/APIObject.h:
      * Shared/Network/CustomProtocols/CustomProtocolManager.h:
      * Shared/Network/CustomProtocols/soup/CustomProtocolManagerImpl.cpp: Added.
      (WebKit::generateCustomProtocolID):
      (WebKit::WebSoupRequestAsyncData::WebSoupRequestAsyncData):
      (WebKit::WebSoupRequestAsyncData::~WebSoupRequestAsyncData):
      (WebKit::WebSoupRequestAsyncData::requestFailed):
      (WebKit::WebSoupRequestAsyncData::releaseTask):
      (WebKit::CustomProtocolManagerImpl::CustomProtocolManagerImpl):
      (WebKit::CustomProtocolManagerImpl::~CustomProtocolManagerImpl):
      (WebKit::CustomProtocolManagerImpl::registerScheme):
      (WebKit::CustomProtocolManagerImpl::supportsScheme):
      (WebKit::CustomProtocolManagerImpl::didFailWithError):
      (WebKit::CustomProtocolManagerImpl::didLoadData):
      (WebKit::CustomProtocolManagerImpl::didReceiveResponse):
      (WebKit::CustomProtocolManagerImpl::didFinishLoading):
      (WebKit::CustomProtocolManagerImpl::send):
      (WebKit::CustomProtocolManagerImpl::finish):
      * Shared/Network/CustomProtocols/soup/CustomProtocolManagerImpl.h: Added.
      * Shared/Network/CustomProtocols/soup/CustomProtocolManagerSoup.cpp:
      (WebKit::CustomProtocolManager::CustomProtocolManager):
      (WebKit::CustomProtocolManager::initialize):
      (WebKit::CustomProtocolManager::registerScheme):
      (WebKit::CustomProtocolManager::supportsScheme):
      (WebKit::CustomProtocolManager::didFailWithError):
      (WebKit::CustomProtocolManager::didLoadData):
      (WebKit::CustomProtocolManager::didReceiveResponse):
      (WebKit::CustomProtocolManager::didFinishLoading):
      * Shared/WebProcessCreationParameters.cpp:
      (WebKit::WebProcessCreationParameters::encode):
      (WebKit::WebProcessCreationParameters::decode):
      * Shared/WebProcessCreationParameters.h:
      * UIProcess/API/C/soup/WKAPICastSoup.h:
      * UIProcess/API/C/soup/WKSoupCustomProtocolRequestManager.cpp: Copied from Source/WebKit2/UIProcess/soup/WebContextSoup.cpp.
      (WKSoupCustomProtocolRequestManagerGetTypeID):
      (WKSoupCustomProtocolRequestManagerSetClient):
      * UIProcess/API/C/soup/WKSoupCustomProtocolRequestManager.h: Added.
      * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h:
      * UIProcess/Network/CustomProtocols/mac/CustomProtocolManagerProxyMac.mm:
      (WebKit::CustomProtocolManagerProxy::CustomProtocolManagerProxy):
      * UIProcess/Network/CustomProtocols/soup/CustomProtocolManagerProxySoup.cpp:
      (WebKit::CustomProtocolManagerProxy::CustomProtocolManagerProxy):
      (WebKit::CustomProtocolManagerProxy::startLoading):
      (WebKit::CustomProtocolManagerProxy::stopLoading):
      * UIProcess/Network/CustomProtocols/soup/WebSoupCustomProtocolRequestManager.cpp: Added.
      (WebKit::WebSoupCustomProtocolRequestManager::supplementName):
      (WebKit::WebSoupCustomProtocolRequestManager::create):
      (WebKit::WebSoupCustomProtocolRequestManager::WebSoupCustomProtocolRequestManager):
      (WebKit::WebSoupCustomProtocolRequestManager::~WebSoupCustomProtocolRequestManager):
      (WebKit::WebSoupCustomProtocolRequestManager::initializeClient):
      (WebKit::WebSoupCustomProtocolRequestManager::contextDestroyed):
      (WebKit::WebSoupCustomProtocolRequestManager::processDidClose):
      (WebKit::WebSoupCustomProtocolRequestManager::refWebContextSupplement):
      (WebKit::WebSoupCustomProtocolRequestManager::derefWebContextSupplement):
      (WebKit::WebSoupCustomProtocolRequestManager::registerSchemeForCustomProtocol):
      (WebKit::WebSoupCustomProtocolRequestManager::unregisterSchemeForCustomProtocol):
      (WebKit::WebSoupCustomProtocolRequestManager::startLoading):
      (WebKit::WebSoupCustomProtocolRequestManager::stopLoading):
      (WebKit::WebSoupCustomProtocolRequestManager::didReceiveResponse):
      (WebKit::WebSoupCustomProtocolRequestManager::didLoadData):
      (WebKit::WebSoupCustomProtocolRequestManager::didFailWithError):
      (WebKit::WebSoupCustomProtocolRequestManager::didFinishLoading):
      * UIProcess/Network/CustomProtocols/soup/WebSoupCustomProtocolRequestManager.h: Added.
      (WebKit::WebSoupCustomProtocolRequestManager::registeredSchemesForCustomProtocols):
      * UIProcess/Network/CustomProtocols/soup/WebSoupCustomProtocolRequestManagerClient.cpp: Added.
      (WebKit::WebSoupCustomProtocolRequestManagerClient::startLoading):
      (WebKit::WebSoupCustomProtocolRequestManagerClient::stopLoading):
      * UIProcess/Network/CustomProtocols/soup/WebSoupCustomProtocolRequestManagerClient.h: Added.
      * UIProcess/Network/NetworkProcessProxy.cpp:
      (WebKit::NetworkProcessProxy::NetworkProcessProxy):
      * UIProcess/WebContext.cpp:
      (WebKit::WebContext::WebContext):
      * UIProcess/WebPageProxy.cpp:
      * UIProcess/WebPageProxy.h:
      * UIProcess/WebPageProxy.messages.in:
      * UIProcess/WebProcessProxy.cpp:
      (WebKit::WebProcessProxy::WebProcessProxy):
      * UIProcess/gtk/WebContextGtk.cpp:
      (WebKit::WebContext::platformInitializeWebProcess):
      * UIProcess/soup/WebContextSoup.cpp:
      (WebKit::WebContext::platformInitializeNetworkProcess):
      * WebProcess/WebProcess.cpp:
      (WebKit::WebProcess::WebProcess):
      * WebProcess/soup/WebKitSoupRequestGeneric.cpp:
      (webkitSoupRequestGenericSendAsync):
      (webkitSoupRequestGenericSendFinish):
      * WebProcess/soup/WebKitSoupRequestGeneric.h:
      * WebProcess/soup/WebProcessSoup.cpp:
      (WebKit::WebProcess::platformInitializeWebProcess):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162449 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6188bb92
    • commit-queue@webkit.org's avatar
      [GTK] Allow passing extra data to web extensions · 4c113670
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=125990
      
      Patch by Adrian Perez de Castro <aperez@igalia.com> on 2014-01-21
      Reviewed by Carlos Garcia Campos.
      
      Allow passing additional information to the injected bundle. On top
      of the string containing the path to the web extensions directory,
      a GVariant can be set with additional data using
      webkit_web_context_set_web_extensions_initialization_user_data().
      Also, a new initialize-web-extensions signal is emitted before
      launching a new WebProcess to allow setting different user data
      for each process. The GVariant is serialized as a string, passed
      to the injected bundle, and the injected bundle deserializes back
      the data, which is passed to web extensions which define the
      webkit_web_extension_initialize_with_user_data() function (for
      backwards compatibility, webkit_web_extension_initialize() is
      used as a fallback.)
      
      Source/WebKit2:
      
      * UIProcess/API/gtk/WebKitInjectedBundleClient.cpp:
      (getInjectedBundleInitializationUserData): Define new callback
      function which causes emission of the initialize-web-extensions
      signal, and serializes the data to be passed to the web process.
      (attachInjectedBundleClientToContext): Set the
      getInjectedBundleInitializationUserData() callback.
      * UIProcess/API/gtk/WebKitWebContext.cpp:
      (webkit_web_context_class_init): Define the
      initialize-web-extensions signal.
      (webkit_web_context_set_web_extensions_directory):
      Web extensions directory as now member of WebKitWebContextPrivate,
      to be able to retrieve it later.
      (webkit_web_context_set_web_extensions_initialization_user_data):
      New API method to set the user data passed to the web extensions
      when initialized.
      (webkitWebContextInitializeWebExtensions): Private function used
      to trigger emission of the initialize-web-extensions signal.
      * UIProcess/API/gtk/WebKitWebContext.h:
      Added prototype for new API method
      webkit_web_context_set_web_extensions_initialization_user_data().
      * UIProcess/API/gtk/WebKitWebContextPrivate.h:
      Prototype of the new private function.
      * UIProcess/API/gtk/docs/webkit2gtk-sections.txt:
      Add new public API bits to the documentation.
      * WebProcess/gtk/WebGtkExtensionManager.cpp:
      (WebKit::WebGtkExtensionManager::initialize):
      Deserialize the data received from the UI process and pass it to
      webkit_web_extension_initialize_with_user_data() if available,
      keeping webkit_web_extension_initialize() as fallback.
      
      Tools:
      
      * TestWebKitAPI/Tests/WebKit2Gtk/TestWebExtensions.cpp:
      (initializeWebExtensions): Handles the initialize-web-extensions
      signal, and sets the web extensions directory and the initialization
      user data.
      (testWebExtensionInitializationUserData): New test case for checking
      the user data passed on initialization to web extensions.
      * TestWebKitAPI/Tests/WebKit2Gtk/WebExtensionTest.cpp:
      (methodCallCallback): Added implementation for the
      GetInitializationUserData D-Bus method, used by
      testWebExtensionInitializationUserData().
      (webkit_web_extension_initialize_with_user_data): Define the
      initialization function with the additional user data parameter.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162441 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4c113670
  2. 20 Jan, 2014 6 commits
  3. 19 Jan, 2014 2 commits
  4. 18 Jan, 2014 5 commits
    • andersca@apple.com's avatar
      Replace a couple of uses of WTF::Function with std::function · 014a9151
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=127218
      
      Reviewed by Andreas Kling.
      
      Source/WebCore:
      
      * WebCore.exp.in:
      * page/scrolling/ScrollingThread.cpp:
      (WebCore::ScrollingThread::dispatch):
      (WebCore::ScrollingThread::dispatchBarrier):
      (WebCore::ScrollingThread::shared):
      (WebCore::ScrollingThread::createThreadIfNeeded):
      (WebCore::ScrollingThread::dispatchFunctionsFromScrollingThread):
      * page/scrolling/ScrollingThread.h:
      * page/scrolling/mac/ScrollingThreadMac.mm:
      (WebCore::ScrollingThread::initializeRunLoop):
      
      Source/WebKit2:
      
      * Platform/IPC/mac/ConnectionMac.cpp:
      (IPC::createDataAvailableSource):
      * Platform/WorkQueue.h:
      * Platform/mac/WorkQueueMac.cpp:
      (WorkQueue::dispatch):
      (WorkQueue::dispatchAfter):
      * Shared/ChildProcess.cpp:
      (WebKit::didCloseOnConnectionWorkQueue):
      * UIProcess/Storage/LocalStorageDatabase.cpp:
      (WebKit::LocalStorageDatabase::scheduleDatabaseUpdate):
      * WebProcess/WebPage/DrawingArea.cpp:
      (WebKit::DrawingArea::dispatchAfterEnsuringUpdatedScrollPosition):
      * WebProcess/WebPage/DrawingArea.h:
      * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
      * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
      (WebKit::TiledCoreAnimationDrawingArea::dispatchAfterEnsuringUpdatedScrollPosition):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162276 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      014a9151
    • commit-queue@webkit.org's avatar
      Flesh out session APIs (still not enabled at API level). · f31e4690
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=126918
      
      Patch by Martin Hock <mhock@apple.com> on 2014-01-18
      Reviewed by Alexey Proskuryakov.
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * NetworkProcess/NetworkConnectionToWebProcess.cpp:
      (WebKit::storageSession):
      (WebKit::NetworkConnectionToWebProcess::startDownload):
      (WebKit::NetworkConnectionToWebProcess::cookiesForDOM):
      (WebKit::NetworkConnectionToWebProcess::setCookiesFromDOM):
      (WebKit::NetworkConnectionToWebProcess::cookiesEnabled):
      (WebKit::NetworkConnectionToWebProcess::cookieRequestHeaderFieldValue):
      (WebKit::NetworkConnectionToWebProcess::getRawCookies):
      (WebKit::NetworkConnectionToWebProcess::deleteCookie):
      * NetworkProcess/NetworkConnectionToWebProcess.h:
      * NetworkProcess/NetworkConnectionToWebProcess.messages.in:
      * NetworkProcess/NetworkProcess.cpp:
      (WebKit::NetworkProcess::initializeNetworkProcess):
      (WebKit::NetworkProcess::ensurePrivateBrowsingSession):
      (WebKit::NetworkProcess::destroyPrivateBrowsingSession):
      * NetworkProcess/NetworkProcess.h:
      * NetworkProcess/NetworkProcess.messages.in:
      * NetworkProcess/RemoteNetworkingContext.h:
      * NetworkProcess/mac/RemoteNetworkingContext.mm:
      (WebKit::RemoteNetworkingContext::storageSession):
      (WebKit::RemoteNetworkingContext::ensurePrivateBrowsingSession):
      * NetworkProcess/soup/RemoteNetworkingContextSoup.cpp:
      (WebKit::RemoteNetworkingContext::ensurePrivateBrowsingSession):
      * Shared/SessionTracker.cpp: Copied from Source/WebKit2/UIProcess/APISession.cpp.
      (WebKit::sessionMap):
      (WebKit::identifierBase):
      (WebKit::SessionTracker::getSessionMap):
      (WebKit::SessionTracker::getIdentifierBase):
      (WebKit::SessionTracker::session):
      (WebKit::SessionTracker::destroySession):
      (WebKit::SessionTracker::setIdentifierBase):
      * Shared/SessionTracker.h: Copied from Source/WebKit2/UIProcess/APISession.h.
      (WebKit::SessionTracker::isEphemeralID):
      * Shared/mac/CookieStorageShim.cpp:
      (WebKit::webKitCookieStorageCopyRequestHeaderFieldsForURL):
      * UIProcess/APISession.cpp:
      (API::generateID):
      (API::Session::defaultSession):
      (API::Session::legacyPrivateSession):
      (API::Session::Session):
      (API::Session::create):
      (API::Session::isEphemeral):
      (API::Session::getID):
      * UIProcess/APISession.h:
      * UIProcess/WebContext.cpp:
      (WebKit::WebContext::setAnyPageGroupMightHavePrivateBrowsingEnabled):
      (WebKit::WebContext::createNewWebProcess):
      (WebKit::WebContext::createWebPage):
      * UIProcess/WebContext.h:
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::create):
      (WebKit::WebPageProxy::WebPageProxy):
      * UIProcess/WebPageProxy.h:
      (WebKit::WebPageProxy::sessionID):
      * UIProcess/WebProcessProxy.cpp:
      (WebKit::WebProcessProxy::createWebPage):
      * UIProcess/WebProcessProxy.h:
      * WebKit2.xcodeproj/project.pbxproj:
      * WebProcess/InjectedBundle/InjectedBundle.cpp:
      (WebKit::InjectedBundle::setPrivateBrowsingEnabled):
      * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
      (WebKit::legacySessionID):
      (WebKit::WebPlatformStrategies::cookiesForDOM):
      (WebKit::WebPlatformStrategies::setCookiesFromDOM):
      (WebKit::WebPlatformStrategies::cookiesEnabled):
      (WebKit::WebPlatformStrategies::cookieRequestHeaderFieldValue):
      (WebKit::WebPlatformStrategies::getRawCookies):
      (WebKit::WebPlatformStrategies::deleteCookie):
      * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.h:
      * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm:
      (WebKit::WebFrameNetworkingContext::ensurePrivateBrowsingSession):
      (WebKit::WebFrameNetworkingContext::setCookieAcceptPolicyForAllContexts):
      (WebKit::WebFrameNetworkingContext::storageSession):
      * WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.cpp:
      (WebKit::WebFrameNetworkingContext::ensurePrivateBrowsingSession):
      (WebKit::WebFrameNetworkingContext::storageSession):
      * WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.h:
      * WebProcess/WebProcess.cpp:
      (WebKit::WebProcess::initializeWebProcess):
      (WebKit::WebProcess::ensurePrivateBrowsingSession):
      (WebKit::WebProcess::destroyPrivateBrowsingSession):
      * WebProcess/WebProcess.h:
      * WebProcess/WebProcess.messages.in:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162271 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f31e4690
    • bburg@apple.com's avatar
      Web Inspector: Page should use std::unique_ptr for InspectorController · 9efd2cdf
      bburg@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=127068
      
      Reviewed by Joseph Pecoraro.
      
      Source/WebCore:
      
      Make Page and WorkerGlobalScope keep a std::unique_ptr to InspectorController
      and WorkerInspectorController. Store page references and return controller
      references where possible.
      
      Convert call sites to use an InspectorController reference.
      Convert instantiations of InspectorFrontendClient to use std::unique_ptr.
      Convert InspectorOverlay to keep Page references.
      
      * WebCore.exp.in:
      * bindings/js/JSDOMWindowBase.cpp:
      (WebCore::JSDOMWindowBase::supportsProfiling):
      (WebCore::JSDOMWindowBase::supportsRichSourceInfo):
      * dom/Node.cpp:
      (WebCore::Node::inspect):
      * inspector/InspectorController.cpp:
      (WebCore::InspectorController::InspectorController):
      (WebCore::InspectorController::inspectedPageDestroyed):
      (WebCore::InspectorController::setInspectorFrontendClient):
      (WebCore::InspectorController::hasInspectorFrontendClient):
      (WebCore::InspectorController::connectFrontend):
      (WebCore::InspectorController::disconnectFrontend):
      (WebCore::InspectorController::inspectedPage):
      (WebCore::InspectorController::developerExtrasEnabled):
      * inspector/InspectorController.h:
      * inspector/InspectorFrontendClientLocal.cpp:
      (WebCore::InspectorFrontendClientLocal::canAttachWindow):
      (WebCore::InspectorFrontendClientLocal::changeAttachedWindowHeight):
      (WebCore::InspectorFrontendClientLocal::changeAttachedWindowWidth):
      (WebCore::InspectorFrontendClientLocal::openInNewTab):
      (WebCore::InspectorFrontendClientLocal::restoreAttachedWindowHeight):
      * inspector/InspectorOverlay.cpp:
      (WebCore::InspectorOverlay::InspectorOverlay):
      (WebCore::InspectorOverlay::getHighlight):
      (WebCore::InspectorOverlay::highlightQuad):
      (WebCore::InspectorOverlay::update):
      (WebCore::InspectorOverlay::buildObjectForHighlightedNode):
      (WebCore::InspectorOverlay::drawQuadHighlight):
      (WebCore::InspectorOverlay::overlayPage):
      (WebCore::InspectorOverlay::reset):
      * inspector/InspectorOverlay.h:
      * inspector/InstrumentingAgents.cpp:
      (WebCore::instrumentationForPage): remove null checks.
      (WebCore::instrumentationForWorkerGlobalScope): remove null checks.
      * inspector/WorkerInspectorController.cpp:
      (WebCore::WorkerInspectorController::WorkerInspectorController):
      (WebCore::WorkerInspectorController::connectFrontend):
      (WebCore::WorkerInspectorController::disconnectFrontend):
      * inspector/WorkerInspectorController.h:
      * loader/FrameLoader.cpp:
      (WebCore::FrameLoader::continueLoadAfterNavigationPolicy):
      (WebCore::FrameLoader::dispatchDidClearWindowObjectInWorld):
      * page/ContextMenuController.cpp:
      (WebCore::ContextMenuController::showContextMenu):
      (WebCore::ContextMenuController::contextMenuItemSelected):
      (WebCore::ContextMenuController::populate):
      (WebCore::ContextMenuController::addInspectElementItem):
      * page/FrameView.cpp:
      (WebCore::FrameView::sendResizeEventIfNeeded):
      * page/Page.cpp:
      (WebCore::Page::Page):
      * page/Page.h:
      (WebCore::Page::inspectorController):
      * page/PageDebuggable.cpp:
      (WebCore::PageDebuggable::hasLocalDebugger):
      (WebCore::PageDebuggable::parentProcessIdentifier):
      (WebCore::PageDebuggable::connect):
      (WebCore::PageDebuggable::disconnect):
      (WebCore::PageDebuggable::dispatchMessageFromRemoteFrontend):
      (WebCore::PageDebuggable::setIndicating):
      * platform/graphics/texmap/coordinated/CompositingCoordinator.cpp:
      (WebCore::CompositingCoordinator::syncDisplayState):
      * testing/Internals.cpp:
      (WebCore::Internals::resetToConsistentState):
      (WebCore::Internals::inspectorHighlightRects):
      (WebCore::Internals::inspectorHighlightObject):
      (WebCore::Internals::emitInspectorDidBeginFrame):
      (WebCore::Internals::emitInspectorDidCancelFrame):
      (WebCore::Internals::openDummyInspectorFrontend):
      (WebCore::Internals::closeDummyInspectorFrontend):
      (WebCore::Internals::setInspectorResourcesDataSizeLimits):
      (WebCore::Internals::setJavaScriptProfilingEnabled):
      * workers/WorkerGlobalScope.cpp:
      (WebCore::WorkerGlobalScope::WorkerGlobalScope):
      * workers/WorkerGlobalScope.h: remove clearInspector().
      (WebCore::WorkerGlobalScope::workerInspectorController):
      * workers/WorkerMessagingProxy.cpp:
      (WebCore::connectToWorkerGlobalScopeInspectorTask):
      (WebCore::disconnectFromWorkerGlobalScopeInspectorTask):
      (WebCore::dispatchOnInspectorBackendTask):
      * workers/WorkerThread.cpp:
      (WebCore::WorkerThreadShutdownFinishTask::performTask):
      
      Source/WebKit/efl:
      
      Convert call sites to use a InspectorController reference.
      Convert instantiations of InspectorFrontendClient to use std::unique_ptr.
      
      * WebCoreSupport/DumpRenderTreeSupportEfl.cpp:
      (DumpRenderTreeSupportEfl::evaluateInWebInspector):
      * WebCoreSupport/InspectorClientEfl.cpp:
      (WebCore::InspectorClientEfl::openInspectorFrontend):
      * ewk/ewk_view.cpp:
      (ewk_view_inspector_show):
      (ewk_view_inspector_close):
      
      Source/WebKit/gtk:
      
      Convert call sites to use a InspectorController reference.
      Convert instantiations of InspectorFrontendClient to use std::unique_ptr.
      
      * WebCoreSupport/ChromeClientGtk.cpp:
      (WebKit::paintWebView):
      * WebCoreSupport/InspectorClientGtk.cpp:
      (WebKit::InspectorClient::openInspectorFrontend):
      * webkit/webkitwebinspector.cpp:
      (webkit_web_inspector_set_property):
      (webkit_web_inspector_get_property):
      (webkit_web_inspector_show):
      (webkit_web_inspector_inspect_node):
      (webkit_web_inspector_inspect_coordinates):
      (webkit_web_inspector_close):
      (webkit_web_inspector_execute_script):
      
      Source/WebKit/mac:
      
      Convert call sites to use a InspectorController reference.
      Convert instantiations of InspectorFrontendClient to use std::unique_ptr.
      
      * WebCoreSupport/WebInspectorClient.mm:
      (WebInspectorClient::openInspectorFrontend):
      (-[WebInspectorWindowController destroyInspectorView:]):
      * WebInspector/WebInspector.mm:
      (-[WebInspector showWindow]):
      (-[WebInspector isJavaScriptProfilingEnabled]):
      (-[WebInspector setJavaScriptProfilingEnabled:]):
      (-[WebInspector close:]):
      (-[WebInspector evaluateInFrontend:callId:script:]):
      * WebInspector/WebNodeHighlighter.mm:
      (-[WebNodeHighlighter highlight]):
      
      Source/WebKit/win:
      
      Convert call sites to use a InspectorController reference.
      
      * WebCoreSupport/WebInspectorClient.cpp:
      (WebInspectorClient::openInspectorFrontend):
      (WebInspectorFrontendClient::destroyInspectorView):
      (WebInspectorFrontendClient::onClose):
      * WebInspector.cpp:
      (WebInspector::show):
      (WebInspector::close):
      (WebInspector::isJavaScriptProfilingEnabled):
      (WebInspector::setJavaScriptProfilingEnabled):
      (WebInspector::evaluateInFrontend):
      * WebNodeHighlight.cpp:
      (WebNodeHighlight::update):
      
      Source/WebKit2:
      
      Convert call sites to use a InspectorController reference.
      
      * WebProcess/WebCoreSupport/WebInspectorClient.cpp:
      (WebKit::WebInspectorClient::drawRect):
      * WebProcess/WebCoreSupport/WebInspectorFrontendClient.cpp:
      (WebKit::WebInspectorFrontendClient::WebInspectorFrontendClient):
      (WebKit::WebInspectorFrontendClient::closeWindow):
      * WebProcess/WebPage/WebInspector.cpp:
      (WebKit::WebInspector::createInspectorPage):
      (WebKit::WebInspector::show):
      (WebKit::WebInspector::close):
      (WebKit::WebInspector::evaluateScriptForTest):
      (WebKit::WebInspector::showConsole):
      (WebKit::WebInspector::showResources):
      (WebKit::WebInspector::showMainResourceForFrame):
      (WebKit::WebInspector::startJavaScriptDebugging):
      (WebKit::WebInspector::stopJavaScriptDebugging):
      (WebKit::WebInspector::setJavaScriptProfilingEnabled):
      (WebKit::WebInspector::startJavaScriptProfiling):
      (WebKit::WebInspector::stopJavaScriptProfiling):
      (WebKit::WebInspector::startPageProfiling):
      (WebKit::WebInspector::stopPageProfiling):
      (WebKit::WebInspector::dispatchMessageFromRemoteFrontend):
      (WebKit::WebInspector::remoteFrontendConnected):
      (WebKit::WebInspector::remoteFrontendDisconnected):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162264 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9efd2cdf
    • andersca@apple.com's avatar
      Remove ENABLE_THREADED_HTML_PARSER defines everywhere · 910d4806
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=127225
      
      Reviewed by Andreas Kling.
      
      This concludes the removal of over 8.8 million lines of threaded parser code.
      
      .:
      
      * Source/autotools/SetupWebKitFeatures.m4:
      * Source/cmake/WebKitFeatures.cmake:
      * Source/cmakeconfig.h.cmake:
      
      Source/JavaScriptCore:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebCore:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebKit/mac:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebKit2:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WTF:
      
      * wtf/FeatureDefines.h:
      
      Tools:
      
      * Scripts/webkitperl/FeatureList.pm:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162260 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      910d4806
    • commit-queue@webkit.org's avatar
      Make WKRenderingProgressEvents a shareable API. · d6024263
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=127213
      
      Patch by Yongjun Zhang <yongjun_zhang@apple.com> on 2014-01-18
      Reviewed by Dan Bernstein.
      
      Move WKRenderingProgressEvents from UIProcess to Shared, so that an inject bundle
      could also use this enum when listening to layout milestones.
      
      * Shared/API/Cocoa/WKRenderingProgressEvents.h: Added.
      (NS_OPTIONS):
      * Shared/API/Cocoa/WKRenderingProgressEventsInternal.h: Added.
      (renderingProgressEvents):
      * UIProcess/API/Cocoa/WKBrowsingContextController.h: Move WKRenderingProgressEvents to Shared/API/Cocoa/WKRenderingProgressEvents.h.
      * UIProcess/API/Cocoa/WKBrowsingContextController.mm: Move renderingProgressEvents() to WKRenderingProgressEventsInternal.h.
      * WebKit2.xcodeproj/project.pbxproj:
      * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInLoadDelegate.h: Add
          webProcessPlugInBrowserContextController:renderingProgressDidChange: to load delegate.
      * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm:
      (didLayout):
      (setUpPageLoaderClient): Also listen to didLayout callback for layout milestones.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162259 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d6024263
  5. 17 Jan, 2014 12 commits
    • commit-queue@webkit.org's avatar
      Unreviewed, rolling out r162237 and r162241. · 61452451
      commit-queue@webkit.org authored
      http://trac.webkit.org/changeset/162237
      http://trac.webkit.org/changeset/162241
      https://bugs.webkit.org/show_bug.cgi?id=127216
      
      Broke lots of API tests (Requested by ap on #webkit).
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * NetworkProcess/NetworkConnectionToWebProcess.cpp:
      (WebKit::storageSession):
      (WebKit::NetworkConnectionToWebProcess::startDownload):
      (WebKit::NetworkConnectionToWebProcess::cookiesForDOM):
      (WebKit::NetworkConnectionToWebProcess::setCookiesFromDOM):
      (WebKit::NetworkConnectionToWebProcess::cookiesEnabled):
      (WebKit::NetworkConnectionToWebProcess::cookieRequestHeaderFieldValue):
      (WebKit::NetworkConnectionToWebProcess::getRawCookies):
      (WebKit::NetworkConnectionToWebProcess::deleteCookie):
      * NetworkProcess/NetworkConnectionToWebProcess.h:
      * NetworkProcess/NetworkConnectionToWebProcess.messages.in:
      * NetworkProcess/NetworkProcess.cpp:
      (WebKit::NetworkProcess::initializeNetworkProcess):
      (WebKit::NetworkProcess::ensurePrivateBrowsingSession):
      (WebKit::NetworkProcess::destroyPrivateBrowsingSession):
      * NetworkProcess/NetworkProcess.h:
      * NetworkProcess/NetworkProcess.messages.in:
      * NetworkProcess/RemoteNetworkingContext.h:
      * NetworkProcess/mac/RemoteNetworkingContext.mm:
      (WebKit::privateBrowsingStorageSession):
      (WebKit::RemoteNetworkingContext::storageSession):
      (WebKit::RemoteNetworkingContext::privateBrowsingSession):
      (WebKit::privateBrowsingStorageSessionIdentifierBase):
      (WebKit::RemoteNetworkingContext::setPrivateBrowsingStorageSessionIdentifierBase):
      (WebKit::RemoteNetworkingContext::ensurePrivateBrowsingSession):
      (WebKit::RemoteNetworkingContext::destroyPrivateBrowsingSession):
      * NetworkProcess/soup/RemoteNetworkingContextSoup.cpp:
      (WebKit::RemoteNetworkingContext::setPrivateBrowsingStorageSessionIdentifierBase):
      (WebKit::RemoteNetworkingContext::ensurePrivateBrowsingSession):
      (WebKit::RemoteNetworkingContext::destroyPrivateBrowsingSession):
      (WebKit::RemoteNetworkingContext::privateBrowsingSession):
      * Shared/SessionTracker.cpp: Removed.
      * Shared/SessionTracker.h: Removed.
      * UIProcess/APISession.cpp:
      (API::Session::Session):
      (API::Session::create):
      (API::Session::isEphemeral):
      * UIProcess/APISession.h:
      * UIProcess/WebContext.cpp:
      (WebKit::WebContext::setAnyPageGroupMightHavePrivateBrowsingEnabled):
      (WebKit::WebContext::createNewWebProcess):
      (WebKit::WebContext::createWebPage):
      * UIProcess/WebContext.h:
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::create):
      (WebKit::WebPageProxy::WebPageProxy):
      * UIProcess/WebPageProxy.h:
      * UIProcess/WebProcessProxy.cpp:
      (WebKit::WebProcessProxy::createWebPage):
      * UIProcess/WebProcessProxy.h:
      * WebKit2.xcodeproj/project.pbxproj:
      * WebProcess/InjectedBundle/InjectedBundle.cpp:
      (WebKit::InjectedBundle::setPrivateBrowsingEnabled):
      * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
      (WebKit::WebPlatformStrategies::cookiesForDOM):
      (WebKit::WebPlatformStrategies::setCookiesFromDOM):
      (WebKit::WebPlatformStrategies::cookiesEnabled):
      (WebKit::WebPlatformStrategies::cookieRequestHeaderFieldValue):
      (WebKit::WebPlatformStrategies::getRawCookies):
      (WebKit::WebPlatformStrategies::deleteCookie):
      * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.h:
      * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm:
      (WebKit::privateSession):
      (WebKit::identifierBase):
      (WebKit::WebFrameNetworkingContext::setPrivateBrowsingStorageSessionIdentifierBase):
      (WebKit::WebFrameNetworkingContext::ensurePrivateBrowsingSession):
      (WebKit::WebFrameNetworkingContext::destroyPrivateBrowsingSession):
      (WebKit::WebFrameNetworkingContext::setCookieAcceptPolicyForAllContexts):
      (WebKit::WebFrameNetworkingContext::storageSession):
      * WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.cpp:
      (WebKit::privateSession):
      (WebKit::WebFrameNetworkingContext::ensurePrivateBrowsingSession):
      (WebKit::WebFrameNetworkingContext::destroyPrivateBrowsingSession):
      (WebKit::WebFrameNetworkingContext::storageSession):
      * WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.h:
      * WebProcess/WebProcess.cpp:
      (WebKit::WebProcess::initializeWebProcess):
      (WebKit::WebProcess::ensurePrivateBrowsingSession):
      (WebKit::WebProcess::destroyPrivateBrowsingSession):
      * WebProcess/WebProcess.h:
      * WebProcess/WebProcess.messages.in:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162245 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      61452451
    • ryuan.choi@samsung.com's avatar
      Unreviewed build fix on EFL port after r162237 · 3aa1f965
      ryuan.choi@samsung.com authored
      The EFL port disabled NETWORK_PROCESS yet and use -Werror=unused-function.
      
      * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
      Guarded legacySessionID with ENABLE(NETWORK_PROCESS)
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162241 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3aa1f965
    • commit-queue@webkit.org's avatar
      Flesh out session APIs (still not enabled at API level). · 5e2a9e85
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=126918
      
      Patch by Martin Hock <mhock@apple.com> on 2014-01-17
      Reviewed by Alexey Proskuryakov.
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * NetworkProcess/NetworkConnectionToWebProcess.cpp:
      (WebKit::storageSession):
      (WebKit::NetworkConnectionToWebProcess::startDownload):
      (WebKit::NetworkConnectionToWebProcess::cookiesForDOM):
      (WebKit::NetworkConnectionToWebProcess::setCookiesFromDOM):
      (WebKit::NetworkConnectionToWebProcess::cookiesEnabled):
      (WebKit::NetworkConnectionToWebProcess::cookieRequestHeaderFieldValue):
      (WebKit::NetworkConnectionToWebProcess::getRawCookies):
      (WebKit::NetworkConnectionToWebProcess::deleteCookie):
      * NetworkProcess/NetworkConnectionToWebProcess.h:
      * NetworkProcess/NetworkConnectionToWebProcess.messages.in:
      * NetworkProcess/NetworkProcess.cpp:
      (WebKit::NetworkProcess::initializeNetworkProcess):
      (WebKit::NetworkProcess::ensurePrivateBrowsingSession):
      (WebKit::NetworkProcess::destroyPrivateBrowsingSession):
      * NetworkProcess/NetworkProcess.h:
      * NetworkProcess/NetworkProcess.messages.in:
      * NetworkProcess/RemoteNetworkingContext.h:
      * NetworkProcess/mac/RemoteNetworkingContext.mm:
      (WebKit::RemoteNetworkingContext::storageSession):
      (WebKit::RemoteNetworkingContext::ensurePrivateBrowsingSession):
      * NetworkProcess/soup/RemoteNetworkingContextSoup.cpp:
      (WebKit::RemoteNetworkingContext::ensurePrivateBrowsingSession):
      * Shared/SessionTracker.cpp: Copied from Source/WebKit2/UIProcess/APISession.cpp.
      (WebKit::sessionMap):
      (WebKit::identifierBase):
      (WebKit::SessionTracker::getSessionMap):
      (WebKit::SessionTracker::getIdentifierBase):
      (WebKit::SessionTracker::session):
      (WebKit::SessionTracker::destroySession):
      (WebKit::SessionTracker::setIdentifierBase):
      * Shared/SessionTracker.h: Copied from Source/WebKit2/UIProcess/APISession.h.
      (WebKit::SessionTracker::isEphemeralID):
      * UIProcess/APISession.cpp:
      (API::generateID):
      (API::Session::defaultSession):
      (API::Session::legacyPrivateSession):
      (API::Session::Session):
      (API::Session::create):
      (API::Session::isEphemeral):
      (API::Session::getID):
      * UIProcess/APISession.h:
      * UIProcess/WebContext.cpp:
      (WebKit::WebContext::setAnyPageGroupMightHavePrivateBrowsingEnabled):
      (WebKit::WebContext::createNewWebProcess):
      (WebKit::WebContext::createWebPage):
      * UIProcess/WebContext.h:
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::create):
      (WebKit::WebPageProxy::WebPageProxy):
      * UIProcess/WebPageProxy.h:
      (WebKit::WebPageProxy::sessionID):
      * UIProcess/WebProcessProxy.cpp:
      (WebKit::WebProcessProxy::createWebPage):
      * UIProcess/WebProcessProxy.h:
      * WebKit2.xcodeproj/project.pbxproj:
      * WebProcess/InjectedBundle/InjectedBundle.cpp:
      (WebKit::InjectedBundle::setPrivateBrowsingEnabled):
      * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
      (WebKit::legacySessionID):
      (WebKit::WebPlatformStrategies::cookiesForDOM):
      (WebKit::WebPlatformStrategies::setCookiesFromDOM):
      (WebKit::WebPlatformStrategies::cookiesEnabled):
      (WebKit::WebPlatformStrategies::cookieRequestHeaderFieldValue):
      (WebKit::WebPlatformStrategies::getRawCookies):
      (WebKit::WebPlatformStrategies::deleteCookie):
      * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.h:
      * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm:
      (WebKit::WebFrameNetworkingContext::ensurePrivateBrowsingSession):
      (WebKit::WebFrameNetworkingContext::setCookieAcceptPolicyForAllContexts):
      (WebKit::WebFrameNetworkingContext::storageSession):
      * WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.cpp:
      (WebKit::WebFrameNetworkingContext::ensurePrivateBrowsingSession):
      (WebKit::WebFrameNetworkingContext::storageSession):
      * WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.h:
      * WebProcess/WebProcess.cpp:
      (WebKit::WebProcess::initializeWebProcess):
      (WebKit::WebProcess::ensurePrivateBrowsingSession):
      (WebKit::WebProcess::destroyPrivateBrowsingSession):
      * WebProcess/WebProcess.h:
      * WebProcess/WebProcess.messages.in:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162237 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5e2a9e85
    • akling@apple.com's avatar
      Remove unused TOUCH_ADJUSTMENT code. · ded59a65
      akling@apple.com authored
      <https://webkit.org/b/127181>
      
      Source/WebCore:
      
      There are no ports using the ENABLE(TOUCH_ADJUSTMENT) feature
      anymore, so nuke it from orbit.
      
      Reviewed by Anders Carlsson.
      
      * page/EventHandler.cpp:
      * page/EventHandler.h:
      * page/Settings.in:
      * page/TouchAdjustment.cpp: Removed.
      * page/TouchAdjustment.h: Removed.
      * testing/Internals.cpp:
      * testing/Internals.h:
      * testing/Internals.idl:
      
      Source/WebKit2:
      
      Reviewed by Anders Carlsson.
      
      * WebProcess/WebPage/CoordinatedGraphics/WebPageCoordinatedGraphics.cpp:
      (WebKit::WebPage::findZoomableAreaForPoint):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162231 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ded59a65
    • andersca@apple.com's avatar
      Fix build. · e081beec
      andersca@apple.com authored
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162229 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e081beec
    • andersca@apple.com's avatar
      Remove FrameLoaderClient::didPerformFirstNavigation() · e56e359f
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=127191
      
      Reviewed by Dan Bernstein.
      
      Source/WebCore:
      
      * loader/EmptyClients.h:
      * loader/FrameLoader.cpp:
      (WebCore::FrameLoader::FrameLoader):
      * loader/FrameLoader.h:
      * loader/FrameLoaderClient.h:
      * loader/HistoryController.cpp:
      (WebCore::HistoryController::updateBackForwardListClippedAtTarget):
      
      Source/WebKit2:
      
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162226 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e56e359f
    • rego@igalia.com's avatar
      [GTK] Add CSS Grid Layout as experimental feature · 24cc606f
      rego@igalia.com authored
      https://bugs.webkit.org/show_bug.cgi?id=127089
      
      Reviewed by Martin Robinson.
      
      Allow CSS Grid Layout to be enabled through the environment variable WEBKITGTK_EXPERIMENTAL_FEATURES.
      
      Example: WEBKITGTK_EXPERIMENTAL_FEATURES="CSS_GRID_LAYOUT=1"
      
      * UIProcess/API/gtk/WebKitSettings.cpp:
      (webKitSettingsConstructed): Use new experimental feature to enable or disable CSS Grid Layout.
      * UIProcess/gtk/ExperimentalFeatures.cpp: Add new experimental feature.
      * UIProcess/gtk/ExperimentalFeatures.h: Ditto.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162215 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      24cc606f
    • enrica@apple.com's avatar
      Support WebSelections in WK2 on iOS. · 654e35c8
      enrica@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=127015
      <rdar://problem/15843090>
      
      Reviewed by Dan Bernstein.
      
      Removing unused variable in selectWithGesture that
      causes Release build to fail after r162103.
      
      * WebProcess/WebPage/ios/WebPageIOS.mm:
      (WebKit::WebPage::selectWithGesture):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162204 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      654e35c8
    • commit-queue@webkit.org's avatar
      https://bugs.webkit.org/show_bug.cgi?id=127138 · 21d2199a
      commit-queue@webkit.org authored
      Add more delegate callback methods to WKWebProcessPlugInLoadDelegate.
      
      Patch by Yongjun Zhang <yongjun_zhang@apple.com> on 2014-01-17
      Reviewed by Sam Weinig.
      
      Add more WKWebProcessPlugInLoadDelegate callback methods so that a injected
      bundle can listen/react to more frame loading events.
      
      * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInLoadDelegate.h: Add more delegate callback methods for
          WKWebProcessPlugInLoadDelegate.
      * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm:
      (didCommitLoadForFrame):
      (didFinishDocumentLoadForFrame):
      (didFailLoadWithErrorForFrame):
      (didSameDocumentNavigationForFrame):
      (didLayoutForFrame):
      (setUpPageLoaderClient):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162203 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      21d2199a
    • carlosgc@webkit.org's avatar
      [SOUP] Add stubs for CustomProtocol classes · 3d1125b5
      carlosgc@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=126343
      
      Reviewed by Gustavo Noronha Silva.
      
      * CMakeLists.txt:
      * GNUmakefile.am:
      * GNUmakefile.list.am:
      * PlatformGTK.cmake:
      * Shared/Network/CustomProtocols/soup/CustomProtocolManagerSoup.cpp: Added.
      (WebKit::generateCustomProtocolID):
      (WebKit::WebSoupRequestAsyncData::WebSoupRequestAsyncData):
      (WebKit::WebSoupRequestAsyncData::~WebSoupRequestAsyncData):
      (WebKit::WebSoupRequestAsyncData::requestFailed):
      (WebKit::WebSoupRequestAsyncData::releaseTask):
      (WebKit::CustomProtocolManager::supplementName):
      (WebKit::CustomProtocolManager::CustomProtocolManager):
      (WebKit::CustomProtocolManager::initializeConnection):
      (WebKit::CustomProtocolManager::initialize):
      * Shared/Network/NetworkProcessCreationParameters.cpp:
      (WebKit::NetworkProcessCreationParameters::encode): Move
      urlSchemesRegisteredForCustomProtocols encoding out of platform
      ifdefs, since it's already guarded by ENABLE(CUSTOM_PROTOCOLS).
      (WebKit::NetworkProcessCreationParameters::decode): Ditto.
      * Shared/Network/NetworkProcessCreationParameters.h: Ditto.
      * UIProcess/Network/CustomProtocols/soup/CustomProtocolManagerProxySoup.cpp: Added.
      (WebKit::CustomProtocolManagerProxy::CustomProtocolManagerProxy):
      (WebKit::CustomProtocolManagerProxy::startLoading):
      (WebKit::CustomProtocolManagerProxy::stopLoading):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162190 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3d1125b5
    • timothy_horton@apple.com's avatar
      On iOS, zooming in with a TileController-backed main frame makes hundreds of tiles · d9d888c5
      timothy_horton@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=126531
      <rdar://problem/15745862>
      
      Reviewed by Anders Carlsson.
      
      Source/WebCore:
      
      * platform/graphics/ca/mac/TileController.h:
      * platform/graphics/ca/mac/TileController.mm:
      (WebCore::TileController::tilesWouldChangeForVisibleRect):
      (WebCore::TileController::scaledExposedRect):
      (WebCore::TileController::computeTileCoverageRect):
      (WebCore::TileController::revalidateTiles):
      (WebCore::TileController::updateTileCoverageMap):
      Scale the FrameView-space exposedRect into document space, to match the visibleRect.
      
      Flipping on WKView's clipsToExposedRect now works correctly even in Safari
      or MiniBrowser with zooming.
      
      Source/WebKit2:
      
      * UIProcess/API/ios/WKContentView.mm:
      (-[WKContentView _updateViewExposedRect]):
      (-[WKContentView setViewportSize:]):
      (-[WKContentView didFinishScrollTo:]):
      (-[WKContentView didScrollTo:]):
      (-[WKContentView didZoomToScale:]):
      Because zooming is performed by the UIScrollView, we need to transform
      the exposedRect's offset in order to get it in FrameView-relative coordinates.
      
      * UIProcess/ios/WebPageProxyIOS.mm:
      (WebKit::WebPageProxy::didFinishZooming):
      Save the pageScaleFactor when it changes.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162189 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d9d888c5
    • carlosgc@webkit.org's avatar
      [GTK] Remove the weak pointer added to the web view in WebKitPrintOperation · cd60776f
      carlosgc@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=127098
      
      Reviewed by Martin Robinson.
      
      If the print operation finishes and the web view is still alive,
      the weak pointer added to the view should be removed.
      
      * UIProcess/API/gtk/WebKitPrintOperation.cpp:
      (_WebKitPrintOperationPrivate::~_WebKitPrintOperationPrivate):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162188 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cd60776f
  6. 16 Jan, 2014 6 commits
    • weinig@apple.com's avatar
      TextBreakIterator's should support Latin-1 for all iterator types (Part 3) · e1513ff2
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=126856
      
      Reviewed by Ryosuke Niwa.
      
      Change all the TextBreakIterator creation functions to take StringViews. Remove a few
      now unnecessary up-conversions to UTF-16 in the process.
      
      ../WebCore: 
      
      * dom/CharacterData.cpp:
      * editing/TextCheckingHelper.cpp:
      * editing/VisibleUnits.cpp:
      * platform/graphics/StringTruncator.cpp:
      * platform/graphics/mac/ComplexTextController.cpp:
      * platform/text/TextBoundaries.cpp:
      * platform/text/TextBreakIterator.cpp:
      * platform/text/TextBreakIterator.h:
      * rendering/RenderText.cpp:
      
      ../WebKit/ios: 
      
      * Misc/WebNSStringDrawing.mm:
      
      ../WebKit2: 
      
      * UIProcess/efl/TextCheckerEfl.cpp:
      (WebKit::nextWordOffset):
      (WebKit::TextChecker::checkTextOfParagraph):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162184 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e1513ff2
    • eunmi15.lee@samsung.com's avatar
      [EFL][WK2] EwkView can not be shown without re-sizing once it is hidden. · fe1eeda9
      eunmi15.lee@samsung.com authored
      https://bugs.webkit.org/show_bug.cgi?id=127084
      
      Reviewed by Gyuyoung Kim.
      
      Visibility of EwkView can not be controlled by evas_object_show/hide
      because EwkView can be shown only if re-sizing is requested, so modify
      codes to show EwkView directly if we do not wait for re-sizing.
      Additionally, we have to set default value of m_pendingSurfaceResize
      to true for accelerated mode to prevent to show black empty view for
      the first request to show.
      
      * UIProcess/API/efl/EwkView.cpp:
      (EwkView::EwkView):
      (EwkView::handleEvasObjectShow):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162182 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fe1eeda9
    • aestes@apple.com's avatar
      Build Fix: Use standard architectures when building for iOS · 45ae87e3
      aestes@apple.com authored
      Even though we don't use the plug-in services on iOS, we still need
      them to build (we won't install them). Be sure we specify valid iOS
      architectures when doing so.
      
      * Configurations/PluginService.32.xcconfig:
      * Configurations/PluginService.64.xcconfig:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162177 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      45ae87e3
    • enrica@apple.com's avatar
      Crash when destroying WKInteractionView. · 9daf1869
      enrica@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=127153
      <rdar://problem/15840761>
      
      Reviewed by Anders Carlsson.
      
      UIWKSelectionAssistant is a RetainPtr and it is being 
      deallocated after the view and its gesture recognizers
      have been destroyed.
      The parent class UIWebSelectionAssistant assumes to be
      deallocated before the view is gone.
      We deallocate the interaction assistants explicitly to
      fix the problem.
      
      * UIProcess/API/ios/WKInteractionView.mm:
      (-[WKInteractionView dealloc]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162175 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9daf1869
    • beidson@apple.com's avatar
      IDB: delete object store support · 76e5f224
      beidson@apple.com authored
      <rdar://problem/15779641> and https://bugs.webkit.org/show_bug.cgi?id=127123
      
      Reviewed by Alexey Proskuryakov.
      
      Source/WebCore:
      
      * Modules/indexeddb/IDBTransactionBackendOperations.h:
      (WebCore::DeleteObjectStoreOperation::transaction):
      
      Source/WebKit2:
      
      Pipe through Web -> Database -> Web process messaging for delete object store.
      Perform dropping the object store in the backing store.
      
      * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.cpp:
      (WebKit::DatabaseProcessIDBConnection::deleteObjectStore):
      * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.h:
      * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.messages.in:
      
      * DatabaseProcess/IndexedDB/UniqueIDBDatabase.cpp:
      (WebKit::UniqueIDBDatabase::didDeleteObjectStore):
      (WebKit::UniqueIDBDatabase::deleteObjectStore):
      (WebKit::UniqueIDBDatabase::deleteObjectStoreInBackingStore):
      * DatabaseProcess/IndexedDB/UniqueIDBDatabase.h:
      
      * DatabaseProcess/IndexedDB/UniqueIDBDatabaseBackingStore.h:
      * DatabaseProcess/IndexedDB/sqlite/UniqueIDBDatabaseBackingStoreSQLite.cpp:
      (WebKit::UniqueIDBDatabaseBackingStoreSQLite::createObjectStore):
      (WebKit::UniqueIDBDatabaseBackingStoreSQLite::deleteObjectStore):
      * DatabaseProcess/IndexedDB/sqlite/UniqueIDBDatabaseBackingStoreSQLite.h:
      
      * WebProcess/Databases/IndexedDB/WebIDBServerConnection.cpp:
      (WebKit::WebIDBServerConnection::deleteObjectStore):
      (WebKit::WebIDBServerConnection::didDeleteObjectStore):
      * WebProcess/Databases/IndexedDB/WebIDBServerConnection.h:
      * WebProcess/Databases/IndexedDB/WebIDBServerConnection.messages.in:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162174 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      76e5f224
    • ap@apple.com's avatar
      [Mac] [iOS] Add support for CFHTTPCookieStorageAcceptPolicyExclusivelyFromMainDocumentDomain · 664c7b3d
      ap@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=127139
      
      Reviewed by Brady Eidson.
      
      Source/WebCore: 
      
      * platform/ios/WebCoreSystemInterfaceIOS.mm:
      * platform/mac/WebCoreSystemInterface.h:
      * platform/mac/WebCoreSystemInterface.mm:
      Pass first party URL down, because reading cookies depends on it when this policy
      in in action.
      
      * platform/network/cf/CookieJarCFNet.cpp:
      (WebCore::copyCookiesForURLWithFirstPartyURL):
      (WebCore::cookiesForDOM):
      (WebCore::cookieRequestHeaderFieldValue):
      (WebCore::cookiesEnabled):
      (WebCore::getRawCookies):
      Use a new CFNetwork API that takes first party URL.
      
      * platform/network/mac/CookieJarMac.mm:
      (WebCore::cookiesForDOM):
      (WebCore::cookieRequestHeaderFieldValue):
      (WebCore::cookiesEnabled):
      (WebCore::getRawCookies):
      (WebCore::deleteCookie):
      Pass first party URL (and null in deleteCookie, as there is none).
      
      * platform/network/mac/ResourceHandleMac.mm:
      (WebCore::ResourceHandle::platformLoadResourceSy...
      664c7b3d