1. 28 Aug, 2013 6 commits
  2. 27 Aug, 2013 4 commits
    • ap@apple.com's avatar
      [WK2] Remove USE_WEBPROCESS_EVENT_SIMULATION · 9d2c818b
      ap@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=120379
      
      Reviewed by Darin Adler.
      
      All major platforms have implemented UI process eventSender support, keeping old
      web process side code only adds confusion.
      
      * WebKitTestRunner/InjectedBundle/EventSendingController.cpp:
      (WTR::EventSendingController::EventSendingController):
      (WTR::EventSendingController::mouseDown):
      (WTR::EventSendingController::mouseUp):
      (WTR::EventSendingController::mouseMoveTo):
      (WTR::EventSendingController::leapForward):
      * WebKitTestRunner/InjectedBundle/EventSendingController.h:
      * WebKitTestRunner/TestController.cpp:
      (WTR::TestController::resetStateToConsistentValues):
      (WTR::TestController::didReceiveMessageFromInjectedBundle):
      (WTR::TestController::didReceiveSynchronousMessageFromInjectedBundle):
      * WebKitTestRunner/TestController.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154720 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9d2c818b
    • roger_fong@apple.com's avatar
      NRWT on AppleWin port should delete semaphore lock files during cleanup tasks. · 6d96e5f5
      roger_fong@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=120370.
      
      Reviewed by Brent Fulgham.
      
      * Scripts/webkitpy/port/win.py:
      (WinPort.delete_sem_locks):
      (WinPort.setup_test_run):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154704 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6d96e5f5
    • commit-queue@webkit.org's avatar
      [GTK] Missing DRT AccessibilityUIElement::addNotificationListener implementation · 018efa13
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=119883
      
      Tools:
      
      Implemented the notification listener for AccessibilityUIElement. The signal is generated
      by AXObjectCache::postPlatformNotification() and received by axObjectEventListener().
      axObjectEventListener will then invoke JSObjectCallAsFunction() with the respective
      callback function. The global callback function and callbacks for specific elements are
      stored in a HashMap in AccessibilityCallbacksAtk.cpp.
      
      Patch by Denis Nomiyama <d.nomiyama@samsung.com> on 2013-08-27
      Reviewed by Chris Fleizach.
      
      * DumpRenderTree/AccessibilityUIElement.h: Added a notification handler for GTK+
      * DumpRenderTree/atk/AccessibilityCallbacks.h: Added addAccessibilityNotificationListener()
      and removeAccessibilityNotificationListener()
      * DumpRenderTree/atk/AccessibilityCallbacksAtk.cpp:
      (axObjectEventListener): Call JS callback for global notification or for a specific element
      (disconnectAccessibilityCallbacks): Only disconnect if logging is off and there is no
      notification handler
      (addAccessibilityNotificationHandler): Add notification listener to the list
      (removeAccessibilityNotificationHandler): Remove notification listener from the list
      * DumpRenderTree/atk/AccessibilityControllerAtk.cpp:
      (AccessibilityController::setLogAccessibilityEvents): Set logging off before disconnecting
      * DumpRenderTree/atk/AccessibilityNotificationHandlerAtk.cpp: Added.
      (AccessibilityNotificationHandler::AccessibilityNotificationHandler): Create handler
      (AccessibilityNotificationHandler::~AccessibilityNotificationHandler): Destroy handler.
      Remove handler from the list and disconnect callbacks
      (AccessibilityNotificationHandler::setNotificationFunctionCallback): Set the notification
      callback and connect callbacks to signals
      * DumpRenderTree/atk/AccessibilityNotificationHandlerAtk.h: Added.
      (AccessibilityNotificationHandler::setPlatformElement): Set platform element
      (AccessibilityNotificationHandler::platformElement): Get platform element
      (AccessibilityNotificationHandler::notificationFunctionCallback): Get notification callback
      * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp:
      (AccessibilityUIElement::addNotificationListener): Create notification handler, set the
      platform element and the notification callback
      (AccessibilityUIElement::removeNotificationListener):
      * DumpRenderTree/efl/CMakeLists.txt: Added AccessibilityNotificationHandlerAtk.cpp/h
      * GNUmakefile.am: Added AccessibilityNotificationHandlerAtk.cpp/h
      
      LayoutTests:
      
      Unskipped the checkbox notification test in a11y and added the expected results.
      
      Patch by Denis Nomiyama <d.nomiyama@samsung.com> on 2013-08-27
      Reviewed by Chris Fleizach.
      
      * platform/gtk/TestExpectations: Unskipped the checkbox notification test in a11y.
      * platform/gtk/accessibility/aria-checkbox-sends-notification-expected.txt: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154697 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      018efa13
    • carlosgc@webkit.org's avatar
      Unreviewed. Fix GTK+ build after r154601. · b9bb159e
      carlosgc@webkit.org authored
      * TestWebKitAPI/GNUmakefile.am: Remove mac specific file from
      compilation added by mistake in r154601.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154668 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b9bb159e
  3. 26 Aug, 2013 14 commits
    • ap@apple.com's avatar
      WebKitTestRunner needs to protect the user's pasteboard contents while running · 68e3d992
      ap@apple.com authored
              https://bugs.webkit.org/show_bug.cgi?id=81419
              <rdar://problem/11066794>
      
              Reviewed by Darin Adler.
      
              Mostly a copy/paste of DRT code.
      
              Tested manually by making sure that editing/pasteboard/copy-image-with-alt-text.html
              doesn't interfere with my clipboard while being run in a loop.
      
              * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj:
              * WebKitTestRunner/mac/PoseAsClass.h: Added.
              * WebKitTestRunner/mac/PoseAsClass.mm: Added.
              * WebKitTestRunner/mac/TestControllerMac.mm:
              (WTR::TestController::platformInitialize):
              (WTR::TestController::platformDestroy):
              * WebKitTestRunner/mac/WebKitTestRunnerPasteboard.h: Added.
              * WebKitTestRunner/mac/WebKitTestRunnerPasteboard.mm: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154652 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      68e3d992
    • commit-queue@webkit.org's avatar
      Unreviewed, rolling out r154640. · 132bec82
      commit-queue@webkit.org authored
      http://trac.webkit.org/changeset/154640
      https://bugs.webkit.org/show_bug.cgi?id=120329
      
      Caused flaky crashes on a lot of editing tests (Requested by
      rniwa on #webkit).
      
      * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj:
      * WebKitTestRunner/mac/PoseAsClass.h: Removed.
      * WebKitTestRunner/mac/PoseAsClass.mm: Removed.
      * WebKitTestRunner/mac/TestControllerMac.mm:
      (WTR::TestController::platformInitialize):
      (WTR::TestController::platformDestroy):
      * WebKitTestRunner/mac/WebKitTestRunnerPasteboard.h: Removed.
      * WebKitTestRunner/mac/WebKitTestRunnerPasteboard.mm: Removed.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154650 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      132bec82
    • mitz@apple.com's avatar
      Automatic bug reports case pain · f5e5752d
      mitz@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=120330
      
      Reviewed by Anders Carlsson.
      
      * Scripts/webkitpy/tool/commands/download.py: Made the following changes to the Description
      of bugs filed by the bot: changed “the sheriff-bot” to “webkitbot”, changed “case pain” to
      “fail”, and removed “"Only you can prevent forest fires." -- Smokey the Bear”.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154649 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f5e5752d
    • aestes@apple.com's avatar
      Fix issues found by the Clang Static Analyzer · a872654a
      aestes@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=120230
      
      Reviewed by Darin Adler.
      
      Source/JavaScriptCore:
      
      * API/JSValue.mm:
      (valueToString): Don't leak every CFStringRef when in Objective-C GC.
      * API/ObjCCallbackFunction.mm:
      (JSC::ObjCCallbackFunctionImpl::~ObjCCallbackFunctionImpl): Don't
      release m_invocation's target since NSInvocation will do it for us on
      -dealloc.
      (objCCallbackFunctionForBlock): Tell NSInvocation to retain its target
      and -release our reference to the copied block.
      * API/tests/minidom.c:
      (createStringWithContentsOfFile): Free buffer before returning.
      * API/tests/testapi.c:
      (createStringWithContentsOfFile): Ditto.
      
      Source/WebCore:
      
      * WebCore.xcodeproj/project.pbxproj: Removed FoundationExtras.h.
      * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: Removed CFAutoreleaseHelper().
      (AXTextMarkerRange): Used HardAutorelease() instead of
      CFAutoreleaseHelper().
      (AXTextMarkerRangeStart): Ditto.
      (AXTextMarkerRangeEnd): Ditto.
      (textMarkerForVisiblePosition): Ditto.
      * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
      (-[WebCoreAVFMovieObserver initWithCallback:]): Called [super init]
      first so that we don't later use ivars from the wrong self.
      (-[WebCoreAVFLoaderDelegate initWithCallback:]): Ditto.
      * platform/mac/FoundationExtras.h: Removed.
      * platform/mac/KURLMac.mm:
      (WebCore::KURL::operator NSURL *): Used WTF's HardAutorelease().
      * platform/mac/WebCoreNSURLExtras.mm:
      (WebCore::mapHostNameWithRange): Used HardAutorelease() instead of
      WebCoreCFAutorelease().
      (WebCore::URLWithData): Ditto.
      (WebCore::userVisibleString): Ditto.
      (WebCore::URLByRemovingComponentAndSubsequentCharacter): Used Vector<>
      with an inline capacity rather than heap-allocating a buffer.
      * platform/mac/WebCoreObjCExtras.h: Used HardAutorelease() instead of
      WebCoreCFAutorelease().
      * platform/text/mac/StringImplMac.mm:
      (WTF::StringImpl::operator NSString *): Used WTF's HardAutorelease().
      
      Source/WebKit/mac:
      
      * Misc/WebNSFileManagerExtras.mm:
      (-[NSFileManager _webkit_startupVolumeName]): Used HardAutorelease()
      instead of WebCFAutorelease().
      * Misc/WebNSObjectExtras.h: Removed definition of WebCFAutorelease().
      * Misc/WebNSURLExtras.mm:
      (-[NSURL _web_URLWithLowercasedScheme]): Used HardAutorelease()
      instead of WebCFAutorelease().
      * Plugins/Hosted/WebHostedNetscapePluginView.mm:
      (-[WebHostedNetscapePluginView createPluginLayer]): Stop leaking
      CGColors (CALayer retains its backgroundColor property despite the
      property attributes claiming otherwise).
      * Plugins/WebBasePluginPackage.mm:
      (+[WebBasePluginPackage preferredLocalizationName]): Used
      HardAutorelease() instead of WebCFAutorelease().
      * WebView/WebDeviceOrientationProviderMock.mm:
      (-[WebDeviceOrientationProviderMockInternal lastOrientation]): Stop
      leaking WebDeviceOrientations.
      * WebView/WebPDFRepresentation.mm:
      (-[WebPDFRepresentation convertPostScriptDataSourceToPDF:]): Used
      HardAutorelease() instead of WebCFAutorelease().
      * WebView/WebView.mm:
      (+[WebView _setCacheModel:]): Ditto.
      (-[WebView _removeObjectForIdentifier:]): Ditto.
      
      Source/WebKit2:
      
      * UIProcess/API/mac/WKBrowsingContextController.mm:
      (autoreleased): Don't leak CFURLs when in Objective-C GC.
      * WebProcess/WebPage/mac/WKAccessibilityWebPageObject.mm:
      (-[WKAccessibilityWebPageObject accessibilityAttributeValue:forParameter:]):
      Don't leak CFStrings when in Objective-C GC.
      
      Source/WTF:
      
      * wtf/ObjcRuntimeExtras.h:
      (HardAutorelease): Added a canonical implementation of HardAutorelease.
      
      Tools:
      
      * DumpRenderTree/mac/DumpRenderTreePasteboard.m:
      (-[LocalPasteboard initWithName:]): Called [super init] first so that we
      don't later use ivars from the wrong self.
      * DumpRenderTree/mac/TestRunnerMac.mm:
      (-[APITestDelegate initWithCompletionCondition:]): Ditto.
      * TestWebKitAPI/Tests/WebKit2ObjC/CustomProtocolsTest.mm:
      (TestWebKitAPI::TEST): Don't leak WKProcessGroups,
      WKBrowsingContextGroups, and WKViews.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154647 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a872654a
    • ap@apple.com's avatar
      WebKitTestRunner needs to protect the user's pasteboard contents while running · 94145085
      ap@apple.com authored
              https://bugs.webkit.org/show_bug.cgi?id=81419
              <rdar://problem/11066794>
      
              Reviewed by Darin Adler.
      
              Mostly a copy/paste of DRT code.
      
              Tested manually by making sure that editing/pasteboard/copy-image-with-alt-text.html
              doesn't interfere with my clipboard while being run in a loop.
      
              * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj:
              * WebKitTestRunner/mac/PoseAsClass.h: Added.
              * WebKitTestRunner/mac/PoseAsClass.mm: Added.
              * WebKitTestRunner/mac/TestControllerMac.mm:
              (WTR::TestController::platformInitialize):
              (WTR::TestController::platformDestroy):
              * WebKitTestRunner/mac/WebKitTestRunnerPasteboard.h: Added.
              * WebKitTestRunner/mac/WebKitTestRunnerPasteboard.mm: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154640 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      94145085
    • zandobersek@gmail.com's avatar
      [GTK] Include most of the WebKit2 unit tests into the build and testing · 993d7cd5
      zandobersek@gmail.com authored
      https://bugs.webkit.org/show_bug.cgi?id=120307
      
      Reviewed by Philippe Normand.
      
      There are still various unit test source files that are not being included into
      the build. This patch includes most of these, only leaving out tests that do not
      compile or test features that are not supported by the GTK port.
      
      * Scripts/run-gtk-tests: Skip four newly-added tests that are failing or timing out.
      (TestRunner):
      * TestWebKitAPI/GNUmakefile.am:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154601 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      993d7cd5
    • carlosgc@webkit.org's avatar
      [GTK] Allow to run tests without Xvfb in run-gtk-tests · e5803653
      carlosgc@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=120298
      
      Reviewed by Philippe Normand.
      
      Add --no-xvfb command line option to run tests in the current
      display.
      
      * Scripts/run-gtk-tests:
      (TestRunner._run_xvfb): Return early if option --no-xvfb has been
      passed.
      (TestRunner._setup_testing_environment): Use helper function
      _run_xvfb to start Xvfb if needed.
      (TestRunner._tear_down_testing_environment): Check Xvfb is
      actually running before trying to terminate it.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154600 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e5803653
    • zarvai@inf.u-szeged.hu's avatar
      Adding Gabor Abraham to contributors.json. · f6e9e95f
      zarvai@inf.u-szeged.hu authored
      Reviewed by Csaba Osztrogonác.
      
      * Scripts/webkitpy/common/config/contributors.json:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154598 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f6e9e95f
    • carlosgc@webkit.org's avatar
      [GTK] Add support for passing test directories to run-gtk-tests · 71b7492d
      carlosgc@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=120296
      
      Reviewed by Philippe Normand.
      
      * Scripts/run-gtk-tests:
      (TestRunner._get_tests_from_dir): Helper function to return all
      unit tests found in a given directory.
      (TestRunner._get_tests): Check the given tests passed in the
      command line, so that if a directory is found the tests contained
      in the directory are added to the list of tests to run.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154595 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      71b7492d
    • carlosgc@webkit.org's avatar
      [GTK] Improve the stop/reload button implementation in MiniBrowser · 92012cf4
      carlosgc@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=120292
      
      Reviewed by Philippe Normand.
      
      - Use an instance member of BrowserWindow for the button widget
        instead of a global variable.
      - Use notify::is-loading to monitor the WebView load instead of
        the estimated-load-progress property.
      - Use webkit_web_view_is_loading() to check whether the view
        is loading to change the button icon instead of a string
        comparison of the gtk stock icon id.
      - Use the right casts to fix compile warning.
      
      * MiniBrowser/gtk/BrowserWindow.c:
      (reloadOrStopCallback):
      (webViewLoadProgressChanged):
      (webViewIsLoadingChanged):
      (browser_window_init):
      (browserWindowConstructed):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154594 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      92012cf4
    • commit-queue@webkit.org's avatar
      [Qt] Remove the fix in QWebPage::javaScriptConsoleMessage introduced by (r61433) · 40f338cb
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=119791
      
      Source/WebKit/qt:
      
      Patch by Arunprasad Rajkumar <arurajku@cisco.com> on 2013-08-26
      Reviewed by Jocelyn Turcotte.
      
      * WidgetApi/qwebpage.cpp:
      (QWebPage::javaScriptConsoleMessage): Removed hack specific to DRT, introduced by
      (r61433).
      
      Tools:
      
      Patch by Arunprasad Rajkumar <arurajku@cisco.com> on 2013-08-26
      Reviewed by Jocelyn Turcotte.
      
      Load empty url to send onunload event to currently running page. onunload event is
      mandatory for LayoutTests/plugins/open-and-close-window-with-plugin.html and
      LayoutTests/plugins/geturlnotify-during-document-teardown.html.
      
      * DumpRenderTree/qt/DumpRenderTreeQt.cpp:
      (WebPage::~WebPage):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154593 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      40f338cb
    • carlosgc@webkit.org's avatar
      [GTK] Silence MiniBrowser compile warnings due to recent GTK+ deprecations · 65016125
      carlosgc@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=120290
      
      Reviewed by Philippe Normand.
      
      * MiniBrowser/gtk/GNUmakefile.am: Add
      -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_6 compile option.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154592 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      65016125
    • zandobersek@gmail.com's avatar
      [GTK] Add WillLoad test files to the TestWebKitAPI/TestWebKit2 program · c3953e52
      zandobersek@gmail.com authored
      https://bugs.webkit.org/show_bug.cgi?id=120288
      
      Reviewed by Carlos Garcia Campos.
      
      * TestWebKitAPI/GNUmakefile.am: Add the WillLoad.cpp build target that should be compiled
      into the TestWebKit2 program. The InjectedBundle counterpart file is added to the build as well.
      These unit tests are at the moment failing in debug configurations, so it would be nice to
      have the GTK builds report these failures as well.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154590 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c3953e52
    • ryuan.choi@samsung.com's avatar
      [EFL] EWebLauncher is executed as full screen with device pixel ratio · e9a0cde5
      ryuan.choi@samsung.com authored
      https://bugs.webkit.org/show_bug.cgi?id=120282
      
      Reviewed by Gyuyoung Kim.
      
      * EWebLauncher/main.c:
      Use double instead of float for device_pixel_ratio which is passed to ECORE_GETOPT_VALUE_DOUBLE.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154587 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e9a0cde5
  4. 25 Aug, 2013 1 commit
  5. 24 Aug, 2013 4 commits
    • fpizlo@apple.com's avatar
      Unreviewed, fix build-webkit --ftl-jit in the case that you have your own llvm... · 8c4949bc
      fpizlo@apple.com authored
      Unreviewed, fix build-webkit --ftl-jit in the case that you have your own llvm directory. We need to
      prune 'libgtest' and friends from the llvm build, since WebKit builds its own and none of the llvm
      libraries depend on libgtest anyway.
      
      * Scripts/copy-webkitlibraries-to-product-directory:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154563 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8c4949bc
    • darin@apple.com's avatar
      RetainPtr lacks move constructor for case when argument is a RetainPtr of a different type · d8ed2323
      darin@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=120255
      
      Reviewed by Andreas Kling.
      
      Source/WTF:
      
      * wtf/RetainPtr.h: Added missing move constructor, modeled on the other move constructor,
      and the one from RetPtr.
      
      Tools:
      
      * TestWebKitAPI/Tests/WTF/ns/RetainPtr.mm: Added four tests covering move assignment and construction.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154555 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d8ed2323
    • andersca@apple.com's avatar
      Don't treat NSLocalizedDescriptionKey and... · 7d28d21e
      andersca@apple.com authored
      Don't treat NSLocalizedDescriptionKey and NSLocalizedRecoverySuggestionErrorKey as NSLocalized macros
      https://bugs.webkit.org/show_bug.cgi?id=120249
      
      Reviewed by Andreas Kling.
      
      * Scripts/extract-localizable-strings:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154547 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7d28d21e
    • carlosgc@webkit.org's avatar
      [GTK] Expose WebKitFrame in WebKit2GTK+ web extensions API · 51f44d80
      carlosgc@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=119743
      
      Reviewed by Anders Carlsson.
      
      Source/WebKit2:
      
      * GNUmakefile.list.am: Add new files to compilation.
      * Shared/APIClientTraits.cpp: Update for new interface version.
      * Shared/APIClientTraits.h: Ditto.
      * UIProcess/API/gtk/docs/webkit2gtk-docs.sgml: Add WebKitFrame
      section.
      * UIProcess/API/gtk/docs/webkit2gtk-sections.txt: Add new public
      symbols.
      * UIProcess/API/gtk/docs/webkit2gtk.types: Add
      webkit_frame_get_type.
      * UIProcess/API/gtk/tests/FrameTest.cpp: Added.
      (WebKitFrameTest::create):
      (WebKitFrameTest::webPageFromArgs):
      (WebKitFrameTest::testMainFrame):
      (WebKitFrameTest::testURI):
      (WebKitFrameTest::testJavaScriptContext):
      (WebKitFrameTest::runTest):
      (registerTests):
      * UIProcess/API/gtk/tests/GNUmakefile.am: Add new test files.
      * UIProcess/API/gtk/tests/TestFrame.cpp: Added.
      (webkitFrameTestRun):
      (testWebKitFrameMainFrame):
      (testWebKitFrameURI):
      (testWebKitFrameJavaScriptContext):
      (beforeAll):
      (afterAll):
      * WebProcess/InjectedBundle/API/c/WKBundlePage.h: Add
      willDestroyFrame callback to the injected bundle loader client, to
      notify the client when a frame is about to be destroyed.
      * WebProcess/InjectedBundle/API/gtk/WebKitFrame.cpp: Added.
      (webkit_frame_class_init):
      (webkitFrameCreate):
      (webkit_frame_is_main_frame):
      (webkit_frame_get_uri):
      (webkit_frame_get_javascript_global_context):
      * WebProcess/InjectedBundle/API/gtk/WebKitFrame.h: Added.
      * WebProcess/InjectedBundle/API/gtk/WebKitFramePrivate.h: Added.
      * WebProcess/InjectedBundle/API/gtk/WebKitWebPage.cpp:
      (webkitFrameGetOrCreate): Helper function to create a WebKitFrame
      wrapping the given WebFrame or returning the wrapper if it already
      exists.
      (willDestroyFrame): Remove the WebKitFrame wrapping the given
      WebFrame if it exists.
      (webkitWebPageCreate): Add willDestroyFrame implementation to
      injected bundle loader client.
      (webkit_web_page_get_main_frame): Return the main frame of the
      page.
      * WebProcess/InjectedBundle/API/gtk/WebKitWebPage.h:
      * WebProcess/InjectedBundle/API/gtk/webkit-web-extension.h:
      Include WebKitFrame.h.
      * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp:
      (WebKit::InjectedBundlePageLoaderClient::willDestroyFrame): New
      callback to be called when a frame is about to be destroyed.
      * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h:
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      (WebKit::WebFrameLoaderClient::frameLoaderDestroyed): Call
      willDestroyFrame callback of injected bundle loader client.
      * WebProcess/qt/QtBuiltinBundlePage.cpp:
      (WebKit::QtBuiltinBundlePage::QtBuiltinBundlePage): Add
      willDestroyFrame callback.
      
      Tools:
      
      * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
      (WTR::InjectedBundlePage::InjectedBundlePage): Add
      willDestroyFrame.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154540 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      51f44d80
  6. 23 Aug, 2013 5 commits
  7. 22 Aug, 2013 5 commits
  8. 21 Aug, 2013 1 commit