1. 16 Oct, 2009 1 commit
    • eric@webkit.org's avatar
      2009-10-15 Yuzo Fujishima <yuzo@google.com> · b66f65b2
      eric@webkit.org authored
              Reviewed by David Levin.
      
              Add mod_pywebsocket to test Web Sockets.
              http://code.google.com/p/pywebsocket/
              https://bugs.webkit.org/show_bug.cgi?id=27490
      
              * pywebsocket/COPYING: Added.
              * pywebsocket/MANIFEST.in: Added.
              * pywebsocket/README: Added.
              * pywebsocket/example/echo_client.py: Added.
              * pywebsocket/example/echo_wsh.py: Added.
              * pywebsocket/mod_pywebsocket/__init__.py: Added.
              * pywebsocket/mod_pywebsocket/dispatch.py: Added.
              * pywebsocket/mod_pywebsocket/handshake.py: Added.
              * pywebsocket/mod_pywebsocket/headerparserhandler.py: Added.
              * pywebsocket/mod_pywebsocket/msgutil.py: Added.
              * pywebsocket/mod_pywebsocket/standalone.py: Added.
              * pywebsocket/mod_pywebsocket/util.py: Added.
              * pywebsocket/setup.py: Added.
              * pywebsocket/test/config.py: Added.
              * pywebsocket/test/mock.py: Added.
              * pywebsocket/test/run_all.py: Added.
              * pywebsocket/test/test_dispatch.py: Added.
              * pywebsocket/test/test_handshake.py: Added.
              * pywebsocket/test/test_mock.py: Added.
              * pywebsocket/test/test_msgutil.py: Added.
              * pywebsocket/test/test_util.py: Added.
              * pywebsocket/test/testdata/handlers/blank_wsh.py: Added.
              * pywebsocket/test/testdata/handlers/origin_check_wsh.py: Added.
              * pywebsocket/test/testdata/handlers/sub/exception_in_transfer_wsh.py: Added.
              * pywebsocket/test/testdata/handlers/sub/no_wsh_at_the_end.py: Added.
              * pywebsocket/test/testdata/handlers/sub/non_callable_wsh.py: Added.
              * pywebsocket/test/testdata/handlers/sub/plain_wsh.py: Added.
              * pywebsocket/test/testdata/handlers/sub/wrong_handshake_sig_wsh.py: Added.
              * pywebsocket/test/testdata/handlers/sub/wrong_transfer_sig_wsh.py: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49672 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b66f65b2
  2. 15 Oct, 2009 39 commits
    • abarth@webkit.org's avatar
      2009-10-15 Adam Barth <abarth@webkit.org> · c69b85e9
      abarth@webkit.org authored
              Reviewed by Darin Adler.
      
              Factor ResourceLoadNotifier out of FrameLoader
              https://bugs.webkit.org/show_bug.cgi?id=30379
      
              These methods have virtually no interaction with the rest of
              FrameLoader.
      
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              * dom/Document.cpp:
              (WebCore::Document::resourceRetrievedByXMLHttpRequest):
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::FrameLoader):
              (WebCore::FrameLoader::continueLoadAfterWillSubmitForm):
              (WebCore::ResourceLoadNotifier::ResourceLoadNotifier):
              (WebCore::ResourceLoadNotifier::activeDocumentLoader):
              (WebCore::ResourceLoadNotifier::assignIdentifierToInitialRequest):
              (WebCore::ResourceLoadNotifier::willSendRequest):
              (WebCore::ResourceLoadNotifier::didReceiveResponse):
              (WebCore::ResourceLoadNotifier::didReceiveData):
              (WebCore::ResourceLoadNotifier::didFailToLoad):
              (WebCore::ResourceLoadNotifier::didLoadResourceByXMLHttpRequest):
              (WebCore::FrameLoader::sendRemainingDelegateMessages):
              (WebCore::FrameLoader::requestFromDelegate):
              (WebCore::ResourceLoadNotifier::didFinishLoad):
              (WebCore::ResourceLoadNotifier::didReceiveAuthenticationChallenge):
              (WebCore::ResourceLoadNotifier::didCancelAuthenticationChallenge):
              (WebCore::ResourceLoadNotifier::dispatchAssignIdentifierToInitialRequest):
              (WebCore::ResourceLoadNotifier::dispatchWillSendRequest):
              (WebCore::ResourceLoadNotifier::dispatchDidReceiveResponse):
              (WebCore::ResourceLoadNotifier::dispatchDidReceiveContentLength):
              (WebCore::ResourceLoadNotifier::dispatchDidFinishLoading):
              * loader/FrameLoader.h:
              (WebCore::FrameLoader::notifier):
              * loader/MainResourceLoader.cpp:
              (WebCore::MainResourceLoader::receivedError):
              * loader/ResourceLoadNotifier.cpp: Added.
              (WebCore::ResourceLoadNotifier::ResourceLoadNotifier):
              (WebCore::ResourceLoadNotifier::didReceiveAuthenticationChallenge):
              (WebCore::ResourceLoadNotifier::didCancelAuthenticationChallenge):
              (WebCore::ResourceLoadNotifier::assignIdentifierToInitialRequest):
              (WebCore::ResourceLoadNotifier::willSendRequest):
              (WebCore::ResourceLoadNotifier::didReceiveResponse):
              (WebCore::ResourceLoadNotifier::didReceiveData):
              (WebCore::ResourceLoadNotifier::didFinishLoad):
              (WebCore::ResourceLoadNotifier::didFailToLoad):
              (WebCore::ResourceLoadNotifier::didLoadResourceByXMLHttpRequest):
              (WebCore::ResourceLoadNotifier::dispatchAssignIdentifierToInitialRequest):
              (WebCore::ResourceLoadNotifier::dispatchWillSendRequest):
              (WebCore::ResourceLoadNotifier::dispatchDidReceiveResponse):
              (WebCore::ResourceLoadNotifier::dispatchDidReceiveContentLength):
              (WebCore::ResourceLoadNotifier::dispatchDidFinishLoading):
              (WebCore::ResourceLoadNotifier::activeDocumentLoader):
              * loader/ResourceLoadNotifier.h: Added.
              * loader/ResourceLoader.cpp:
              (WebCore::ResourceLoader::willSendRequest):
              (WebCore::ResourceLoader::didReceiveResponse):
              (WebCore::ResourceLoader::didReceiveData):
              (WebCore::ResourceLoader::didFinishLoadingOnePart):
              (WebCore::ResourceLoader::didFail):
              (WebCore::ResourceLoader::didCancel):
              (WebCore::ResourceLoader::didReceiveAuthenticationChallenge):
              (WebCore::ResourceLoader::didCancelAuthenticationChallenge):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49671 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c69b85e9
    • eric@webkit.org's avatar
      2009-10-15 Roland Steiner <rolandsteiner@google.com> · 32183f8f
      eric@webkit.org authored
              Reviewed by Darin Fisher.
      
              Bug 30427 -  Remove unneeded methods in ChromiumDataObject
              (https://bugs.webkit.org/show_bug.cgi?id=30427)
      
              Remove no longer needed methods from ChromiumDataObject.
      
              No new tests (no functional change)
      
              * platform/chromium/ChromiumDataObject.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49670 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      32183f8f
    • eric@webkit.org's avatar
      2009-10-15 James Robinson <jamesr@google.com> · c84987ac
      eric@webkit.org authored
              Reviewed by David Levin.
      
              Updates check-webkit-style to reflect that code inside a namespace should not be indented, even in a header file.
      
              https://bugs.webkit.org/show_bug.cgi?id=30426
      
              * Scripts/modules/cpp_style.py:
              * Scripts/modules/cpp_style_unittest.py:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49669 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c84987ac
    • dbates@webkit.org's avatar
      2009-10-15 Daniel Bates <dbates@webkit.org> · 857aa226
      dbates@webkit.org authored
              No review, rolling out r49644.
              http://trac.webkit.org/changeset/49644
              
              We need to think about this change some more. See bug #30418 
              for more details.
      
              * page/XSSAuditor.cpp:
              (WebCore::XSSAuditor::canEvaluate):
              (WebCore::XSSAuditor::canEvaluateJavaScriptURL):
              (WebCore::XSSAuditor::canCreateInlineEventListener):
              (WebCore::XSSAuditor::canLoadExternalScriptFromSrc):
              (WebCore::XSSAuditor::canLoadObject):
              (WebCore::XSSAuditor::canSetBaseElementURL):
              (WebCore::XSSAuditor::findInRequest):
              * page/XSSAuditor.h:
      2009-10-15  Daniel Bates  <dbates@webkit.org>
      
              No review, rolling out r49644.
              http://trac.webkit.org/changeset/49644
      
              * http/tests/security/xssAuditor/base-href-comment-expected.txt: Removed.
              * http/tests/security/xssAuditor/base-href-comment.html: Removed.
              * http/tests/security/xssAuditor/iframe-javascript-url-comment-expected.txt: Removed.
              * http/tests/security/xssAuditor/iframe-javascript-url-comment.html: Removed.
              * http/tests/security/xssAuditor/img-onerror-HTML-comment-expected.txt: Removed.
              * http/tests/security/xssAuditor/img-onerror-HTML-comment.html: Removed.
              * http/tests/security/xssAuditor/img-onerror-comment-expected.txt: Removed.
              * http/tests/security/xssAuditor/img-onerror-comment.html: Removed.
              * http/tests/security/xssAuditor/object-tag-comment-expected.txt: Removed.
              * http/tests/security/xssAuditor/object-tag-comment.html: Removed.
              * http/tests/security/xssAuditor/resources/echo-before-image.pl: Removed.
              * http/tests/security/xssAuditor/resources/echo-head-base-href-comment.pl: Removed.
              * http/tests/security/xssAuditor/script-tag-comment-HTML-entity-expected.txt: Removed.
              * http/tests/security/xssAuditor/script-tag-comment-HTML-entity.html: Removed.
              * http/tests/security/xssAuditor/script-tag-comment-expected.txt: Removed.
              * http/tests/security/xssAuditor/script-tag-comment.html: Removed.
              * http/tests/security/xssAuditor/script-tag-with-source-comment-expected.txt: Removed.
              * http/tests/security/xssAuditor/script-tag-with-source-comment.html: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49668 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      857aa226
    • bweinstein@apple.com's avatar
      Rubber-stamped by Adele Peterson. · e9e48cc6
      bweinstein@apple.com authored
      Update Windows expected results after http://trac.webkit.org/changeset/49619.
      
      * platform/win/fast/inline: Added.
      * platform/win/fast/inline/dirtyLinesForInline-expected.txt: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49667 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e9e48cc6
    • jhoneycutt@apple.com's avatar
      Add SPI to determine whether a node is a halted plug-in. · 816d66ee
      jhoneycutt@apple.com authored
      Part of <rdar://problem/7273354> Halted plug-ins should restart on
      mouseover
      
      https://bugs.webkit.org/show_bug.cgi?id=30151
      
      Reviewed by Darin Adler.
      
      WebCore:
      
      * plugins/PluginView.cpp:
      (WebCore::PluginView::PluginView):
      Initialize m_isHalted.
      
      * plugins/PluginView.h:
      (WebCore::PluginView::isHalted):
      Return m_isHalted.
      
      * plugins/win/PluginViewWin.cpp:
      (WebCore::PluginView::halt):
      Set m_isHalted to true.
      (WebCore::PluginView::restart):
      clear m_isHalted.
      
      WebKit/win:
      
      * Interfaces/IWebViewPrivate.idl:
      Add isNodehaltedPlugin().
      
      * WebView.cpp:
      (WebView::isNodeHaltedPlugin):
      From the IDOMNode, query for the DOMNode. From the DOMNode, get the
      WebCore::Node. Get the node's renderer, and check whether it is a
      RenderWidget. If so, get its Widget, and check whether it's a
      PluginView. If so, return the result of PluginView::isHalted().
      
      * WebView.h:
      Declare isNodeHaltedPlugin().
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49666 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      816d66ee
    • jmalonzo@webkit.org's avatar
      2009-10-15 Jan Michael Alonzo <jmalonzo@webkit.org> · eff81ec1
      jmalonzo@webkit.org authored
              Reviewed by Xan Lopez.
      
              [GTK] marshal stamp files are not cleaned after a distclean
              https://bugs.webkit.org/show_bug.cgi?id=30156
      
              Add stamp-po to CLEANFILES.
      
              * GNUmakefile.am:
      
      2009-10-15  Jan Michael Alonzo  <jmalonzo@webkit.org>
      
              Reviewed by Xan Lopez.
      
              [GTK] marshal stamp files are not cleaned after a distclean
              https://bugs.webkit.org/show_bug.cgi?id=30156
      
              Add the stamp files directly to cleanfiles. Also rearrange the
              variable declarations so we don't miss any files that need to be
              cleaned up during the clean targets.
      
              * GNUmakefile.am:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49665 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      eff81ec1
    • bweinstein@apple.com's avatar
      Fixes <http://webkit.org/b/30411>. · 343bf62d
      bweinstein@apple.com authored
      REGRESSION(49485): pdevenv doesn't compile in parallel for non-chromium builds on Windows.
              
      Reviewed by Adam Roben.
      
      Added a check for isChromium() in pdevenv, and pass /useenv if we are not
      building Chromium.
      
      * Scripts/pdevenv:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49664 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      343bf62d
    • pfeldman@chromium.org's avatar
      2009-10-15 Pavel Feldman <pfeldman@chromium.org> · d8fc33d9
      pfeldman@chromium.org authored
              Not reviewed: skip inspector tests on windows until
              incremental build catches frontend files.
      
              * platform/win/Skipped:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49663 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d8fc33d9
    • zoltan@webkit.org's avatar
      2009-10-15 Zoltan Horvath <zoltan@webkit.org> · 2a3a6ca9
      zoltan@webkit.org authored
                                                                        
              Reviewed by Oliver Hunt.
      
              [Qt] Build fix for QtWebKit after r49649.
      
              Change JSC::HasNonDefaultMark to OverridesMarkChildren in createStructure function.
      
              * bridge/qt/qt_runtime.h:
              (JSC::Bindings::QtRuntimeMethod::createStructure):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49662 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2a3a6ca9
    • eric@webkit.org's avatar
      2009-10-15 Andrew Scherkus <scherkus@chromium.org> · 2284f187
      eric@webkit.org authored
              Reviewed by Darin Adler.
      
              Fix media layout test file ordering so both branded and unbranded builds of Chromium will pass layout tests.
      
              https://bugs.webkit.org/show_bug.cgi?id=30369
      
              * media/media-file.js: Fixed file ordering.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49661 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2284f187
    • kevino@webkit.org's avatar
      Reviewed by Kevin Ollivier. · 52dcfd39
      kevino@webkit.org authored
      Update the wxPython simple.py sample to match current wxWebKit API.
              
      https://bugs.webkit.org/show_bug.cgi?id=30406
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49657 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      52dcfd39
    • pfeldman@chromium.org's avatar
      2009-10-15 Pavel Feldman <pfeldman@chromium.org> · d881a570
      pfeldman@chromium.org authored
              Reviewed by Timothy Hatcher.
      
              Web Inspector: Prevent subsequent tests from failing upon inspector
              test timeout.
      
              https://bugs.webkit.org/show_bug.cgi?id=30404
      
              * inspector/evaluate-in-frontend.js:
              (onload.setTimeout):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49656 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d881a570
    • kevino@webkit.org's avatar
      Reviewed by Kevin Ollivier. · f1c154b9
      kevino@webkit.org authored
      Add Mac package building scripts for wx.
              
      https://bugs.webkit.org/show_bug.cgi?id=30405
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49654 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f1c154b9
    • eric.carlson@apple.com's avatar
      2009-10-15 Eric Carlson <eric.carlson@apple.com> · 7a5b80fa
      eric.carlson@apple.com authored
              Reviewed by Adele Peterson.
      
              <rdar://problem/7306052> Fullscreen max/min volume buttons non-functional
      
              * WebView/WebVideoFullscreenHUDWindowController.mm:
              (-[WebVideoFullscreenHUDWindowController windowDidLoad]): Set volume buttons target and action.
              (-[WebVideoFullscreenHUDWindowController decrementVolume:]): New, decrement the volume by 10%.
              (-[WebVideoFullscreenHUDWindowController incrementVolume:]): New, increment the volume by 10%.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49653 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7a5b80fa
    • eric@webkit.org's avatar
      2009-10-15 Zan Dobersek <zandobersek@gmail.com> · 02d8fa3c
      eric@webkit.org authored
              Reviewed by Eric Seidel.
      
              [Gtk][Layout tests] Generate results for dom tests
              https://bugs.webkit.org/show_bug.cgi?id=29893
      
              Add results for dom tests and enable these tests in the Skipped.
      
              * platform/gtk/Skipped:
              * platform/gtk/dom/xhtml/level3/core/canonicalform08-expected.txt: Copied from LayoutTests/platform/mac/dom/xhtml/level3/core/canonicalform08-expected.txt.
              * platform/gtk/dom/xhtml/level3/core/canonicalform09-expected.txt: Copied from LayoutTests/platform/mac/dom/xhtml/level3/core/canonicalform09-expected.txt.
              * platform/gtk/dom/xhtml/level3/core/documentgetinputencoding03-expected.txt: Added.
              * platform/gtk/dom/xhtml/level3/core/entitygetinputencoding02-expected.txt: Added.
              * platform/gtk/dom/xhtml/level3/core/entitygetxmlversion02-expected.txt: Added.
              * platform/gtk/dom/xhtml/level3/core/nodegetbaseuri05-expected.txt: Added.
              * platform/gtk/dom/xhtml/level3/core/nodegetbaseuri07-expected.txt: Added.
              * platform/gtk/dom/xhtml/level3/core/nodegetbaseuri09-expected.txt: Added.
              * platform/gtk/dom/xhtml/level3/core/nodegetbaseuri10-expected.txt: Added.
              * platform/gtk/dom/xhtml/level3/core/nodegetbaseuri11-expected.txt: Added.
              * platform/gtk/dom/xhtml/level3/core/nodegetbaseuri15-expected.txt: Added.
              * platform/gtk/dom/xhtml/level3/core/nodegetbaseuri17-expected.txt: Added.
              * platform/gtk/dom/xhtml/level3/core/nodegetbaseuri18-expected.txt: Added.
              * platform/gtk/dom/xhtml/level3/core/nodelookupnamespaceuri01-expected.txt: Added.
              * platform/gtk/dom/xhtml/level3/core/nodelookupprefix19-expected.txt: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49652 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      02d8fa3c
    • dbates@webkit.org's avatar
      2009-10-15 Daniel Bates <dbates@webkit.org> · fdfa3473
      dbates@webkit.org authored
              Reviewed by Adam Roben.
      
              https://bugs.webkit.org/show_bug.cgi?id=24731
              And
              rdar://problem/5015961
              
              Implements support for DHTML drag-and-drop operations (i.e. ondragstart, ondragend)
              in the Windows build so that it conforms to the Mac OS X build. Hence, dropEffect is
              correctly set.
              
              The WebView and WebDropSource drag-and-drop functions, as called by function
              DoDragDrop in its event loop, neither used the drop effect as specified by
              event.dataTransfer.dropEffect nor respected event.dataTransfer.effectsAllowed.
              Instead, these functions defaulted to some hardcoded drop effect and set of
              allowed drop effects, respectively.
      
              Tests: fast/events/drag-and-drop.html
      
              * WebCoreSupport/WebDragClient.cpp:
              (WebDragClient::startDrag):
              * WebDropSource.cpp:
              (WebDropSource::QueryContinueDrag): Moved call to EventHandler::dragSourceEndedAt
              into method WebDragClient::startDrag.
              * WebDropSource.h:
              * WebView.cpp:
              (WebView::keyStateToDragOperation): Fixes <rdar://problem/5015961>. Determines
              appropriate drop effect from state of keyboard and allowed effects
              m_page->dragController()->sourceDragOperation().
              (WebView::DragEnter):
              (WebView::DragOver):
              (WebView::Drop):
              * WebView.h:
      2009-10-15  Daniel Bates  <dbates@webkit.org>
      
              Reviewed by Adam Roben.
      
              https://bugs.webkit.org/show_bug.cgi?id=24731
              And
              rdar://problem/5015961
              
              Tests that DHTML drag-and-drop works correctly.
              
              Note, this test fails when effectAllowed == "uninitialized" because 
              this effect has not been implemented yet (see bug #30291).
      
              * fast/events/drag-and-drop-expected.txt: Added.
              * fast/events/drag-and-drop.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49651 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fdfa3473
    • pfeldman@chromium.org's avatar
      2009-10-15 Pavel Feldman <pfeldman@chromium.org> · caf6b49e
      pfeldman@chromium.org authored
              Not reviewed - build fix.
      
              Web Inspector: add file missing in r49648
      
              * inspector/front-end/TestController.js: Added.
              (WebInspector.TestController):
              (WebInspector.TestController.prototype.waitUntilDone):
              (WebInspector.TestController.prototype.notifyDone):
              (WebInspector.evaluateForTestInFrontend):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49650 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      caf6b49e
    • oliver@apple.com's avatar
      Make typeinfo flags default to false · 66f55503
      oliver@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=30372
      
      Reviewed by Darin Adler
      
      Part 2 -- Reverse the TypeInfo HasDefaultMark flag to OverridesMarkChildren, etc
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49649 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      66f55503
    • pfeldman@chromium.org's avatar
      2009-10-15 Pavel Feldman <pfeldman@chromium.org> · 19453840
      pfeldman@chromium.org authored
              Reviewed by Timothy Hatcher.
      
              Web Inspector: introduce test controller with waitUntilDone
              on frontend side.
      
              https://bugs.webkit.org/show_bug.cgi?id=30400
      
              * WebCore.gypi:
              * WebCore.vcproj/WebCore.vcproj:
              * inspector/front-end/TestController.js: Added.
              (WebInspector.TestController):
              (WebInspector.TestController.prototype.waitUntilDone):
              (WebInspector.TestController.prototype.notifyDone):
              (WebInspector.evaluateForTestInFrontend):
              * inspector/front-end/WebKit.qrc:
              * inspector/front-end/inspector.html:
              * inspector/front-end/inspector.js:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49648 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      19453840
    • xan@webkit.org's avatar
      2009-10-15 Xan Lopez <xlopez@igalia.com> · f26e1ee7
      xan@webkit.org authored
              Reviewed by Gustavo Noronha.
      
              Protect WebSocket calls in case the feature is not compiled in.
      
              * webkit/webkitwebview.cpp:
              (webkit_web_view_update_settings):
              (webkit_web_view_settings_notify):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49647 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f26e1ee7
    • kov@webkit.org's avatar
      2009-10-15 Zan Dobersek <zandobersek@gmail.com> · 2b636783
      kov@webkit.org authored
              Reviewed by Gustavo Noronha.
      
              Rebaseline tests after changes made in r49405.
      
              * platform/gtk/editing/execCommand/4916541-expected.txt: Rebaseline.
              * platform/gtk/editing/execCommand/5138441-expected.txt: Ditto.
              * platform/gtk/editing/execCommand/5481523-expected.txt: Ditto.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49646 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2b636783
    • xan@webkit.org's avatar
      2009-10-15 Xan Lopez <xlopez@igalia.com> · 93e21a77
      xan@webkit.org authored
              Remove obsolete test from Skipped list.
      
              * platform/gtk/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49645 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      93e21a77
    • dbates@webkit.org's avatar
      2009-10-15 Daniel Bates <dbates@webkit.org> · 5509c305
      dbates@webkit.org authored
              Reviewed by Adam Barth.
      
              https://bugs.webkit.org/show_bug.cgi?id=27895
              
              Fixes an issue in which injecting an inline event handler whose value ends in a single-line
              JavaScript comment can bypass the XSSAuditor. Similarly fixes this issue with respect to
              the HTML Base element, HTML Object element, inline and external script tags, and
              JavaScript multi-line variants of all of these attacks.
      
              Tests: http/tests/security/xssAuditor/base-href-comment.html
                     http/tests/security/xssAuditor/iframe-javascript-url-comment.html
                     http/tests/security/xssAuditor/img-onerror-HTML-comment.html
                     http/tests/security/xssAuditor/img-onerror-comment.html
                     http/tests/security/xssAuditor/object-tag-comment.html
                     http/tests/security/xssAuditor/script-tag-comment-HTML-entity.html
                     http/tests/security/xssAuditor/script-tag-comment.html
                     http/tests/security/xssAuditor/script-tag-with-source-comment.html
      
              * page/XSSAuditor.cpp: Added constant minAttackLength.
              (WebCore::XSSAuditor::canEvaluate):
              (WebCore::XSSAuditor::canEvaluateJavaScriptURL):
              (WebCore::XSSAuditor::canCreateInlineEventListener):
              (WebCore::XSSAuditor::canLoadExternalScriptFromSrc):
              (WebCore::XSSAuditor::canLoadObject):
              (WebCore::XSSAuditor::canSetBaseElementURL):
              (WebCore::XSSAuditor::findInRequest): Added parameter context. Only looks at up 
              to minAttackLength of script code plus context (if any).
              * page/XSSAuditor.h:
      2009-10-15  Daniel Bates  <dbates@webkit.org>
      
              Reviewed by Adam Barth.
      
              https://bugs.webkit.org/show_bug.cgi?id=27895
              
              Tests that inline event handlers whose value ends in a single-line JavaScript
              comment cannot bypass the XSSAuditor. Also tests that the XSSAuditor prevents
              similar attack vectors with respect to the HTML Base element, HTML Object
              element, and external JavaScripts.
      
              * http/tests/security/xssAuditor/base-href-comment-expected.txt: Added.
              * http/tests/security/xssAuditor/base-href-comment.html: Added.
              * http/tests/security/xssAuditor/iframe-javascript-url-comment-expected.txt: Added.
              * http/tests/security/xssAuditor/iframe-javascript-url-comment.html: Added.
              * http/tests/security/xssAuditor/img-onerror-HTML-comment-expected.txt: Added.
              * http/tests/security/xssAuditor/img-onerror-HTML-comment.html: Added.
              * http/tests/security/xssAuditor/img-onerror-comment-expected.txt: Added.
              * http/tests/security/xssAuditor/img-onerror-comment.html: Added.
              * http/tests/security/xssAuditor/object-tag-comment-expected.txt: Added.
              * http/tests/security/xssAuditor/object-tag-comment.html: Added.
              * http/tests/security/xssAuditor/resources/echo-before-image.pl: Added.
              * http/tests/security/xssAuditor/resources/echo-head-base-href-comment.pl: Added.
              * http/tests/security/xssAuditor/script-tag-comment-HTML-entity-expected.txt: Added.
              * http/tests/security/xssAuditor/script-tag-comment-HTML-entity.html: Added.
              * http/tests/security/xssAuditor/script-tag-comment-expected.txt: Added.
              * http/tests/security/xssAuditor/script-tag-comment.html: Added.
              * http/tests/security/xssAuditor/script-tag-with-source-comment-expected.txt: Added.
              * http/tests/security/xssAuditor/script-tag-with-source-comment.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49644 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5509c305
    • kov@webkit.org's avatar
      WebKit/gtk · 87c2ead6
      kov@webkit.org authored
      2009-10-15  Zan Dobersek  <zandobersek@gmail.com>
      
              Reviewed by Gustavo Noronha.
      
              Add a settings to enable support for experimental Web Sockets.
              Currently this comes in handy in layout tests.
      
              * webkit/webkitwebsettings.cpp:
              (webkit_web_settings_class_init):
              (webkit_web_settings_set_property):
              (webkit_web_settings_get_property):
              (webkit_web_settings_copy):
              * webkit/webkitwebview.cpp:
              (webkit_web_view_update_settings):
              (webkit_web_view_settings_notify):
      
      WebKitTools
      
      2009-10-15  Zan Dobersek  <zandobersek@gmail.com>
      
              Reviewed by Gustavo Noronha.
      
              Enable Web Sockets support when running layout tests.
      
              * DumpRenderTree/gtk/DumpRenderTree.cpp:
              (resetDefaultsToConsistentValues):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49643 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      87c2ead6
    • tonikitoo@webkit.org's avatar
      [Qt] Make QGLauncher's WebPage class constructor to get a QObject* as parent (not QWidget*). · 097b4165
      tonikitoo@webkit.org authored
      Patch by Antonio Gomes <tonikitoo@webkit.org> on 2009-10-15
      Rubberstamped by Tor Arne.
      
      * QGVLauncher/main.cpp:
      (WebPage::WebPage):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49642 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      097b4165
    • agl@chromium.org's avatar
      2009-10-08 Adam Langley <agl@google.com> · bf28f703
      agl@chromium.org authored
              Reviewed by Eric Seidel.
      
              Currently, Skia clip paths are 1-bit. This patch makes our path
              clipping anti-aliased for non-canvas drawing.
      
              http://code.google.com/p/chromium/issues/detail?id=5927
              https://bugs.webkit.org/show_bug.cgi?id=28820
              http://www.imperialviolet.org/2009/09/02/anti-aliased-clipping.html
      
              Already covered by layout tests. New baselines will be needed in the
              Chromium tree.
      
              (Reland. First landed in r49329, reverted in r49330 due to Windows
              build break)
      
              * html/canvas/CanvasRenderingContext2D.cpp:
              (WebCore::CanvasRenderingContext2D::clip):
              * platform/graphics/GraphicsContext.h:
              * platform/graphics/cairo/GraphicsContextCairo.cpp:
              (WebCore::GraphicsContext::canvasClip):
              * platform/graphics/cg/GraphicsContextCG.cpp:
              (WebCore::GraphicsContext::canvasClip):
              * platform/graphics/haiku/GraphicsContextHaiku.cpp:
              (WebCore::GraphicsContext::canvasClip):
              * platform/graphics/qt/GraphicsContextQt.cpp:
              (WebCore::GraphicsContext::canvasClip):
              * platform/graphics/skia/GraphicsContextSkia.cpp:
              (WebCore::GraphicsContext::addInnerRoundedRectClip):
              (WebCore::GraphicsContext::clip):
              (WebCore::GraphicsContext::canvasClip):
              (WebCore::GraphicsContext::clipPath):
              * platform/graphics/skia/PlatformContextSkia.cpp:
              (PlatformContextSkia::clipPathAntiAliased):
              (PlatformContextSkia::restore):
              (PlatformContextSkia::applyAntiAliasedClipPaths):
              * platform/graphics/skia/PlatformContextSkia.h:
              * platform/graphics/win/GraphicsContextWin.cpp:
              (WebCore::GraphicsContext::canvasClip):
              * platform/graphics/wince/GraphicsContextWince.cpp:
              (WebCore::GraphicsContext::canvasClip):
              * platform/graphics/wx/GraphicsContextWx.cpp:
              (WebCore::GraphicsContext::canvasClip):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49641 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bf28f703
    • bweinstein@apple.com's avatar
      Rubber-stamped by Adele Peterson. · 93362077
      bweinstein@apple.com authored
      Add click-focus-anchor expected results on Windows, to make up for
      the wonky way Windows finds its expected results.
      
      * platform/win/fast/events/click-focus-anchor-expected.txt: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49640 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      93362077
    • kov@webkit.org's avatar
      2009-10-15 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> · 7a76e2a7
      kov@webkit.org authored
              Unreviewed. Help text fix - Web Sockets default is no, not yes.
      
              * configure.ac:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49639 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7a76e2a7
    • xan@webkit.org's avatar
      2009-10-15 Xan Lopez <xlopez@igalia.com> · c1f1c3e9
      xan@webkit.org authored
              Reviewed by Gustavo Noronha.
      
              Need to initialize event.button.button, since in most cases a
              button number is not passed as an argument.
      
              * DumpRenderTree/gtk/EventSender.cpp:
              (mouseDownCallback):
              (mouseUpCallback):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49638 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c1f1c3e9
    • zoltan@webkit.org's avatar
      2009-10-15 Andras Becsi <becsi.andras@stud.u-szeged.hu> · 79f4bbd2
      zoltan@webkit.org authored
              Reviewed by Adam Treat.
      
              [Qt] Add expected files for passing http tests.
      
              * platform/qt/http/tests/local/file-url-sent-as-referer-expected.txt: Added.
              * platform/qt/http/tests/uri/css-href-expected.txt: Added.                  
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49637 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      79f4bbd2
    • eric.carlson@apple.com's avatar
      2009-10-15 Eric Carlson <eric.carlson@apple.com> · dc2d2a1b
      eric.carlson@apple.com authored
              Reviewed by Simon Fraser.
      
              <rdar://problem/7295738> No way to mute/unmute a movie in full screen video mode
      
              * WebCore.Video.exp: Export muted and setMute.
      
      2009-10-15  Eric Carlson  <eric.carlson@apple.com>
      
              Reviewed by Simon Fraser.
      
              <rdar://problem/7295738> No way to mute/unmute a movie in full screen video mode
      
              * WebView/WebVideoFullscreenHUDWindowController.mm:
              (-[WebVideoFullscreenHUDWindowController setVolume:]): Unmute movie before changing volume.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49636 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dc2d2a1b
    • zoltan@webkit.org's avatar
      2009-10-15 Andras Becsi <becsi.andras@stud.u-szeged.hu> · 3bac804e
      zoltan@webkit.org authored
              Reviewed by Adam Treat.
      
              [Qt] Add expected files for passing svg tests.
      
              * platform/qt/svg/custom/gradient-userSpaceOnUse-with-percentage-expected.txt: Added.
              * platform/qt/svg/custom/mask-with-default-value-expected.txt: Added.                
              * platform/qt/svg/filters/feComposite-expected.txt: Added.                           
              * platform/qt/svg/filters/feGaussianBlur-expected.txt: Added.                        
              * platform/qt/svg/filters/feMerge-wrong-input-expected.txt: Added.                   
              * platform/qt/svg/filters/sourceAlpha-expected.txt: Added.                           
              * platform/qt/svg/filters/subRegion-in-userSpace-expected.txt: Added.                
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49635 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3bac804e
    • tonikitoo@webkit.org's avatar
      [Qt] QGLauncher crashes while closing a window · 0c1d1ffc
      tonikitoo@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=30385
      
      Patch by Antonio Gomes <tonikitoo@webkit.org> on 2009-10-15
      Reviewed by Tor Arne.
      
      Set page's pageClient reference to '0' at QGWV deletion.
      
      * Api/qgraphicswebview.cpp:
      (QGraphicsWebView::~QGraphicsWebView):
      * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
      (WebPage::WebPage):
      (WebPage::aborting):
      (tst_QGraphicsWebView::crashOnViewlessWebPages):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49634 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0c1d1ffc
    • simon.fraser@apple.com's avatar
      2009-10-15 Simon Fraser <simon.fraser@apple.com> · d8bfc22b
      simon.fraser@apple.com authored
              Reviewed by Dan Bernstein.
      
              Transitions fail to run sometimes
              https://bugs.webkit.org/show_bug.cgi?id=26770
      
              Fix an issue where we could attempt to start accelerated animations or transitions on
              GraphicsLayer that were not rooted (because of visibility:hidden), which would leave
              the AnimationController's m_waitingForResponse flag in a state that killed subsequent
              software transitions.
      
              * page/animation/AnimationController.cpp:
              (WebCore::AnimationControllerPrivate::AnimationControllerPrivate):
              (WebCore::AnimationControllerPrivate::endAnimationUpdate):
              (WebCore::AnimationControllerPrivate::receivedStartTimeResponse):
              (WebCore::AnimationControllerPrivate::addToStartTimeResponseWaitList):
              (WebCore::AnimationControllerPrivate::startTimeResponse):
              * page/animation/AnimationControllerPrivate.h:
              Make some methods non-inline for ease of debugging (these are not hot methods).
              Rename m_waitingForAResponse to m_waitingForResponse.
      
              * platform/graphics/GraphicsLayer.h:
              * platform/graphics/GraphicsLayer.cpp:
              (WebCore::GraphicsLayer::hasAncestor):
              New method to report whether the receiver has the given layer as an ancestor. Used for checking
              whether a layer is rooted.
      
              * rendering/RenderLayerBacking.cpp:
              (WebCore::RenderLayerBacking::startAnimation):
              (WebCore::RenderLayerBacking::startTransition):
              Don't try to start accelerated animations or transitions on non-rooted GraphicsLayers.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49633 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d8bfc22b
    • eric@webkit.org's avatar
      2009-10-15 Alexander Pavlov <apavlov@chromium.org> · 2b222ca0
      eric@webkit.org authored
              Reviewed by Pavel Feldman.
      
              Refactor ProfilesPanel to support multiple profile types
      
              Data describing different profile types are now stored in distinct objects.
              https://bugs.webkit.org/show_bug.cgi?id=30332
      
              * WebCore.vcproj/WebCore.vcproj:
              * inspector/front-end/ProfileView.js:
              (WebInspector.CPUProfileView.profileCallback):
              (WebInspector.CPUProfileView):
              (WebInspector.CPUProfileView.prototype._sortData):
              (WebInspector.CPUProfileType):
              (WebInspector.CPUProfileType.prototype.get buttonTooltip):
              (WebInspector.CPUProfileType.prototype.get buttonStyle):
              (WebInspector.CPUProfileType.prototype.buttonClicked):
              (WebInspector.CPUProfileType.prototype.setRecordingProfile):
              (WebInspector.CPUProfile):
              (WebInspector.CPUProfile.prototype.get title):
              (WebInspector.CPUProfile.prototype.get uid):
              (WebInspector.CPUProfile.prototype.get head):
              (WebInspector.CPUProfile.prototype.createView):
              (WebInspector.CPUProfile.prototype.viewForProfile):
              * inspector/front-end/ProfilesPanel.js:
              (WebInspector.ProfileType):
              (WebInspector.ProfileType.prototype.get buttonTooltip):
              (WebInspector.ProfileType.prototype.get buttonStyle):
              (WebInspector.ProfileType.prototype.get buttonCaption):
              (WebInspector.ProfileType.prototype.get id):
              (WebInspector.ProfileType.prototype.get name):
              (WebInspector.ProfileType.prototype.buttonClicked):
              (WebInspector.ProfilesPanel):
              (WebInspector.ProfilesPanel.prototype.get statusBarItems.clickHandler):
              (WebInspector.ProfilesPanel.prototype.get statusBarItems):
              (WebInspector.ProfilesPanel.prototype.reset):
              (WebInspector.ProfilesPanel.prototype.registerProfileType):
              (WebInspector.ProfilesPanel.prototype._makeKey):
              (WebInspector.ProfilesPanel.prototype.addProfileHeader):
              (WebInspector.ProfilesPanel.prototype.showProfile):
              (WebInspector.ProfilesPanel.prototype.getProfileType):
              (WebInspector.ProfilesPanel.prototype.showProfileForURL):
              (WebInspector.ProfilesPanel.prototype.updateProfileTypeButtons):
              (WebInspector.ProfilesPanel.prototype.displayTitleForProfileLink):
              (WebInspector.ProfilesPanel.prototype.get searchableViews):
              (WebInspector.ProfilesPanel.prototype._updateInterface):
              * inspector/front-end/inspector.js:
              (WebInspector._createPanels):
              (WebInspector.documentClick.followLink):
              (WebInspector.documentClick):
              (WebInspector.addProfileHeader):
              (WebInspector.setRecordingProfile):
              (WebInspector.linkifyStringAsFragment):
              (WebInspector.showProfileForURL):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49632 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2b222ca0
    • pfeldman@chromium.org's avatar
      2009-10-15 Pavel Feldman <pfeldman@chromium.org> · 32a56944
      pfeldman@chromium.org authored
              Not reviewed: remove timer-related logs from the previously
              submitted test.
      
              * inspector/console-tests-expected.txt:
              * inspector/console-tests.html:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49631 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      32a56944
    • kevino@webkit.org's avatar
      wx build fix. More SDK fixes for Mac, make sure we use the SDK corresponding to · 485f9024
      kevino@webkit.org authored
      the OS if none was explicitly set.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49630 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      485f9024
    • pfeldman@chromium.org's avatar
      2009-10-15 Pavel Feldman <pfeldman@chromium.org> · b306d92b
      pfeldman@chromium.org authored
              Reviewed by Timothy Hatcher.
              
              Web Inspector: Enable inspector layout tests.
      
              https://bugs.webkit.org/show_bug.cgi?id=30014
      
      WebCore:
              * inspector/InspectorController.cpp:
              (WebCore::InspectorController::evaluateForTestInFrontend):
      
      LayoutTests:
              * inspector/elements-panel-structure-expected.txt:
              * inspector/elements-panel-structure.html:
              * inspector/evaluate-in-frontend.js:
              (evaluateInWebInspector):
              (window.didEvaluateForTestInFrontend):
              * platform/mac-leopard/Skipped:
              * platform/mac-snowleopard/Skipped:
              * platform/mac-tiger/Skipped:
              * platform/mac/Skipped:
              * platform/win/Skipped:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49629 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b306d92b