1. 26 Apr, 2013 40 commits
    • roger_fong@apple.com's avatar
      Make Apple Windows VS2010 build results into and get dependencies from __32 suffixed folders. · 6a26613f
      roger_fong@apple.com authored
      Make the DebugSuffix configuration use _debug dependencies.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149220 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6a26613f
    • mrobinson@webkit.org's avatar
      [GTK] Add methods to add a user style sheet to the WebKit2 GTK+ API · f4c8b001
      mrobinson@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=99081
      
      Reviewed by Carlos Garcia Campos, Gustavo Noronha Silva, and Benjamin Poulain.
      
      Add methods to WebKitWebViewGroup to add and remove user style sheets.
      This allows clients to inject style sheets into pages with a set of
      rules for when those style sheets apply.
      
      * UIProcess/API/gtk/WebKitWebViewGroup.cpp:
      (toImmutableArray): Added this helper which converts the GList* parameters into
      ImmutableArrays for use with the WebKit2 internal API.
      (webkit_web_view_group_add_user_style_sheet): Added new API for adding a style sheet.
      (webkit_web_view_group_remove_all_user_style_sheets): Add new API for clearing out all style sheets.
      * UIProcess/API/gtk/WebKitWebViewGroup.h: Added new method declarations.
      * UIProcess/API/gtk/docs/webkit2gtk-sections.txt: Added new API to the documentation.
      * UIProcess/API/gtk/tests/TestWebKitWebViewGroup.cpp: Added a test for the new API.
      (isStyleSheetInjectedForURLAtPath): Function to check whether the style sheet has been injected for a given URL.
      (fillURLListFromPaths): Helper which converts paths passed via varargs into a whitelist or blacklist.
      (removeOldInjectedStyleSheetsAndResetLists): Function to start afresh.
      (testWebViewGroupInjectedStyleSheet): The actual test.
      (serverCallback): Server callback for use with the test. We cannot use loadHTML or
      loadAlternateHTML, because that checks the whitelist and blacklist against about:blank.
      (beforeAll): Initialize the server and new test.
      (afterAll): Clean up the server.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149219 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f4c8b001
    • roger_fong@apple.com's avatar
      Unreviewed build fix. · d1fd8020
      roger_fong@apple.com authored
      * platform/LayoutUnit.h:
      (WebCore::LayoutUnit::LayoutUnit):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149218 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d1fd8020
    • ap@apple.com's avatar
      2013-04-26 Simon Cooper <scooper@apple.com> · c46a0bc1
      ap@apple.com authored
              Permit ~/Library or ~/Library/Preferences to be symlinks
              https://bugs.webkit.org/show_bug.cgi?id=115142
              <rdar://problem/12953603>
      
              Reviewed by Alexey Proskuryakov.
      
              Pass in two new parameters which are the resolved paths to ~/Library
              and ~/Library/Preferences. Added new expansion functions and
              substituted the new functions for home-regex, home-subpath and
              home-literal for places referencing resources in "~/Library" or
              "~/Library/Preferences".
      
              * Resources/PlugInSandboxProfiles/com.apple.QuickTime Plugin.plugin.sb:
              * Resources/PlugInSandboxProfiles/com.apple.WebKit.plugin-common.sb:
              * Resources/PlugInSandboxProfiles/com.apple.ist.ds.appleconnect.webplugin.sb:
              * Resources/PlugInSandboxProfiles/com.macromedia.Flash Player.plugin.sb:
              * Resources/PlugInSandboxProfiles/com.microsoft.SilverlightPlugin.sb:
              * Resources/PlugInSandboxProfiles/com.oracle.java.JavaAppletPlugin.sb:
              * Shared/mac/ChildProcessMac.mm:
              (WebKit::ChildProcess::initializeSandbox):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149217 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c46a0bc1
    • msaboff@apple.com's avatar
      WebCore ObjC bridge is missing support for bool type · ee3bfb8b
      msaboff@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=115276
      
      Reviewed by Geoffrey Garen.
      
      Added code to handle conversion between ObjC and JS booleans.
      
      * bridge/objc/objc_instance.mm:
      (ObjcInstance::invokeObjcMethod):
      * bridge/objc/objc_utility.h:
      * bridge/objc/objc_utility.mm:
      (JSC::Bindings::convertValueToObjcValue):
      (JSC::Bindings::convertObjcValueToValue):
      (JSC::Bindings::objcValueTypeForType):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149216 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ee3bfb8b
    • ap@apple.com's avatar
      [WK2] WKContextClient doesn't need to be versioned yet · 647ec6aa
      ap@apple.com authored
              https://bugs.webkit.org/show_bug.cgi?id=115279
      
              Reviewed by Anders Carlsson.
      
              * Shared/APIClientTraits.cpp:
              * Shared/APIClientTraits.h:
              * UIProcess/API/C/WKContext.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149212 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      647ec6aa
    • andersca@apple.com's avatar
      Downloads need to be converted from the NSURLConnection, not canceled and... · f8a82238
      andersca@apple.com authored
      Downloads need to be converted from the NSURLConnection, not canceled and restarted, when using the NetworkProcess
      https://bugs.webkit.org/show_bug.cgi?id=115277
      <rdar://problem/12890184>
      
      Reviewed by Sam Weinig.
      
      * NetworkProcess/NetworkConnectionToWebProcess.cpp:
      (WebKit::NetworkConnectionToWebProcess::convertMainResourceLoadToDownload):
      Ask the download manager to convert the main resource load to a download.
      
      * NetworkProcess/NetworkConnectionToWebProcess.messages.in:
      Add new message.
      
      * NetworkProcess/NetworkResourceLoader.h:
      (WebKit::NetworkResourceLoader::handle):
      Add getter.
      
      * Shared/Downloads/mac/DownloadMac.mm:
      (dispatchOnMainThread):
      Helper function that ensures that a given block is called on the main thread.
      
      (-[WKDownloadAsDelegate downloadDidBegin:]):
      (-[WKDownloadAsDelegate download:didReceiveAuthenticationChallenge:]):
      (-[WKDownloadAsDelegate download:didReceiveResponse:]):
      (-[WKDownloadAsDelegate download:didReceiveDataOfLength:]):
      (-[WKDownloadAsDelegate download:shouldDecodeSourceDataOfMIMEType:]):
      (-[WKDownloadAsDelegate download:decideDestinationWithSuggestedFilename:]):
      (-[WKDownloadAsDelegate download:didCreateDestination:]):
      (-[WKDownloadAsDelegate downloadDidFinish:]):
      (-[WKDownloadAsDelegate download:didFailWithError:]):
      Use dispatchOnMainThread.
      
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::receivedPolicyDecision):
      Remove code that cancels the current load and starts a new download.
      
      * WebProcess/WebPage/WebFrame.cpp:
      (WebKit::WebFrame::convertMainResourceLoadToDownload):
      Send the ConvertMainResourceLoadToDownload message to the network process.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149211 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f8a82238
    • roger_fong@apple.com's avatar
      Unreviewed. Rebaseline a bunch of tests and run optimize-baselines after... · 7b162fc8
      roger_fong@apple.com authored
      Unreviewed. Rebaseline a bunch of tests and run optimize-baselines after disabling sub-pixel layout on mac.
      https://bugs.webkit.org/show_bug.cgi?id=114999.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149210 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7b162fc8
    • roger_fong@apple.com's avatar
      Disable sub-pixel layout on mac. · 15e60a3d
      roger_fong@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=114999.
      
      Reviewed by Simon Fraser.
      
      * Configurations/FeatureDefines.xcconfig:
      * WebCore.exp.in: 
      Export symbol needed to be added for IntRect(const LayoutRect&) constructor, 
      which is now being used in pixelSnappedIntRect(const LayoutRect&) in LayoutRect.h after disabling sub-pixel layout.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149209 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      15e60a3d
    • simon.fraser@apple.com's avatar
      Inspector window is often blank when opened · 74e8cc1d
      simon.fraser@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=115220
      <rdar://problem/13735496>
      
      Reviewed by Tim Horton.
      
      After disabling tiled scrolling and accelerated drawing in r149006, the
      Inspector window was often missing its content after opening. This only
      happened when the user has a preference on disk to use accelerated drawing
      in the Inspector.
      
      The missing content was caused by a failure to connect the correct contextID
      for remote layer hosting. On window creation, we hook up a context using
      WindowServer layer hosting (the default), but then switch back to app-hosted
      layers for the Inspector window. This switching happens in didUpdateBackingStoreState(),
      but that can be re-entered via its call to sendUpdateBackingStoreState(). In
      that cause, on unwinding the stack it would call enterAcceleratedCompositingMode()
      with a stale layerTreeContext.
      
      Fix by moving the code that exits/enters accelerated compositing mode to before
      the call to sendUpdateBackingStoreState() that can cause re-entrancy. That avoids
      use of a possibly stale layerTreeContext.
      
      * UIProcess/DrawingAreaProxyImpl.cpp:
      (WebKit::DrawingAreaProxyImpl::didUpdateBackingStoreState):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149208 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      74e8cc1d
    • simon.fraser@apple.com's avatar
      Layer-backed WebViews don't repaint content outside the visible area · 1e867bca
      simon.fraser@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=115275
      
      Reviewed by Beth Dakin.
      
      Source/WebCore:
      
      Export ScrollView::setPaintsEntireContents(bool).
      
      * WebCore.exp.in:
      
      Source/WebKit/mac:
      
      When a client of WebView makes the WebView be layer-backed, then
      AppKit propagaes the layer-backing down to the WebHTMLView (but
      no further).
      
      In this situation, we had a bug where content that was not
      in the visible content rect would not get repainted, because
      WebCore clips repaints to the visible rect.
      
      Fix by calling ScrollView::setPaintsEntireContents(bool) from
      -[WebHTMLView setLayer:], saying that we need
      to paint the entire contents if we have a layer.
      
      * WebView/WebHTMLView.mm:
      (-[WebHTMLView setLayer:]):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149207 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1e867bca
    • commit-queue@webkit.org's avatar
      [BlackBerry] Check for valid element in elementTouched · a3d45c03
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=115205
      
      Patch by Nima Ghanavatian <nghanavatian@blackberry.com> on 2013-04-26
      Reviewed by Rob Buis.
      
      Internally reviewed by Genevieve Mak.
      
      PR 331546
      We might receive a null ptr from nodeAsElementIfApplicable which
      is passed in here. Check to make sure it's valid before using.
      
      * WebKitSupport/InputHandler.cpp:
      (BlackBerry::WebKit::InputHandler::elementTouched):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149206 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a3d45c03
    • oliver@apple.com's avatar
      Make stack tracing more robust · 85a46c14
      oliver@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=115272
      
      Reviewed by Geoffrey Garen.
      
      CallFrame already handles stack walking confusion robustly,
      so we should make sure that the actual walk handles that as well.
      
      * interpreter/Interpreter.cpp:
      (JSC::getCallerInfo):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149205 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      85a46c14
    • ap@apple.com's avatar
      Crashes under ResourceHandle::continueDidReceiveResponse when loading blobs · 78f09c57
      ap@apple.com authored
              https://bugs.webkit.org/show_bug.cgi?id=115273
      
              Reviewed by Anders Carlsson.
      
              Covered by multiple existing tests (when using NetworkProcess), including:
              - http/tests/fileapi/blob-url-in-subframe.html
              - http/tests/fileapi/create-blob-url-from-data-url.html
      
              * NetworkProcess/NetworkResourceLoader.cpp:
              (WebKit::NetworkResourceLoader::continueDidReceiveResponse):
              Work around BlobResourceHandle badness.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149204 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      78f09c57
    • commit-queue@webkit.org's avatar
      Change RenderMeter::valueRatio() visibility to public · c38bae9c
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=115266
      
      This function is currently unused.
      However, it is necessary to implement a RenderTheme capable of rendering Meter elements.
      
      Patch by Daker Fernandes Pinheiro <daker.pinheiro@openbossa.org> on 2013-04-26
      Reviewed by Alexis Menard.
      
      No new tests, because no behaviour is changed.
      
      * rendering/RenderMeter.h:
      (RenderMeter):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149203 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c38bae9c
    • timothy@apple.com's avatar
      Add Runtime.parse to the Inspector protocol. · 422fdd5a
      timothy@apple.com authored
      This will be used to parse console expressions for errors
      before evaluating them fully.
      
      https://webkit.org/b/115242
      
      Reviewed by Oliver Hunt.
      
      * ForwardingHeaders/parser/ParserError.h: Added.
      * inspector/Inspector.json:
      * inspector/InspectorRuntimeAgent.cpp:
      (WebCore::InspectorRuntimeAgent::parse):
      * inspector/InspectorRuntimeAgent.h:
      (InspectorRuntimeAgent):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149202 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      422fdd5a
    • benjamin@webkit.org's avatar
      Fix the copyright years after r149057 · a238e7f5
      benjamin@webkit.org authored
      Patch by Benjamin Poulain <bpoulain@apple.com> on 2013-04-26
      
      * page/DiagnosticLoggingKeys.cpp: I accidentally removed a year from
      the copyright in r149057.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149201 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a238e7f5
    • commit-queue@webkit.org's avatar
      Web Inspector: Crash due to null items from getDOMStorageItems · d99ac61f
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=115176
      
      Patch by Konrad Piascik <kpiascik@blackberry.com> on 2013-04-26
      Reviewed by Joseph Pecoraro.
      
      Source/WebCore:
      
      findStorageArea was returning a null storageArea causing the items
      input paramater to not be set.  This was happening without any error
      being set at all.  Set an error to prevent a crash when we try to
      convert the result to a JSON string.
      
      Added tests to check if session and local storage are empty that
      they are still functional.
      
      * inspector/InspectorDOMStorageAgent.cpp:
      (WebCore::InspectorDOMStorageAgent::getDOMStorageItems):
      
      LayoutTests:
      
      Tests to check that if local and session storage are empty
      that they still work corerctly.
      
      * inspector/storage-panel-dom-storage-empty-expected.txt: Added.
      * inspector/storage-panel-dom-storage-empty.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149200 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d99ac61f
    • ap@apple.com's avatar
      [WK2] Remove NetworkResourceLoader::cleanupOnMainThread · 6e70881a
      ap@apple.com authored
              https://bugs.webkit.org/show_bug.cgi?id=115268
      
              Reviewed by Brady Eidson.
      
              All cleanup() callers are now on main thread, and this indirection only complicates debugging.
      
              * NetworkProcess/NetworkResourceLoader.cpp:
              (WebKit::NetworkResourceLoader::connectionToWebProcessDidClose):
              (WebKit::NetworkResourceLoader::abortInProgressLoad):
              (WebKit::NetworkResourceLoader::didFinishLoading):
              (WebKit::NetworkResourceLoader::didFail):
              * NetworkProcess/NetworkResourceLoader.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149199 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6e70881a
    • aestes@apple.com's avatar
      [WebKit2] CustomProtocolManager's m_registeredSchemes HashSet can be accessed by multiple threads · 5425f25a
      aestes@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=115267
      
      Reviewed by Alexey Proskuryakov.
      
      * Shared/Network/CustomProtocols/CustomProtocolManager.h: Added a Mutex to protect m_registeredSchemes.
      * Shared/Network/CustomProtocols/mac/CustomProtocolManagerMac.mm:
      (WebKit::CustomProtocolManager::registerScheme): Acquired the mutex before accessing m_registeredSchemes.
      (WebKit::CustomProtocolManager::unregisterScheme): Ditto.
      (WebKit::CustomProtocolManager::supportsScheme): Ditto.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149198 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5425f25a
    • eric.carlson@apple.com's avatar
      [Mac] media/track/track-mode.html sometimes trigger InvalidStateError · a7415133
      eric.carlson@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=115045
      
      Reviewed by Alexey Proskuryakov.
      
      * media/track/track-mode.html: Don't assume that the video element is ready for seeking
          after a 100ms timeout.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149197 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a7415133
    • ap@apple.com's avatar
      Blobs are not associated with connection when there are no sandbox extensions · b2a128b6
      ap@apple.com authored
              https://bugs.webkit.org/show_bug.cgi?id=115264
      
              Reviewed by Brady Eidson.
      
              Covered by multiple fast/files tests when using NetworkProcess.
      
              * NetworkProcess/FileAPI/NetworkBlobRegistry.cpp:
              (WebKit::NetworkBlobRegistry::registerBlobURL): Fixed a logic error.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149196 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b2a128b6
    • zandobersek@gmail.com's avatar
      [GTK] Clean up the TestWebKitAPI GNUmakefile.am · ce5023d8
      zandobersek@gmail.com authored
      https://bugs.webkit.org/show_bug.cgi?id=115233
      
      Reviewed by Martin Robinson.
      
      Specify unconditional, non-installable program targets in one declaration. Only conditionally specify
      WebKit2-specific targets, not the complete target setups (i.e. targets' sources, cppflags listings etc.).
      Add missing unit test source files to the TestWTF program, namely HashSet.cpp and MetaAllocator.cpp.
      Specify the TestWTF program's CXXFLAGS to be the same as the global cxxflags as the source files need to
      be compiled with the -fno-rtti flag that's present in the global_cxxflags variable.
      
      * TestWebKitAPI/GNUmakefile.am:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149195 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ce5023d8
    • aestes@apple.com's avatar
      [WebKit2] Loading a resource from a custom protocol in a synchronous XHR times out · 756003ad
      aestes@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=115223
      
      Reviewed by Darin Adler.
      
      Source/WebKit2:
      
      When WebKit performs a synchronous load on the Mac, it spins a nested
      run loop in a mode that only accepts input from the NSURLConnection
      performing the load. When the load is for a custom protocol in WebKit2,
      we proxy it to the UI process via CoreIPC messages, but the response
      messages from the UI process are never processed as long as the run
      loop is in a non-common mode (and we wouldn't want to process messages
      that could re-enter WebCore in the middle of loading, anyway). Since
      these messages never make it back to the NSURLConnection handling the
      request, the connection eventually times out.
      
      Fix this by using a work queue to handle custom protocol messages in
      the networking process. The work queue can process incoming custom
      protocol messages while the main thread is blocked.
      
      * NetworkProcess/NetworkProcess.cpp:
      (WebKit::NetworkProcess::initializeConnection): Called
      initializeConnection() on all the NetworkProcess's supplements.
      * Shared/ChildProcessSupplement.h: Added a base class for
      NetworkProcessSupplement and WebProcessSupplement which defines
      initializeConnection and provides an empty default implementation.
      (WebKit::ChildProcessSupplement::~ChildProcessSupplement):
      (WebKit::ChildProcessSupplement::initializeConnection):
      * Shared/Network/CustomProtocols/CustomProtocolManager.h:
      * Shared/Network/CustomProtocols/mac/CustomProtocolManagerMac.mm:
      (WebKit::CustomProtocolManager::CustomProtocolManager): Instantiated a
      work queue for message processing.
      (WebKit::CustomProtocolManager::initializeConnection): Added the work
      queue as a message receiver on the CoreIPC connection.
      (WebKit::CustomProtocolManager::initialize): If we're in the web
      process and the network process is being used, unregister and destroy
      the work queue we previously created. It'd be better to not create it
      in the first place, but we have to register our work queue with the
      CoreIPC connection before it is established, which is before the UI
      process has told us whether the network process is in use.
      * Shared/Network/NetworkProcessSupplement.h: Inherited from
      ChildProcessSupplement.
      * WebKit2.xcodeproj/project.pbxproj: Added ChildProcessSupplement.h.
      * WebProcess/WebProcess.cpp:
      (WebKit::WebProcess::initializeConnection): Called
      initializeConnection() on all the WebProcess's supplements.
      * WebProcess/WebProcessSupplement.h: Inherited from
      ChildProcessSupplement.
      
      Tools:
      
      Added an API test.
      
      * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: Added new files.
      * TestWebKitAPI/Tests/CustomProtocolsSyncXHRTest.mm: Added.
      (TestWebKitAPI::TEST): Tested that a synchronous XHR does not time out
      when it loads a request with a custom protocol.
      * TestWebKitAPI/Tests/WebKit2/custom-protocol-sync-xhr.html: Added.
      * TestWebKitAPI/Tests/WebKit2ObjC/CustomProtocolsTest.mm: Moved the
      NSURLProtocol subclass to TestProtocol.{h, mm} and did some
      miscellaneous cleanup.
      * TestWebKitAPI/mac/TestProtocol.h: Copied from Source/WebKit2/WebProcess/WebProcessSupplement.h.
      * TestWebKitAPI/mac/TestProtocol.mm: Copied from Tools/TestWebKitAPI/Tests/WebKit2ObjC/CustomProtocolsTest.mm.
      (+[TestProtocol canInitWithRequest:]):
      (+[TestProtocol canonicalRequestForRequest:]):
      (+[TestProtocol requestIsCacheEquivalent:toRequest:]):
      (+[TestProtocol scheme]):
      (-[TestProtocol startLoading]):
      (-[TestProtocol stopLoading]):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149194 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      756003ad
    • mrobinson@webkit.org's avatar
      Remove the remaining Skia #ifdefs · 3f23d7ac
      mrobinson@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=114886
      
      Reviewed by Benjamin Poulain.
      
      Source/WebCore:
      
      * html/HTMLCanvasElement.cpp: Remove Skia #ifdef references.
      * platform/graphics/BitmapImage.cpp: Ditto.
      * platform/graphics/FloatPoint.h: Ditto.
      * platform/graphics/FloatRect.h: Ditto.
      * platform/graphics/FontCache.h: Ditto.
      * platform/graphics/Gradient.cpp: Ditto.
      * platform/graphics/Gradient.h: Ditto.
      * platform/graphics/GraphicsContext.cpp: Ditto.
      * platform/graphics/GraphicsContext.h: Ditto.
      * platform/graphics/GraphicsContext3D.h: Ditto.
      * platform/graphics/ImageBuffer.cpp: Ditto.
      * platform/graphics/ImageBuffer.h: Ditto.
      * platform/graphics/ImageBufferData.h: Ditto.
      * platform/graphics/IntPoint.h: Ditto.
      * platform/graphics/IntRect.h: Ditto.
      * platform/graphics/NativeImagePtr.h: Ditto.
      * platform/graphics/Path.h: Ditto.
      * platform/graphics/Pattern.cpp: Ditto.
      * platform/graphics/Pattern.h: Ditto.
      * platform/graphics/filters/FEBlend.h: Ditto.
      * platform/graphics/filters/FEColorMatrix.h: Ditto.
      * platform/graphics/filters/FEComponentTransfer.h: Ditto.
      * platform/graphics/filters/FEComposite.h: Ditto.
      * platform/graphics/filters/FEConvolveMatrix.h: Ditto.
      * platform/graphics/filters/FEDisplacementMap.h: Ditto.
      * platform/graphics/filters/FEGaussianBlur.h: Ditto.
      * platform/graphics/filters/FELighting.h: Ditto.
      * platform/graphics/filters/FEMorphology.h: Ditto.
      * platform/graphics/filters/FEOffset.h: Ditto.
      * platform/graphics/filters/FilterEffect.cpp: Ditto.
      * platform/graphics/filters/FilterEffect.h: Ditto.
      * platform/graphics/transforms/AffineTransform.h: Ditto.
      * platform/graphics/transforms/TransformationMatrix.h: Ditto.
      * platform/image-decoders/ImageDecoder.cpp: Ditto.
      * platform/image-decoders/ImageDecoder.h: Ditto.
      * platform/image-decoders/jpeg/JPEGImageDecoder.cpp: Ditto.
      * platform/image-decoders/webp/WEBPImageDecoder.cpp: Ditto.
      * platform/mac/LocalCurrentGraphicsContext.h: Ditto.
      * platform/mac/LocalCurrentGraphicsContext.mm: Ditto.
      * rendering/svg/RenderSVGResourceSolidColor.cpp: Ditto.
      * svg/graphics/SVGImage.cpp: Ditto.
      * svg/graphics/SVGImage.h: Ditto.
      
      Source/WebKit/blackberry:
      
      * Api/WebPage.cpp: Remove Skia #ifdef references.
      * WebCoreSupport/AboutDataUseFeatures.in: Ditto.
      
      Source/WTF:
      
      * wtf/Platform.h:
      
      Tools:
      
      * DumpRenderTree/blackberry/PixelDumpSupportBlackBerry.cpp:
      (createBitmapContextFromWebView): Remove Skia #ifdef references.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149193 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3f23d7ac
    • commit-queue@webkit.org's avatar
      [GTK] Compilation of ProcessLauncherGtk.cpp fails due to unresolved symbols · 1ab11b50
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=115240
      
      Patch by Eduardo Lima Mitev <elima@igalia.com> on 2013-04-26
      Reviewed by Martin Robinson.
      
      * UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp: Includes sys/socket.h if OS is Linux
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149192 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1ab11b50
    • ddkilzer@apple.com's avatar
      Sort jsc-test-list · 9d30754e
      ddkilzer@apple.com authored
      $ sort -f -o LayoutTests/fast/js/jsc-test-list LayoutTests/fast/js/jsc-test-list
      
      * fast/js/jsc-test-list: Sort case-insensitively.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149191 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9d30754e
    • ddkilzer@apple.com's avatar
      Upstream iOS changes to jsc-test-list · 2e6a39d9
      ddkilzer@apple.com authored
      Reviewed by Michael Saboff.
      
      * fast/js/jsc-test-list: Add tests.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149190 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2e6a39d9
    • kadam@inf.u-szeged.hu's avatar
      [Qt] Unreviewed gardening. Skip two failing tests. · c2d0d84e
      kadam@inf.u-szeged.hu authored
      * platform/qt/TestExpectations:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149189 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c2d0d84e
    • allan.jensen@digia.com's avatar
      Assert in JSC::Heap::unprotect when closing facebook.com web site · e382645e
      allan.jensen@digia.com authored
      https://bugs.webkit.org/show_bug.cgi?id=115058
      
      Reviewed by Darin Adler.
      
      Grab a JSLock before calling RootObject::invalidate().
      
      * bindings/js/ScriptController.cpp:
      (WebCore::ScriptController::~ScriptController):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149188 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e382645e
    • eric.carlson@apple.com's avatar
      [Mac] in-band cues sometimes have incorrect duration · 681bcdcd
      eric.carlson@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=115200
      
      Reviewed by Jer Noble.
      
      No new tests, this is not possible to test in DRT.
      
      * html/track/InbandTextTrack.cpp:
      (WebCore::InbandTextTrack::addGenericCue): Don't add completed cues to the map.
      (WebCore::InbandTextTrack::removeGenericCue): Log when a cue is removed from the track.
      
      * platform/graphics/avfoundation/InbandTextTrackPrivateAVF.cpp:
      (WebCore::InbandTextTrackPrivateAVF::InbandTextTrackPrivateAVF): Initialize m_pendingCueStatus.
      (WebCore::InbandTextTrackPrivateAVF::processCue): Never call update() on a cue that is delivered
          while seeking.
      (WebCore::InbandTextTrackPrivateAVF::beginSeeking): Flush all incomplete cues, remember that
          we are seeking.
      (WebCore::InbandTextTrackPrivateAVF::resetCueValues):
      * platform/graphics/avfoundation/InbandTextTrackPrivateAVF.h:
      
      * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
      (WebCore::MediaPlayerPrivateAVFoundation::seek): Call track->beginSeeking() instead of resetCueValues().
      (WebCore::MediaPlayerPrivateAVFoundation::seekCompleted): Call track->endSeeking().
      
      * platform/graphics/avfoundation/objc/InbandTextTrackPrivateAVFObjC.mm:
      (WebCore::InbandTextTrackPrivateAVFObjC::kind): Include class name in Kind enum values to
          avoid compile error.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149187 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      681bcdcd
    • akling@apple.com's avatar
      Remove wxWebKit from WebCore. · b2a7c797
      akling@apple.com authored
      <http://webkit.org/b/115255>
      
      Reviewed by Anders Carlsson.
      
      * DerivedSources.make:
      * WebCorePrefix.h:
      * bindings/js/JSInspectorFrontendHostCustom.cpp:
      (WebCore::JSInspectorFrontendHost::port):
      * config.h:
      * html/HTMLFormElement.cpp:
      * platform/ContextMenu.h:
      (ContextMenu):
      * platform/ContextMenuItem.h:
      * platform/Cursor.h:
      * platform/DragData.h:
      * platform/DragImage.h:
      * platform/FileSystem.h:
      * platform/PlatformExportMacros.h:
      * platform/PlatformKeyboardEvent.h:
      (PlatformKeyboardEvent):
      * platform/PlatformMenuDescription.h:
      * platform/PlatformMouseEvent.h:
      (PlatformMouseEvent):
      * platform/PlatformWheelEvent.h:
      (PlatformWheelEvent):
      * platform/ScrollView.cpp:
      * platform/ScrollView.h:
      (ScrollView):
      * platform/Widget.h:
      * platform/win/SharedTimerWin.cpp:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149186 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b2a7c797
    • commit-queue@webkit.org's avatar
      use-after-free removing a frame from its parent in a beforeload event of an OBJECT element · 89c9ced3
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=113964
      
      Source/WebCore:
      
      Object elements have the tendecny to modify or even fully remove
      the containing Document inside beforeload callback. While Document is removed,
      RenderArena gets destroyed. Retained RenderWidgets fails to function with NULL arena.
      
      Protect RendereArena from getting wiped out, when Document is removed
      during FrameView::updateWidget().
      
      Patch by Zalan Bujtas <zalan@apple.com> on 2013-04-26
      Reviewed by Antti Koivisto.
      
      Test: fast/frames/crash-remove-iframe-during-object-beforeload.html
      
      * dom/Document.cpp:
      (WebCore::Document::attach):
      * dom/Document.h:
      (Document):
      * page/FrameView.cpp:
      (WebCore::FrameView::updateWidgets):
      * rendering/RenderArena.h:
      (RenderArena):
      (WebCore::RenderArena::create):
      
      LayoutTests:
      
      Patch by Zalan Bujtas <zalan@apple.com> on 2013-04-26
      Reviewed by Antti Koivisto.
      
      * fast/frames/crash-remove-iframe-during-object-beforeload-expected.txt: Added.
      * fast/frames/crash-remove-iframe-during-object-beforeload.html: Added.
      * fast/frames/resources/remove-this-during-object-beforeload.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149185 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      89c9ced3
    • mikhail.pozdnyakov@intel.com's avatar
      Add move semantics to RefPtr · 38350942
      mikhail.pozdnyakov@intel.com authored
      https://bugs.webkit.org/show_bug.cgi?id=115033
      
      Reviewed by Anders Carlsson.
      
      Add move constructors and move assignment operators to RefPtr when
      COMPILER_SUPPORTS(CXX_RVALUE_REFERENCES).
      This obviates unnecessary reffing/ureffing when RefPtr is created
      or assigned from rvalue references.
      
      * wtf/RefPtr.h:
      (RefPtr):
      (WTF::RefPtr::RefPtr):
      (WTF::RefPtr::operator=):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149184 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      38350942
    • mhahnenberg@apple.com's avatar
      REGRESSION(r149165): It made many tests crash on 32 bit · 20b11f3f
      mhahnenberg@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=115227
      
      Reviewed by Csaba Osztrogonác.
      
      m_reservation is uninitialized when ENABLE(SUPER_REGION) is false.
      
      * heap/SuperRegion.cpp:
      (JSC::SuperRegion::~SuperRegion):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149183 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      20b11f3f
    • mary.wu@torchmobile.com.cn's avatar
      [BlackBerry] Should check if it's cached resource before download · e7cafc3f
      mary.wu@torchmobile.com.cn authored
      https://bugs.webkit.org/show_bug.cgi?id=115101
      
      Reviewed by Rob Buis.
      
      Since main resource maybe cached, if user want to save the resource, we first check
      if it's cached. If yes, don't need to initiate a fresh load again, but get the
      cached resource data out to save.
      
      RIM bug# 324003, internally reviewed by Charles Wei.
      
      * WebCoreSupport/FrameLoaderClientBlackBerry.cpp:
      (WebCore::FrameLoaderClientBlackBerry::convertMainResourceLoadToDownload):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149182 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e7cafc3f
    • zandobersek@gmail.com's avatar
      [GTK] Enable Web Audio layout tests on WK2, provide platform-specific expected output · 2a4be453
      zandobersek@gmail.com authored
      https://bugs.webkit.org/show_bug.cgi?id=114513
      
      Reviewed by Philippe Normand.
      
      Unskip the Web Audio layout tests for GTK WK2 and generate platform-specific baselines for the tests.
      The audio baselines are not audibly different from the generic baselines, but it can be expected that
      different backends won't produce the same binary output.
      
      The remaining failures are marked as such in the TestExpectations, each failure having the appropriate
      bug handle covering the issue. The tests are still skipped for GTK WK1 as DumpRenderTree is still missing
      infrastructure support for running these tests.
      
      * platform/gtk-wk1/TestExpectations:
      * platform/gtk/TestExpectations:
      * platform/gtk/webaudio/audiobuffersource-loop-points-expected.wav: Added.
      * platform/gtk/webaudio/audiobuffersource-playbackrate-expected.wav: Added.
      * platform/gtk/webaudio/codec-tests/aac/vbr-128kbps-44khz-expected.wav: Added.
      * platform/gtk/webaudio/codec-tests/mp3/128kbps-44khz-expected.wav: Added.
      * platform/gtk/webaudio/codec-tests/vorbis/vbr-128kbps-44khz-expected.wav: Added.
      * platform/gtk/webaudio/codec-tests/vorbis/vbr-70kbps-44khz-expected.wav: Added.
      * platform/gtk/webaudio/codec-tests/vorbis/vbr-96kbps-44khz-expected.wav: Added.
      * platform/gtk/webaudio/codec-tests/wav/24bit-22khz-resample-expected.wav: Added.
      * platform/gtk/webaudio/codec-tests/wav/24bit-44khz-expected.wav: Added.
      * platform/gtk/webaudio/oscillator-custom-expected.wav: Added.
      * platform/gtk/webaudio/oscillator-sawtooth-expected.wav: Added.
      * platform/gtk/webaudio/oscillator-sine-expected.wav: Added.
      * platform/gtk/webaudio/oscillator-square-expected.wav: Added.
      * platform/gtk/webaudio/oscillator-triangle-expected.wav: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149181 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2a4be453
    • mary.wu@torchmobile.com.cn's avatar
      [BlackBerry] Clean up load interface in WebPage · 4ba3b796
      mary.wu@torchmobile.com.cn authored
      https://bugs.webkit.org/show_bug.cgi?id=113267
      
      Reviewed by Rob Buis.
      
      Source/WebKit/blackberry:
      
      Remove unused loadExtended(), combine load() and download() api in WebPage.
      RIM Bug# 315535, internally reviewed by Joe Mason.
      
      * Api/WebPage.cpp:
      (BlackBerry::WebKit::WebPage::load):
      * Api/WebPage.h:
      
      Tools:
      
      Update DumpRenderTree with change of load() interface in WebPage.
      RIM Bug# 315535, internally reviewed by Joe Mason.
      
      * DumpRenderTree/blackberry/DumpRenderTree.cpp:
      (BlackBerry::WebKit::DumpRenderTree::runTest):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149180 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4ba3b796
    • csaavedra@igalia.com's avatar
      [GTK] Unreviewed gardnering. Unskip passing test. · 7e91d244
      csaavedra@igalia.com authored
      * platform/gtk/TestExpectations: Unskip http/tests/inspector/compiler-source-mapping-debug.html
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149179 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7e91d244
    • akling@apple.com's avatar
      Remove wxWebKit from WTF. · 1da85dee
      akling@apple.com authored
      <http://webkit.org/b/115249>
      
      Reviewed by Antti Koivisto.
      
      * wscript: Removed.
      * wtf/ArrayBufferView.h:
      (ArrayBufferView):
      * wtf/CurrentTime.cpp:
      * wtf/DisallowCType.h:
      * wtf/ExportMacros.h:
      * wtf/FeatureDefines.h:
      * wtf/Platform.h:
      * wtf/text/WTFString.h:
      (String):
      * wtf/wx/MainThreadWx.cpp: Removed.
      * wtf/wx/StringWx.cpp: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149178 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1da85dee