1. 07 Apr, 2011 40 commits
    • rniwa@webkit.org's avatar
      2011-04-07 Ryosuke Niwa <rniwa@webkit.org> · 5614540c
      rniwa@webkit.org authored
              Reviewed by Darin Adler.
      
              REGRESSION (r46914, r48764): When typing in Mail, line wrapping frequently occurs in the middle of words
              https://bugs.webkit.org/show_bug.cgi?id=57872
      
              Added tests to ensure WebKit inserts a paragraph separator properly around tab span.
      
              * editing/inserting/insert-div-021-expected.txt: No longer duplicates span[id="test"] incorrectly.
              * editing/inserting/insert-paragraph-after-tab-span-and-text-expected.txt: Added.
              * editing/inserting/insert-paragraph-after-tab-span-and-text.html: Added.
              * editing/inserting/insert-paragraph-separator-tab-span-expected.txt: Added.
              * editing/inserting/insert-paragraph-separator-tab-span.html: Added.
              * editing/inserting/insert-paragraph-at-end-of-line-expected.txt: No longer duplicates a[id="anchor"] incorrectly.
      2011-04-07  Ryosuke Niwa  <rniwa@webkit.org>
      
              Reviewed by Eric Seidel.
      
              REGRESSION (r46914, r48764): When typing in Mail, line wrapping frequently occurs in the middle of words
              https://bugs.webkit.org/show_bug.cgi?id=57872
      
              r46914 initially introduced a regression by replacing calls to styleAtPosition by editingStyleAtPosition
              because editingStyleAtPosition did not avoid tab span to obtain the computed style unlike styleAtPosition.
      
              r46914 also introduced a regression by cloning hierarchy under new block at the insertion position without
              avoiding the tab span.
      
              Fixed the both regressions by avoiding tab spans when computing the editing style and when cloning hierarchy.
              Also reverted r46914 for the general code path because re-creating node hierarchy duplicates nodes when
              we're moving nodes after the paragraph separator. Instead, we now split the tree up until the start block
              before moving the nodes.
      
              Tests: editing/inserting/insert-paragraph-after-tab-span-and-text.html
                     editing/inserting/insert-paragraph-separator-tab-span.html
      
              * editing/DeleteSelectionCommand.cpp:
              (WebCore::DeleteSelectionCommand::saveTypingStyleState): Since EditingStyle's constructor avoids a tab span,
              no longer calls positionBeforeTabSpan on the position passed to EditingStyle's constructor.
              * editing/EditingStyle.cpp:
              (WebCore::EditingStyle::init): Always avoid a tab span when computing the editing style.
              * editing/InsertParagraphSeparatorCommand.cpp:
              (WebCore::InsertParagraphSeparatorCommand::doApply): Avoid cloning tab spans and inserting a paragraph
              separator into a paragraph separator.
              * editing/htmlediting.cpp:
              (WebCore::positionOutsideTabSpan): Renamed from positionBeforeTabSpan. Also returns the position in the parent
              node after the tab span if the position was at the end of the tab span.
              * editing/htmlediting.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83247 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5614540c
    • rniwa@webkit.org's avatar
      2011-04-07 Ryosuke Niwa <rniwa@webkit.org> · 6683441a
      rniwa@webkit.org authored
              Reviewed by Eric Seidel.
      
              dump-as-markup conversion: editing/pasteboard/paste-text-001.html and paste-text-011.html
              https://bugs.webkit.org/show_bug.cgi?id=58078
      
              Converted the tests.
      
              * editing/pasteboard/paste-text-001-expected.txt: Added.
              * editing/pasteboard/paste-text-001.html:
              * editing/pasteboard/paste-text-011-expected.txt: Added.
              * editing/pasteboard/paste-text-011.html:
              * platform/chromium-linux/editing/pasteboard/paste-text-001-expected.checksum: Removed.
              * platform/chromium-linux/editing/pasteboard/paste-text-001-expected.png: Removed.
              * platform/chromium-linux/editing/pasteboard/paste-text-011-expected.checksum: Removed.
              * platform/chromium-linux/editing/pasteboard/paste-text-011-expected.png: Removed.
              * platform/chromium-win/editing/pasteboard/paste-text-001-expected.checksum: Removed.
              * platform/chromium-win/editing/pasteboard/paste-text-001-expected.png: Removed.
              * platform/chromium-win/editing/pasteboard/paste-text-001-expected.txt: Removed.
              * platform/chromium-win/editing/pasteboard/paste-text-011-expected.checksum: Removed.
              * platform/chromium-win/editing/pasteboard/paste-text-011-expected.png: Removed.
              * platform/chromium-win/editing/pasteboard/paste-text-011-expected.txt: Removed.
              * platform/gtk/editing/pasteboard/paste-text-001-expected.txt: Removed.
              * platform/gtk/editing/pasteboard/paste-text-011-expected.checksum: Removed.
              * platform/gtk/editing/pasteboard/paste-text-011-expected.png: Removed.
              * platform/gtk/editing/pasteboard/paste-text-011-expected.txt: Removed.
              * platform/mac-leopard/editing/pasteboard/paste-text-011-expected.checksum: Removed.
              * platform/mac-leopard/editing/pasteboard/paste-text-011-expected.png: Removed.
              * platform/mac/editing/pasteboard/paste-text-001-expected.checksum: Removed.
              * platform/mac/editing/pasteboard/paste-text-001-expected.png: Removed.
              * platform/mac/editing/pasteboard/paste-text-001-expected.txt: Removed.
              * platform/mac/editing/pasteboard/paste-text-011-expected.checksum: Removed.
              * platform/mac/editing/pasteboard/paste-text-011-expected.png: Removed.
              * platform/mac/editing/pasteboard/paste-text-011-expected.txt: Removed.
              * platform/qt/editing/pasteboard/paste-text-011-expected.checksum: Removed.
              * platform/qt/editing/pasteboard/paste-text-011-expected.png: Removed.
              * platform/qt/editing/pasteboard/paste-text-011-expected.txt: Removed.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83246 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6683441a
    • tkent@chromium.org's avatar
      2011-04-07 Kent Tamura <tkent@chromium.org> · 399c854f
      tkent@chromium.org authored
              [Chromium] Update expectations for r83216 and r83235.
      
              * platform/chromium-linux/svg/custom/foreign-object-skew-expected.png: Added.
              * platform/chromium-linux/svg/custom/foreign-object-skew-expected.txt: Copied from LayoutTests/platform/chromium-win/svg/custom/foreign-object-skew-expected.txt.
              * platform/chromium-mac-leopard/svg/custom/foreign-object-skew-expected.checksum: Removed.
              * platform/chromium-mac-leopard/svg/custom/foreign-object-skew-expected.png:
              * platform/chromium-mac/svg/custom/foreign-object-skew-expected.checksum: Removed.
              * platform/chromium-mac/svg/custom/foreign-object-skew-expected.png:
              * platform/chromium-mac/svg/zoom/text/zoom-foreignObject-expected.png: Copied from LayoutTests/platform/chromium-mac/svg/custom/foreign-object-skew-expected.png.
              * platform/chromium-win-vista/svg/custom/foreign-object-skew-expected.checksum: Removed.
              * platform/chromium-win-vista/svg/custom/foreign-object-skew-expected.png:
              * platform/chromium-win/svg/custom/foreign-object-skew-expected.checksum: Removed.
              * platform/chromium-win/svg/custom/foreign-object-skew-expected.png:
              * platform/chromium-win/svg/custom/foreign-object-skew-expected.txt:
              * platform/chromium/test_expectations.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83244 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      399c854f
    • jchaffraix@webkit.org's avatar
      2011-04-07 Julien Chaffraix <jchaffraix@webkit.org> · 445179b5
      jchaffraix@webkit.org authored
              Reviewed by Eric Seidel.
      
              Test for Bug 51465 - chrome.dll!WebCore::RenderLayer::currentTransform
              ReadAV@NULL (8968fc97874fa23b6799ff8f09c142e4)
      
              Forgot to add them to the original patch.
      
              * fast/css/webkit-empty-transform-preserve3d-crash-expected.txt: Added.
              * fast/css/webkit-empty-transform-preserve3d-crash.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83243 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      445179b5
    • enne@google.com's avatar
      2011-04-07 Adrienne Walker <enne@google.com> · 90e26174
      enne@google.com authored
              [chromium] Unreviewed, add baseline pixel images for decorations-transformed.
      
              * platform/chromium-mac/fast/text/decorations-transformed-expected.png: Added.
              * platform/chromium-win/fast/text/decorations-transformed-expected.png: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83239 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      90e26174
    • abarth@webkit.org's avatar
      2011-04-07 Adam Barth <abarth@webkit.org> · 75a72fe0
      abarth@webkit.org authored
              Reviewed by Eric Seidel.
      
              Implement img-src style-src and font-src
              https://bugs.webkit.org/show_bug.cgi?id=58018
      
              Test a bunch of allow/block tests for these new directives.
      
              * http/tests/security/contentSecurityPolicy/image-allowed-expected.txt: Added.
              * http/tests/security/contentSecurityPolicy/image-allowed.html: Added.
              * http/tests/security/contentSecurityPolicy/image-blocked-expected.txt: Added.
              * http/tests/security/contentSecurityPolicy/image-blocked.html: Added.
              * http/tests/security/contentSecurityPolicy/resources/blue.css: Added.
              * http/tests/security/contentSecurityPolicy/resources/style.xsl: Added.
              * http/tests/security/contentSecurityPolicy/style-allowed-expected.txt: Added.
              * http/tests/security/contentSecurityPolicy/style-allowed.html: Added.
              * http/tests/security/contentSecurityPolicy/style-blocked-expected.txt: Added.
              * http/tests/security/contentSecurityPolicy/style-blocked.html: Added.
              * http/tests/security/contentSecurityPolicy/xsl-allowed.php: Added.
              * http/tests/security/contentSecurityPolicy/xsl-blocked-expected.txt: Added.
              * http/tests/security/contentSecurityPolicy/xsl-blocked.php: Added.
      2011-04-07  Adam Barth  <abarth@webkit.org>
      
              Reviewed by Eric Seidel.
      
              Implement img-src style-src and font-src
              https://bugs.webkit.org/show_bug.cgi?id=58018
      
              These are pretty straight forward given the rest of the infrastructure
              we've built so far.
      
              Tests: http/tests/security/contentSecurityPolicy/image-allowed.html
                     http/tests/security/contentSecurityPolicy/image-blocked.html
                     http/tests/security/contentSecurityPolicy/style-allowed.html
                     http/tests/security/contentSecurityPolicy/style-blocked.html
                     http/tests/security/contentSecurityPolicy/xsl-allowed.php
                     http/tests/security/contentSecurityPolicy/xsl-blocked.php
      
              * loader/cache/CachedResourceLoader.cpp:
              (WebCore::CachedResourceLoader::canRequest):
              * page/ContentSecurityPolicy.cpp:
              (WebCore::ContentSecurityPolicy::allowImageFromSource):
              (WebCore::ContentSecurityPolicy::allowStyleFromSource):
              (WebCore::ContentSecurityPolicy::allowFontFromSource):
              (WebCore::ContentSecurityPolicy::addDirective):
              * page/ContentSecurityPolicy.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83235 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      75a72fe0
    • enrica@apple.com's avatar
      Unreviewed. Updated comment in skipped list to · 90e62946
      enrica@apple.com authored
      include the bug that tracks the changes required
      in WebKitTestRunner.
      
      * platform/win-wk2/Skipped:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83233 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      90e62946
    • dbates@webkit.org's avatar
      2011-04-07 Daniel Bates <dbates@rim.com> · 6e34f5e0
      dbates@webkit.org authored
              Reviewed by Darin Adler.
      
              Add a layout test to ensure that mousemove is fired from a subframe
              https://bugs.webkit.org/show_bug.cgi?id=58094
      
              * fast/events/iframe-onmousemove-expected.txt: Added.
              * fast/events/iframe-onmousemove.html: Added.
              * fast/events/resources/iframe-onmousemove.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83228 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6e34f5e0
    • ossy@webkit.org's avatar
      [Qt][WK2] Decrease flakiness of test results. · a1006774
      ossy@webkit.org authored
      * platform/qt-wk2/Skipped:
       - Add canvas tests not to break css2.1 tests.
       - Remove passing css2.1 tests.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83227 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a1006774
    • jer.noble@apple.com's avatar
      Unreviewed; Add failing legacy full screen tests to the gtk/Skipped list. · c3e9b5f7
      jer.noble@apple.com authored
      * platform/gtk/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83222 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c3e9b5f7
    • hyatt@apple.com's avatar
      https://bugs.webkit.org/show_bug.cgi?id=57736 · 1d8cc948
      hyatt@apple.com authored
              
      Reviewed by Dan Bernstein.
      
      Crash on openstreetmap.org while using the map. Fix a bad interaction between the positioned movement layout
      optimization and the simplified layout optimization that could lead to blocks remaining marked as dirty when
      layout finished. This would eventually lead to an inability to properly determine the correct layout root and
      would cause a deleted root to be used later on.
      
      Added fast/block/positioning/complex-positioned-movement.html.
      
      Source/WebCore: 
      
      * page/FrameView.cpp:
      (WebCore::FrameView::scheduleRelayoutOfSubtree):
      Add asserts to catch cases in the future where a layout root is set that has a dirty containing block.
          
      * rendering/RenderBlock.cpp:
      (WebCore::RenderBlock::simplifiedLayout):
      Change simplified layout so that the positioned movement optimization no longer clears the other layout
      flags. This will ensure that we still lay out our descendants if they need it.
              
      (WebCore::RenderBlock::layoutPositionedObjects):
      Changed to clear our layout flags now if the positioned movement is successful, since tryLayoutDoingPositionedMovementOnly
      no longer does the clear.
          
      * rendering/RenderBox.h:
      (WebCore::RenderBox::tryLayoutDoingPositionedMovementOnly):
      tryLayoutDoingPositionedMovementOnly now returns a boolean indicating success or failure.  On success it no longer
      does setNeedsLayout(false), but instead will let the caller take care of it. This way the caller can still look at
      the other flags in case other kinds of layout are still needed.
          
      * rendering/RenderObject.h:
      (WebCore::RenderObject::setNeedsPositionedMovementLayout):
      (WebCore::RenderObject::setNeedsSimplifiedNormalFlowLayout):
      Changed these methods to only set their respective flags and not to try to be clever about avoiding propagation.
      
      LayoutTests: 
      
      * fast/block/positioning/complex-positioned-movement.html: Added.
      * platform/mac/fast/block/positioning/complex-positioned-movement-expected.checksum: Added.
      * platform/mac/fast/block/positioning/complex-positioned-movement-expected.png: Added.
      * platform/mac/fast/block/positioning/complex-positioned-movement-expected.txt: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83221 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1d8cc948
    • mitz@apple.com's avatar
      <rdar://problem/9018212> Underline thickness is not uniform under non-integral scale factor · bd95d94d
      mitz@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=58083
      
      Reviewed by Simon Fraser.
      
      Source/WebCore: 
      
      Test: fast/text/decorations-transformed.html
      
      * platform/graphics/GraphicsContext.h: Added a RoundingMode enum with two values. RoundAllSides
      is the existing rounding mode, where each side of the rectangle snaps to the nearest pixel
      gridline. RoundOriginAndDimensions snaps the origin to the nearest pixel gridpoint and rounds
      the width and the height. In this new mode, translating a rectangle in user space never changes
      its dimensions in device pixels.
      * platform/graphics/cg/GraphicsContextCG.cpp:
      (WebCore::GraphicsContext::roundToDevicePixels): Implemented RoundOriginAndDimensions.
      (WebCore::GraphicsContext::drawLineForText): Use RoundOriginAndDimensions, thus ensuring that
      all underlines have the same thickness in device pixels.
      * platform/graphics/openvg/GraphicsContextOpenVG.cpp:
      (WebCore::GraphicsContext::roundToDevicePixels): Added RoundingMode parameter, but did not implement it.
      * platform/graphics/qt/GraphicsContextQt.cpp:
      (WebCore::GraphicsContext::roundToDevicePixels): Ditto.
      * platform/graphics/skia/GraphicsContextSkia.cpp:
      (WebCore::GraphicsContext::roundToDevicePixels): Ditto.
      * platform/graphics/wince/GraphicsContextWinCE.cpp:
      (WebCore::GraphicsContext::roundToDevicePixels): Ditto.
      * platform/graphics/wx/GraphicsContextWx.cpp:
      (WebCore::GraphicsContext::roundToDevicePixels): Ditto.
      * rendering/InlineTextBox.cpp:
      (WebCore::InlineTextBox::paintDecoration):
      
      LayoutTests: 
      
      * fast/text/decorations-transformed.html: Added.
      * platform/mac/fast/text/decorations-transformed-expected.checksum: Added.
      * platform/mac/fast/text/decorations-transformed-expected.png: Added.
      * platform/mac/fast/text/decorations-transformed-expected.txt: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83216 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bd95d94d
    • jer.noble@apple.com's avatar
      Unreviewed; Add the media/media-fullscreen-inline.html test to the mac-snowleopard Skipped list. · ac5ea723
      jer.noble@apple.com authored
      The legacy full screen API now redirects to the new full screen API, breaking the media-fullscreen-inline.html
      test.
      
      * platform/mac-snowleopard/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83214 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ac5ea723
    • vitalyr@chromium.org's avatar
      2011-04-06 Vitaly Repeshko <vitalyr@chromium.org> · 0ac61fe5
      vitalyr@chromium.org authored
              Reviewed by Nate Chapin.
      
              [V8] Remove custom DOMImplementation getter on Document.
              https://bugs.webkit.org/show_bug.cgi?id=57991
      
              The custom getter is no longer required because DOMImplementation
              objects are now created per document.
      
              Test: fast/dom/DOMImplementation/implementation-identity.html
      
              * bindings/scripts/CodeGeneratorV8.pm:
              * bindings/v8/custom/V8DocumentCustom.cpp:
              * dom/Document.idl:
      
      2011-04-06  Vitaly Repeshko  <vitalyr@chromium.org>
      
              Reviewed by Nate Chapin.
      
              [V8] Remove custom DOMImplementation getter on Document.
              https://bugs.webkit.org/show_bug.cgi?id=57991
      
              * fast/dom/DOMImplementation/implementation-identity-expected.txt: Added.
              * fast/dom/DOMImplementation/implementation-identity.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83213 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0ac61fe5
    • commit-queue@webkit.org's avatar
      2011-04-07 Steve Lacey <sjl@chromium.org> · d62e44d7
      commit-queue@webkit.org authored
              Reviewed by Eric Carlson.
      
              Make various video layout tests platform independent by selecting an appropriate media file.
      
              Various layout tests depend on mp4 files.
              https://bugs.webkit.org/show_bug.cgi?id=57804
      
              * http/tests/media/remove-while-loading.html:
              * http/tests/media/video-load-and-stall.cgi:
              * http/tests/media/video-play-stall-before-meta-data.html:
              * http/tests/media/video-play-stall-seek.html:
              * http/tests/media/video-play-stall.html:
              * http/tests/media/video-seekable-stall.html:
              * media/media-file.js:
              (mimeTypeForFile):
              (stripExtension):
              * platform/chromium/test_expectations.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83210 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d62e44d7
    • inferno@chromium.org's avatar
      2011-04-07 Sergey Glazunov <serg.glazunov@gmail.com> · 147aa3d8
      inferno@chromium.org authored
              Reviewed by Dimitri Glazkov.
      
              setHasID() is only called for styled elements
              https://bugs.webkit.org/show_bug.cgi?id=57267
      
              Test: fast/dom/non-styled-element-id-crash.html
      
              * dom/Element.cpp:
              (WebCore::Element::attributeChanged):
              (WebCore::Element::idAttributeChanged):
              * dom/Element.h:
              * dom/StyledElement.cpp:
              (WebCore::StyledElement::parseMappedAttribute):
      2011-04-07  Sergey Glazunov  <serg.glazunov@gmail.com>
      
              Reviewed by Dimitri Glazkov.
      
              setHasID() is only called for styled elements
              https://bugs.webkit.org/show_bug.cgi?id=57267
      
              * fast/dom/non-styled-element-id-crash-expected.txt: Added.
              * fast/dom/non-styled-element-id-crash.html: Added.
              * svg/custom/embedded-svg-disallowed-in-dashboard.xml: Fix the failing test.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83209 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      147aa3d8
    • bweinstein@apple.com's avatar
      Fix a typo in the Skipped list from r83203. · 1c3b1d07
      bweinstein@apple.com authored
      * platform/win-wk2/Skipped:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83207 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1c3b1d07
    • abarth@webkit.org's avatar
      2011-04-07 Adam Barth <abarth@webkit.org> · a3a60470
      abarth@webkit.org authored
              Reviewed by Eric Seidel.
      
              Implement CSP's options directive
              https://bugs.webkit.org/show_bug.cgi?id=58014
      
              * http/tests/security/contentSecurityPolicy/inline-script-allowed-expected.txt: Added.
              * http/tests/security/contentSecurityPolicy/inline-script-allowed.html: Added.
              * http/tests/security/contentSecurityPolicy/inline-script-blocked-goofy-expected.txt: Added.
              * http/tests/security/contentSecurityPolicy/inline-script-blocked-goofy.html: Added.
      2011-04-07  Adam Barth  <abarth@webkit.org>
      
              Reviewed by Eric Seidel.
      
              Implement CSP's options directive
              https://bugs.webkit.org/show_bug.cgi?id=58014
      
              This patch contains the full options parser, but we only have enough of
              CSP implemented to see the effects of disable-xss-protection.  Will
              need to do some more work before we can see eval-script in action.
      
              Tests: http/tests/security/contentSecurityPolicy/inline-script-allowed.html
                     http/tests/security/contentSecurityPolicy/inline-script-blocked-goofy.html
      
              * page/ContentSecurityPolicy.cpp:
              (WebCore::CSPOptions::CSPOptions):
              (WebCore::CSPOptions::disableXSSProtection):
              (WebCore::CSPOptions::evalScript):
              (WebCore::CSPOptions::parse):
              (WebCore::ContentSecurityPolicy::allowJavaScriptURLs):
              (WebCore::ContentSecurityPolicy::allowInlineEventHandlers):
              (WebCore::ContentSecurityPolicy::allowInlineScript):
              (WebCore::ContentSecurityPolicy::addDirective):
              * page/ContentSecurityPolicy.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83205 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a3a60470
    • enrica@apple.com's avatar
      Unreviewed. · 352df659
      enrica@apple.com authored
      Adding to skipped list for Windows (WK2) the
      tests relative to undo removed from the skipped list
      for Mac where execCommand('undo') is now supported.
      
      * platform/win-wk2/Skipped:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83203 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      352df659
    • enne@google.com's avatar
      2011-04-07 Adrienne Walker <enne@google.com> · 5e14ebf0
      enne@google.com authored
              [chromium] Unreviewed, rebaseline progress element tests.
      
              * platform/chromium-linux/fast/dom/HTMLProgressElement/progress-bar-value-pseudo-element-expected.checksum: Removed.
              * platform/chromium-linux/fast/dom/HTMLProgressElement/progress-bar-value-pseudo-element-expected.png:
              * platform/chromium-mac-leopard/fast/dom/HTMLProgressElement/progress-bar-value-pseudo-element-expected.png: Added.
              * platform/chromium-win/fast/dom/HTMLProgressElement/progress-bar-value-pseudo-element-expected.checksum: Removed.
              * platform/chromium-win/fast/dom/HTMLProgressElement/progress-bar-value-pseudo-element-expected.png:
              * platform/chromium-win/fast/dom/HTMLProgressElement/progress-bar-value-pseudo-element-expected.txt:
              * platform/chromium-win/fast/dom/HTMLProgressElement/progress-element-expected.txt:
              * platform/chromium/test_expectations.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83202 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5e14ebf0
    • jer.noble@apple.com's avatar
      Unreviewed; rebaseline expected results in platform/mac-wk2. · b3a10983
      jer.noble@apple.com authored
      * platform/mac-wk2/media/controls-without-preload-expected.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83199 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b3a10983
    • commit-queue@webkit.org's avatar
      2011-04-07 Chang Shu <cshu@webkit.org> · 7c1fbe26
      commit-queue@webkit.org authored
              Reviewed by Darin Adler.
      
              WebKitTestRunner needs layoutTestController.isPageBoxVisible
              https://bugs.webkit.org/show_bug.cgi?id=42695
      
              Unskip passed tests.
      
              * platform/mac-wk2/Skipped:
              * platform/qt-wk2/Skipped:
      2011-04-07  Chang Shu  <cshu@webkit.org>
      
              Reviewed by Darin Adler.
      
              WebKitTestRunner needs layoutTestController.isPageBoxVisible
              https://bugs.webkit.org/show_bug.cgi?id=42695
      
              * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
              (WKBundleIsPageBoxVisible):
              * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
              * WebProcess/InjectedBundle/InjectedBundle.cpp:
              (WebKit::InjectedBundle::isPageBoxVisible):
              * WebProcess/InjectedBundle/InjectedBundle.h:
      2011-04-07  Chang Shu  <cshu@webkit.org>
      
              Reviewed by Darin Adler.
      
              WebKitTestRunner needs layoutTestController.isPageBoxVisible
              https://bugs.webkit.org/show_bug.cgi?id=42695
      
              * WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl:
              * WebKitTestRunner/InjectedBundle/LayoutTestController.cpp:
              (WTR::LayoutTestController::isPageBoxVisible):
              * WebKitTestRunner/InjectedBundle/LayoutTestController.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83195 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7c1fbe26
    • enrica@apple.com's avatar
      Source/WebKit2: REGRESSION(WebKit2): execCommand('undo') doesn't work (Mac). · b83b967f
      enrica@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=58055
      <rdar://problem/8862023>
              
      Reviewed by Oliver Hunt.
      
      Adding support for execCommand('undo') and execCommand('redo')
      in WebKit2 for Mac.
      
      * UIProcess/API/mac/PageClientImpl.h:
      * UIProcess/API/mac/PageClientImpl.mm:
      (WebKit::PageClientImpl::canUndoRedo): Added interaction with undomanager.
      (WebKit::PageClientImpl::executeUndoRedo): Added interaction with undomanager.
              
      Added new empty PageClient methods for other platforms.
      * UIProcess/API/qt/qwkpage.cpp:
      (QWKPagePrivate::canUndoRedo):
      (QWKPagePrivate::executeUndoRedo):
      * UIProcess/API/qt/qwkpage_p.h:
      * UIProcess/PageClient.h:
      * UIProcess/gtk/WebView.cpp:
      (WebKit::WebView::canUndoRedo):
      (WebKit::WebView::executeUndoRedo):
      * UIProcess/gtk/WebView.h:
      * UIProcess/win/WebView.cpp:
      (WebKit::WebView::canUndoRedo):
      (WebKit::WebView::executeUndoRedo):
      * UIProcess/win/WebView.h:
      
      * UIProcess/WebEditCommandProxy.cpp:
      (WebKit::WebEditCommandProxy::unapply): Added flag to allow dispatching
      of asychronous messages while waiting for a sync message reply.
      (WebKit::WebEditCommandProxy::reapply): Same as above.
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::canUndoRedo):
      (WebKit::WebPageProxy::executeUndoRedo):
      * UIProcess/WebPageProxy.h:
      * UIProcess/WebPageProxy.messages.in:
      * WebProcess/WebCoreSupport/WebEditorClient.cpp: Added missing implementation.
      (WebKit::WebEditorClient::canUndo):
      (WebKit::WebEditorClient::canRedo):
      (WebKit::WebEditorClient::undo):
      (WebKit::WebEditorClient::redo):
      
      LayoutTests: REGRESSION(WebKit2): execCommand('undo') doesn't work (Mac).
      https://bugs.webkit.org/show_bug.cgi?id=58055
      <rdar://problem/8862023>
      
      Reviewed by Oliver Hunt.
      
      * platform/mac-wk2/Skipped: Remove skipped tests related to undo/redo.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83194 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b83b967f
    • commit-queue@webkit.org's avatar
      2011-04-07 Nancy Piedra <nancy.piedra@nokia.com> · 404a2d88
      commit-queue@webkit.org authored
              Reviewed by Eric Carlson.
      
              Add tests for parsing codecs parameter in video-can-play-type.html
              https://bugs.webkit.org/show_bug.cgi?id=53275
      
              * media/video-can-play-type-expected.txt:
              * media/video-can-play-type.html:
      2011-04-07  Nancy Piedra  <nancy.piedra@nokia.com>
      
              Reviewed by Eric Carlson.
      
              Parse quotes from content type parameters
              https://bugs.webkit.org/show_bug.cgi?id=53275
      
              This functionality is tested in video-can-play-type.html layout test
              where I've added codecs parameter with good and bad formatting.
      
              * platform/ContentType.cpp:
              (WebCore::ContentType::parameter):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83191 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      404a2d88
    • jberlin@webkit.org's avatar
      [WebKit2 Tests] fast/events/select-element.html failing since introduction in r83096 · 3758dc42
      jberlin@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=58059
      
      Adding this test to the mac-wk2 skipped list to get the bots green.
      
      * platform/mac-wk2/Skipped:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83189 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3758dc42
    • enne@google.com's avatar
      2011-04-07 Adrienne Walker <enne@google.com> · 9d6b06c9
      enne@google.com authored
              [chromium] Unreviewed, now that bug 57975 is fixed, mark test as passing.
      
              * platform/chromium/test_expectations.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83187 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9d6b06c9
    • bweinstein@apple.com's avatar
      Update Leopard expected results after r83075 to greenify the bots. · b16a54e5
      bweinstein@apple.com authored
      * platform/mac-leopard/fast/blockflow/text-orientation-basic-expected.txt:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83186 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b16a54e5
    • enne@google.com's avatar
      2011-04-07 Adrienne Walker <enne@google.com> · 445e2135
      enne@google.com authored
              [chromium] Unreviewed, rebaseline tests changed in r82947.
      
              * platform/chromium-linux/svg/W3C-SVG-1.1-SE/text-tspan-02-b-expected.png: Added.
              * platform/chromium-linux/svg/text/text-midpoint-split-bug-expected.png: Added.
              * platform/chromium-mac-leopard/svg/W3C-SVG-1.1-SE/text-tspan-02-b-expected.png: Added.
              * platform/chromium-mac/svg/W3C-SVG-1.1-SE/text-tspan-02-b-expected.png: Added.
              * platform/chromium-win/svg/W3C-SVG-1.1-SE/text-tspan-02-b-expected.png: Added.
              * platform/chromium-win/svg/W3C-SVG-1.1-SE/text-tspan-02-b-expected.txt: Added.
              * platform/chromium-win/svg/text/text-midpoint-split-bug-expected.png: Added.
              * platform/chromium-win/svg/text/text-midpoint-split-bug-expected.txt: Added.
              * platform/chromium/test_expectations.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83183 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      445e2135
    • scheib@chromium.org's avatar
      2011-04-07 Vincent Scheib <scheib@chromium.org> · 9048411e
      scheib@chromium.org authored
              Flagging platform/chromium/compositing/huge-layer-rotated.html a bug.
      
              * platform/chromium/test_expectations.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83182 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9048411e
    • rniwa@webkit.org's avatar
      2011-04-07 Ryosuke Niwa <rniwa@webkit.org> · 04696f10
      rniwa@webkit.org authored
              Reviewed by Eric Seidel.
      
              editing/inserting/6633727.html should be renamed and converted into a dump-as-markup test
              https://bugs.webkit.org/show_bug.cgi?id=58037
      
              Renamed 6633727.html to insert-paragraph-at-end-of-line.html and converted it to a dump-as-markup test.
      
              * editing/inserting/6633727-expected.txt: Removed.
              * editing/inserting/6633727.html: Removed.
              * editing/inserting/insert-paragraph-at-end-of-line-expected.txt: Added.
              * editing/inserting/insert-paragraph-at-end-of-line.html: Copied from LayoutTests/editing/inserting/6633727.html.
              * editing/inserting/script-tests/6633727.js: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83181 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      04696f10
    • yurys@chromium.org's avatar
      2011-04-07 Yury Semikhatsky <yurys@chromium.org> · 045ff0a9
      yurys@chromium.org authored
              Reviewed by Pavel Feldman.
      
              Web Inspector: console messages names should adhere to the common naming style
              https://bugs.webkit.org/show_bug.cgi?id=58042
      
              * inspector/protocol/console-agent-expected.txt:
      2011-04-07  Yury Semikhatsky  <yurys@chromium.org>
      
              Reviewed by Pavel Feldman.
      
              Web Inspector: console messages names should adhere to the common naming style
              https://bugs.webkit.org/show_bug.cgi?id=58042
      
              * inspector/ConsoleMessage.cpp:
              (WebCore::ConsoleMessage::addToFrontend):
              (WebCore::ConsoleMessage::updateRepeatCountInConsole):
              * inspector/Inspector.json:
              * inspector/InspectorConsoleAgent.cpp:
              (WebCore::InspectorConsoleAgent::clearConsoleMessages):
              * inspector/front-end/ConsoleView.js:
              (WebInspector.ConsoleView.prototype._registerConsoleDomainDispatcher.dispatcher.messageAdded):
              (WebInspector.ConsoleView.prototype._registerConsoleDomainDispatcher.dispatcher.messageRepeatCountUpdated):
              (WebInspector.ConsoleView.prototype._registerConsoleDomainDispatcher.dispatcher.messagesCleared):
              (WebInspector.ConsoleView.prototype._registerConsoleDomainDispatcher):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83175 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      045ff0a9
    • philn@webkit.org's avatar
      2011-04-07 Philippe Normand <pnormand@igalia.com> · 45dbf882
      philn@webkit.org authored
              Unreviewed, unskip a fast/xmlhttprequest test passing on GTK.
      
              * platform/gtk/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83173 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      45dbf882
    • ossy@webkit.org's avatar
      [Qt][WK2] Add always failing tets to the Skipped list. · bb472c12
      ossy@webkit.org authored
      * platform/qt-wk2/Skipped:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83172 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bb472c12
    • loislo@chromium.org's avatar
      2011-04-06 Ilya Tikhonovsky <loislo@chromium.org> · 83857a43
      loislo@chromium.org authored
              Reviewed by Yury Semikhatsky.
      
              Web Inspector: migrate Inspector protocol messages format to JSON-RPC.
              https://bugs.webkit.org/show_bug.cgi?id=57957
      
              There is not a significant difference between  inspector messages spec and and JSON-RPC 2.0 messages spec.
              Also JSON-RPC has a pretty clear specification for error descriptions which we haven't.
              It was decided that we will use it.
      
              the list of renames:
              1) type-> /dev/null
              2) domain + '.' + event => method // for events
              3) domain + '.' + command => method // for requests
              4) requestId => id // for responses
              5) arguments => params // for requests
              6) data => params // for events
              7) body => result // for responses
      
              protocolErrors and error properties will be converted to JSON-RPC error format.
              The order of properties in messages also will be adjusted.
              The only thing that looks unnecessary is jsonrpc property.
      
              * inspector/protocol/console-agent-expected.txt:
              * inspector/protocol/runtime-agent-expected.txt:
              * inspector/report-API-errors-expected.txt:
              * inspector/report-API-errors.html:
              * inspector/report-protocol-errors-expected.txt:
              * inspector/report-protocol-errors.html:
      2011-04-06  Ilya Tikhonovsky  <loislo@chromium.org>
      
              Reviewed by Yury Semikhatsky.
      
              Web Inspector: migrate Inspector protocol messages format to JSON-RPC.
              https://bugs.webkit.org/show_bug.cgi?id=57957
      
              There is not a significant difference between  inspector messages spec and and JSON-RPC 2.0 messages spec.
              Also JSON-RPC has a pretty clear specification for error descriptions which we haven't.
              It was decided that we will use it.
      
              the list of renames:
              1) type-> /dev/null
              2) domain + '.' + event => method // for events
              3) domain + '.' + command => method // for requests
              4) requestId => id // for responses
              5) arguments => params // for requests
              6) data => params // for events
              7) body => result // for responses
      
              protocolErrors and error properties will be converted to JSON-RPC error format.
              The order of properties in messages also will be adjusted.
              The only thing that looks unnecessary is jsonrpc property.
      
              * inspector/CodeGeneratorInspector.pm:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83171 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      83857a43
    • tkent@chromium.org's avatar
      2011-04-07 Kent Tamura <tkent@chromium.org> · 60a3f5ca
      tkent@chromium.org authored
              [Chromium] Move Leopard-specific images to chromium-mac-leopard, and
              unify text results common in chromium-mac.
      
              * platform/chromium-mac-leopard/fast/speech/input-appearance-numberandspeech-expected.checksum: Added.
              * platform/chromium-mac-leopard/fast/speech/input-appearance-numberandspeech-expected.png: Added.
              * platform/chromium-mac-leopard/fast/speech/input-appearance-numberandspeech-expected.txt: Removed.
              * platform/chromium-mac-leopard/fast/speech/input-appearance-searchandspeech-expected.checksum: Added.
              * platform/chromium-mac-leopard/fast/speech/input-appearance-searchandspeech-expected.png: Added.
              * platform/chromium-mac/fast/speech/input-appearance-numberandspeech-expected.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83163 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      60a3f5ca
    • rniwa@webkit.org's avatar
      2011-04-07 Ryosuke Niwa <rniwa@webkit.org> · f2c5f86c
      rniwa@webkit.org authored
              Reviewed by Eric Seidel.
      
              Convert insert-div-021.html to a dump-as-markup test
              https://bugs.webkit.org/show_bug.cgi?id=58019
      
              Converted the test.
      
              * editing/inserting/insert-div-021-expected.txt: Added.
              * editing/inserting/insert-div-021.html:
              * platform/chromium-linux/editing/inserting/insert-div-021-expected.checksum: Removed.
              * platform/chromium-linux/editing/inserting/insert-div-021-expected.png: Removed.
              * platform/chromium-win/editing/inserting/insert-div-021-expected.checksum: Removed.
              * platform/chromium-win/editing/inserting/insert-div-021-expected.png: Removed.
              * platform/chromium-win/editing/inserting/insert-div-021-expected.txt: Removed.
              * platform/gtk/editing/inserting/insert-div-021-expected.checksum: Removed.
              * platform/gtk/editing/inserting/insert-div-021-expected.png: Removed.
              * platform/gtk/editing/inserting/insert-div-021-expected.txt: Removed.
              * platform/mac/editing/inserting/insert-div-021-expected.checksum: Removed.
              * platform/mac/editing/inserting/insert-div-021-expected.png: Removed.
              * platform/mac/editing/inserting/insert-div-021-expected.txt: Removed.
              * platform/qt/editing/inserting/insert-div-021-expected.txt: Removed.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83161 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f2c5f86c
    • abarth@webkit.org's avatar
      2011-04-07 Adam Barth <abarth@webkit.org> · 3285b43b
      abarth@webkit.org authored
              Reviewed by Eric Seidel.
      
              script-src should block inline script
              https://bugs.webkit.org/show_bug.cgi?id=58012
      
              Test that script-src blocks inline script.  This test uses a different
              approach than the existing tests for variety.
      
              * http/tests/security/contentSecurityPolicy/inline-script-blocked-expected.txt: Added.
              * http/tests/security/contentSecurityPolicy/inline-script-blocked.html: Added.
              * http/tests/security/contentSecurityPolicy/resources/document-write-alert-fail.js: Added.
              * http/tests/security/contentSecurityPolicy/resources/dump-as-text.js: Added.
      2011-04-07  Adam Barth  <abarth@webkit.org>
      
              Reviewed by Eric Seidel.
      
              script-src should block inline script
              https://bugs.webkit.org/show_bug.cgi?id=58012
      
              Block inline scripts at the ScriptElement layer.  This should catch
              exactly the scripts we want to catch.
      
              Test: http/tests/security/contentSecurityPolicy/inline-script-blocked.html
      
              * dom/Document.cpp:
              (WebCore::Document::processHttpEquiv):
                  - This patch also adds the ability to supply a CSP policy via a
                    <meta> tag.  We'll update the name of the header once we've
                    finished implementing the spec.
              * dom/ScriptElement.cpp:
              (WebCore::ScriptElement::executeScript):
              * page/ContentSecurityPolicy.cpp:
              (WebCore::ContentSecurityPolicy::allowInlineScript):
              * page/ContentSecurityPolicy.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83159 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3285b43b
    • tkent@chromium.org's avatar
      2011-04-07 Kent Tamura <tkent@chromium.org> · fb1cf1d5
      tkent@chromium.org authored
              [Chromium] Update Linux x86-64 results for the Skia rounding rect change.
      
              * platform/chromium-linux-x86_64/fast/borders/borderRadiusGroove01-expected.checksum: Removed.
              * platform/chromium-linux-x86_64/fast/borders/borderRadiusGroove01-expected.png:
              * platform/chromium-linux-x86_64/fast/borders/borderRadiusGroove02-expected.checksum: Removed.
              * platform/chromium-linux-x86_64/fast/borders/borderRadiusGroove02-expected.png:
              * platform/chromium-linux-x86_64/fast/borders/borderRadiusRidge01-expected.checksum: Removed.
              * platform/chromium-linux-x86_64/fast/borders/borderRadiusRidge01-expected.png:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83156 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fb1cf1d5
    • tkent@chromium.org's avatar
      2011-04-07 Kent Tamura <tkent@chromium.org> · 0db1c738
      tkent@chromium.org authored
              Skip platform/mac/fast/forms/input-appearance-spinbutton-up.html on Mac WebKit2.
              https://bugs.webkit.org/show_bug.cgi?id=56298
      
              * platform/mac-wk2/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83155 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0db1c738
    • tkent@chromium.org's avatar
      2011-04-07 Kent Tamura <tkent@chromium.org> · 0cfc3ac1
      tkent@chromium.org authored
              Update spinbutton test results for r83145.
      
              * platform/chromium-linux/fast/forms/input-appearance-spinbutton-disabled-readonly-expected.txt:
              * platform/chromium-linux/fast/forms/input-appearance-spinbutton-layer-expected.txt: Removed.
              * platform/chromium-linux/fast/forms/input-appearance-spinbutton-visibility-expected.txt: Removed.
              * platform/chromium-linux/fast/speech/input-appearance-numberandspeech-expected.txt:
              * platform/chromium-mac-leopard/fast/speech/input-appearance-numberandspeech-expected.txt: Added.
              * platform/chromium-win/fast/forms/input-appearance-spinbutton-disabled-readonly-expected.txt:
              * platform/chromium-win/fast/forms/input-appearance-spinbutton-layer-expected.png: Added.
              * platform/chromium-win/fast/forms/input-appearance-spinbutton-visibility-expected.txt:
              * platform/chromium-win/fast/speech/input-appearance-numberandspeech-expected.txt:
              * platform/chromium/test_expectations.txt:
              * platform/win/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83154 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0cfc3ac1