1. 21 May, 2009 9 commits
    • ggaren@apple.com's avatar
      WebCore: · 1625e181
      ggaren@apple.com authored
      2009-05-21  Geoffrey Garen  <ggaren@apple.com>
      
              Reviewed by Sam Weinig.
              
              Test for <rdar://problem/6910832> | https://bugs.webkit.org/show_bug.cgi?id=25907
              Incorrect URL returned to the DOM while the user drags a file
      
              * page/DragController.cpp:
              (WebCore::DragController::dragExited):
              (WebCore::DragController::tryDHTMLDrag): Don't base our decision on KURL,
              since that only looks at the text of the document's URL. Do base our
              decision on the securityOrigin(), which knows more about the document's
              actual origin.
      
      LayoutTests:
      
      2009-05-21  Geoffrey Garen  <ggaren@apple.com>
      
              Reviewed by Sam Weinig.
              
              Tests for <rdar://problem/6910832> | https://bugs.webkit.org/show_bug.cgi?id=25907
              Incorrect URL returned to the DOM while the user drags a file
      
              * http/tests/local/drag-over-remote-content-expected.txt: Added.
              * http/tests/local/drag-over-remote-content.html: Added.
              * http/tests/security/drag-over-remote-content-iframe-expected.txt: Added.
              * http/tests/security/drag-over-remote-content-iframe.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@44010 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1625e181
    • kov@webkit.org's avatar
      2009-05-21 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> · 97ab8afd
      kov@webkit.org authored
              Fixing test to actually use the correct names for the frames.
      
              * http/tests/mime/accept-all-text-types.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43991 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      97ab8afd
    • kov@webkit.org's avatar
      2009-05-21 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> · d25aa0cb
      kov@webkit.org authored
              Disable 2 more tests that sometimes fail.
      
              * platform/gtk/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43989 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d25aa0cb
    • kov@webkit.org's avatar
      2009-05-21 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> · ba6c81df
      kov@webkit.org authored
              Adding file I forgot to add to last commit.
      
              * http/tests/mime/resources/accept-all-text-types.cgi: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43986 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ba6c81df
    • kov@webkit.org's avatar
      2009-05-21 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> · 9f8b72c2
      kov@webkit.org authored
              Reviewed by Darin Adler.
      
              Test that WebKit accepts any text/* type.
      
              * http/tests/mime/accept-all-text-types-expected.txt: Added.
              * http/tests/mime/accept-all-text-types.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43985 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9f8b72c2
    • kov@webkit.org's avatar
      LayoutTests · 04d3049d
      kov@webkit.org authored
      2009-05-21  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
      
              Reviewed by Xan Lopez.
      
              Disable failing HTTP tests now that we are enabling HTTP on the
              bot.
      
              * platform/gtk/Skipped:
      
      WebKitTools
      
      2009-05-21  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
      
              Reviewed by Xan Lopez.
      
              Default to running HTTP tests for GTK+.
      
              * Scripts/run-webkit-tests:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43978 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      04d3049d
    • ap@webkit.org's avatar
      Reviewed by Darin Adler. · fe82566a
      ap@webkit.org authored
              https://bugs.webkit.org/show_bug.cgi?id=19517
              <rdar://problem/6007112> DOM modification of textArea causes Access Violation (NULL pointer?)
      
              This no longer happens with ToT, just adding a test.
      
              * fast/parser/head-parsing-19517-expected.txt: Added.
              * fast/parser/head-parsing-19517.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43966 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fe82566a
    • mitz@apple.com's avatar
      WebCore: · b48ad77e
      mitz@apple.com authored
              Reviewed by Anders Carlsson.
      
              - WebCore part of <rdar://problem/6901751> REGRESSION (r35515): Tiger
                crash painting the selection on registration page of car2go.com
      
              A bug in old versions of Core Graphics causes memory corruption to occur
              when clipping under certain conditions. Make the clipping functions
              fail silently under those conditions.
      
              Test: fast/block/float/selection-gap-clip-out-tiger-crash.html
      
              * WebCore.Tiger.exp: Added wkCGContextIsSafeToClip
              * platform/graphics/cg/GraphicsContextCG.cpp:
              (WebCore::safeCGContextClip): Added a wrapper around CGContextClip that,
              on Tiger, bails out if wkCGContextIsSafeToClip() returns false.
              (WebCore::safeCGContextEOClip): Ditto for CGContextEOClip.
              (WebCore::safeCGContextClipToRect): Ditto for CGContextClipToRect.
              (WebCore::GraphicsContext::fillPath): Changed to call the safe variants
              of CGContextClip, CGContextEOClip and CGContextClipToRect.
              (WebCore::GraphicsContext::strokePath): Ditto.
              (WebCore::GraphicsContext::fillRect): Ditto.
              (WebCore::GraphicsContext::clip): Ditto.
              (WebCore::GraphicsContext::clipOut): Ditto.
              (WebCore::GraphicsContext::clipOutEllipseInRect): Ditto.
              (WebCore::GraphicsContext::clipPath): Ditto.
              (WebCore::GraphicsContext::addInnerRoundedRectClip): Ditto.
              (WebCore::GraphicsContext::strokeRect): Ditto.
              * platform/mac/WebCoreSystemInterface.h: Added wkCGContextIsSafeToClip.
              * platform/mac/WebCoreSystemInterface.mm: Added wkCGContextIsSafeToClip.
      
      WebKit/mac:
      
              Reviewed by Anders Carlsson.
      
              - WebKit part of <rdar://problem/6901751> REGRESSION (r35515): Tiger
                crash painting the selection on registration page of car2go.com
      
              * WebCoreSupport/WebSystemInterface.m:
              (InitWebCoreSystemInterface): Added CGContextIsSafeToClip.
      
      WebKitLibraries:
      
              Reviewed by Anders Carlsson.
      
              - WebKitSystemInterface part of <rdar://problem/6901751> REGRESSION
                (r35515): Tiger crash painting the selection on registration page of
                car2go.com
      
              * WebKitSystemInterface.h:
              * libWebKitSystemInterfaceTiger.a:
      
      LayoutTests:
      
              Reviewed by Anders Carlsson.
      
              - test for <rdar://problem/6901751> REGRESSION (r35515): Tiger crash
                painting the selection on registration page of car2go.com
      
              * fast/block/float/selection-gap-clip-out-tiger-crash-expected.txt: Added.
              * fast/block/float/selection-gap-clip-out-tiger-crash.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43964 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b48ad77e
    • eric@webkit.org's avatar
      2009-05-21 Eric Seidel <eric@webkit.org> · 6d1ae00b
      eric@webkit.org authored
              Reviewed by Alexey Proskuryakov.
      
              Fix file-input-files-access which was passing for the wrong reasons.
      
              The log was pushing the drop target off screen and the drops were failing!
      
              * editing/pasteboard/file-input-files-access-expected.txt:
              * editing/pasteboard/resources/file-input-files-access.js:
              (testOrderedDraggingWithDirectory):
              (runTest):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43961 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6d1ae00b
  2. 20 May, 2009 15 commits
    • kov@webkit.org's avatar
      2009-05-20 Gustavo Noronha Silva <gns@gnome.org> · 6d9d49ea
      kov@webkit.org authored
              Skipping a new test.
      
              * platform/gtk/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43957 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6d9d49ea
    • kov@webkit.org's avatar
      2009-05-20 Gustavo Noronha Silva <gns@gnome.org> · febec22d
      kov@webkit.org authored
              Skipping test that fails intermitently.
      
              * platform/gtk/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43956 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      febec22d
    • kov@webkit.org's avatar
      2009-05-20 Gustavo Noronha Silva <gns@gnome.org> · 3f6862ff
      kov@webkit.org authored
              Rubber-stamped by Mark Rowe.
      
              Add GTK+-specific results for canvas-composite-alpha. This test
              has 'failing' cases that pass on GTK+/cairo.
      
              * platform/gtk/fast/canvas/canvas-composite-alpha-expected.txt: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43953 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3f6862ff
    • ddkilzer@apple.com's avatar
      Added bugs.webkit.org URL · 473d4ff0
      ddkilzer@apple.com authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43940 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      473d4ff0
    • ddkilzer@apple.com's avatar
      Test for <rdar://problem/5666078> Cookie parsing terminates at the... · f8ced3bd
      ddkilzer@apple.com authored
              Test for <rdar://problem/5666078> Cookie parsing terminates at the first semicolon, ignoring quotes (16699)
      
              Reviewed by Brady Eidson.
      
              * http/tests/cookies/double-quoted-value-with-semi-colon-expected.txt: Added.
              * http/tests/cookies/double-quoted-value-with-semi-colon.html: Added.
              * http/tests/cookies/resources/double-quoted-value-with-semi-colon.js: Added.
              * platform/mac-tiger/Skipped: Added
              double-quoted-value-with-semi-colon.html since CFNetwork on
              Tiger stops parsing cookie values when it sees a semi-colon,
              even inside double quotes.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43939 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f8ced3bd
    • beidson@apple.com's avatar
      WebCore: · 82c2adec
      beidson@apple.com authored
      2009-05-20  Brady Eidson  <beidson@apple.com>
      
              Reviewed by Darin Adler.
      
              Fix <rdar://problem/6904941> and https://bugs.webkit.org/show_bug.cgi?id=25300
      
              KURL parsing changes back in r30243 and r30815 made javascript urls that use the form
              "javascript://" be detected as invalid hierarchical URLs.  When a KURL is marked as
              invalid, you can no longer ask it a question such as "is your protocol javascript?"
              Therefore FrameLoader wouldn't recognize them as javascript URLs and instead try to
              navigated to them.
      
              URL parsing rules aside, such URLs are in use in the wild (Microsoft's Virtual Earth 
              being a high profile example) and actually represent valid javascript.
      
              Whenever checking for javascript urls, the new protocolIsJavaScript() should be used
              as it functions on a String which doesn't have to pass KURLs parsing rules. 
      
              Test: fast/loader/javascript-url-hierarchical-execution.html
      
              * bindings/js/JSAttrCustom.cpp:
              (WebCore::JSAttr::setValue): Use protocolIsJavaScript().
              * bindings/js/JSDOMWindowCustom.cpp:
              (WebCore::JSDOMWindow::setLocation): Ditto.
              (WebCore::createWindow): Ditto.
              (WebCore::JSDOMWindow::open): Ditto.
              * bindings/js/JSElementCustom.cpp:
              (WebCore::allowSettingSrcToJavascriptURL): Ditto.
              * bindings/js/JSHTMLFrameElementCustom.cpp:
              (WebCore::allowSettingJavascriptURL): Ditto.
              * bindings/js/JSHTMLIFrameElementCustom.cpp:
              (WebCore::JSHTMLIFrameElement::setSrc): Ditto.
              * bindings/js/JSLocationCustom.cpp:
              (WebCore::navigateIfAllowed): Ditto.
              (WebCore::JSLocation::reload): Ditto.
              * editing/markup.cpp:
              (WebCore::appendQuotedURLAttributeValue): Ditto.
              * html/HTMLAnchorElement.cpp:
              (WebCore::HTMLAnchorElement::parseMappedAttribute): Ditto.
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::requestFrame): Ditto.
              (WebCore::FrameLoader::submitForm): Ditto.
              (WebCore::FrameLoader::executeIfJavaScriptURL): Ditto.
              
              * platform/KURL.cpp:
              (WebCore::KURL::init): Use protocolIsJavaScript().
              (WebCore::KURL::protocolIs): ASSERT that the protocol being asked about is not javascript.
                 Such checks should go through protocolIsJavaScript() instead.
              (WebCore::encodeRelativeString): Use protocolIsJavaScript().
              (WebCore::protocolIsJavaScript):
              * platform/KURL.h:
      
      LayoutTests:
      
      2009-05-20  Brady Eidson  <beidson@apple.com>
      
              Reviewed by Darin Adler.
      
              Fix <rdar://problem/6904941> and https://bugs.webkit.org/show_bug.cgi?id=25300
      
              * fast/loader/javascript-url-hierarchical-execution-expected.txt: Added.
              * fast/loader/javascript-url-hierarchical-execution.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43929 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      82c2adec
    • zecke@webkit.org's avatar
      [plugins] PluginPackage*.cpp for Gtk+/Qt misassigned hasproperty and hasmethod · 1fccd86c
      zecke@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=24510
      
      PluginPackageGtk.cpp and PluginPackageQt.cpp assigned _NPN_HasMethod
      to hasproperty and _NPN_HasProperty to hashmethod. This commit is fixing
      it. It is also adding test code to PluginObject.cpp and it will invoke
      this code from a new test.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43923 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1fccd86c
    • eric@webkit.org's avatar
      2009-05-20 Eric Seidel <eric@webkit.org> · 5794204e
      eric@webkit.org authored
              Fix bug URL in ChangeLogs in r43903.
              https://bugs.webkit.org/show_bug.cgi?id=25742
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43906 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5794204e
    • eric@webkit.org's avatar
      2009-05-20 Eric Seidel <eric@webkit.org> · a95d67e4
      eric@webkit.org authored
              No review, build fix only.
      
              Add files I missed in r43903.
      
              Takeshi's patch was right, I just failed to add the files when landing.
      
              * platform/mac/fast/forms/search-styled-expected.checksum: Added.
              * platform/mac/fast/forms/search-styled-expected.png: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43905 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a95d67e4
    • eric@webkit.org's avatar
      2009-05-20 Takeshi Yoshino <tyoshino@google.com> · 709f8428
      eric@webkit.org authored
              Reviewed by Eric Seidel.
      
              Bug 24539: Fix RenderThemeChromiumWin::paintTextFieldInternal() not to hide background image.
              https://bugs.webkit.org/show_bug.cgi?id=24539
      
              Fix RenderThemeChromiumWin::paintTextFieldInternal().
      
              We shouldn't paint the content area of text fields when o->style() has
              background image or transparent background color. paintTextFieldInternal() is
              used for painting inner area of HTML option elements by Chromium.
      
              When we pass fillContentArea = true to ChromiumBridge::paintTextField, it hides
              the background image rendered by RenderBoxModelObject. So, we should set
              fillContentArea = false in such case.
      
              Besides, when background-color:transparent is specified for CSS property,
              o->style().backgroundColor returns black color with alpha channel == 0. But
              since ThemeEngine for Windows behind ChromiumBridge::paintTextField cannot
              recognize alpha channel, it fills the rect with black. I made workaround to set
              fillContentArea = false when alpha channel == 0 to avoid this.
      
              And more, I'd like to fallback the color passed to ChromiumBridge to white when
              o->style()->backgroundColor() is invalid.
      
              * rendering/RenderThemeChromiumWin.cpp:
              (WebCore::RenderThemeChromiumWin::paintTextFieldInternal):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43903 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      709f8428
    • eric@webkit.org's avatar
      2009-05-20 Shinichiro Hamaji <hamaji@google.com> · a8034138
      eric@webkit.org authored
              Reviewed by Eric Seidel.
      
              https://bugs.webkit.org/show_bug.cgi?id=25417
              Map CompositeCopy to Skia's kSrc_Mode composite operation.
      
              Test: fast/canvas/canvas-composite-alpha.html
      
              * platform/graphics/skia/SkiaUtils.cpp:
              (WebCore::):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43902 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a8034138
    • eric@webkit.org's avatar
      2009-05-20 Eric Seidel <eric@webkit.org> · acf6544c
      eric@webkit.org authored
              Build fix only, no review.
      
              Remove dragging subtest from 43890 which used ? char
      
              ? is a reserved char on Windows. After removing both the ü and now the ? this
              subtest is now useless, so I'm removing it entirely.
      
              * editing/pasteboard/file-input-files-access-expected.txt:
              * editing/pasteboard/resources/File With Spaces! For Dragging?.gif: Removed.
              * editing/pasteboard/resources/file-input-files-access.js:
              (runTest):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43897 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      acf6544c
    • eric@webkit.org's avatar
      2009-05-20 Eric Seidel <eric@webkit.org> · e1f2bd97
      eric@webkit.org authored
              Build fix only, no review.
      
              Fix windows and tiger builds after r43890
      
              Commit r43890 caused:
              svn: Can't convert string from 'UTF-8' to native encoding:
              svn: LayoutTests/editing/pasteboard/resources/File With Spaces! For Dra?\204?\136gging?.gif
              On both the windows and tiger buildbots.  According to:
              http://svnbook.red-bean.com/en/1.2/svn.advanced.l10n.html
              this is intentional behavior, and due to the fact that the default
              LC_CTYPE for Tiger and Windows makes Subversion think the filesystems
              do not support utf8.
      
              The fix would be to execute:
              export LC_CTYPE=en_US.UTF-8
              On all affected machines.  But since that's not going to happen,
              I'm removing the utf8 chars from this filename.
      
              This makes the drag-drop test weaker, but I see no other option.
      
              * editing/pasteboard/resources/File With Spaces! For Dragging?.gif: Renamed from "LayoutTests/editing/pasteboard/resources/File With Spaces! For Dra\314\210gging?.gif".
              * editing/pasteboard/resources/file-input-files-access.js:
              (moveMouseToCenterOfElement): use the unused argument
              (runTest): fix to use the ansii name
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43895 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e1f2bd97
    • darin@apple.com's avatar
      2009-05-20 Darin Adler <darin@apple.com> · d6f35dfc
      darin@apple.com authored
              Removed stray file left after some check-ins earlier today.
      
              * fast/tokenizer/preload-scanner-entities.html-disabled: Removed.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43891 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d6f35dfc
    • eric@webkit.org's avatar
      2009-05-18 Eric Seidel <eric@webkit.org> · e1c381bb
      eric@webkit.org authored
              Reviewed by Oliver Hunt.
      
              Remove layoutTestController.addFileToPasteboardOnDrag and add eventSender.beginDragWithFiles
              https://bugs.webkit.org/show_bug.cgi?id=25852
      
              This allows us to now test multi-file file drags in DumpRenderTree per:
              https://bugs.webkit.org/show_bug.cgi?id=25862
      
              I removed the existing tests using addFileToPasteboardOnDrag()
              and replaced them with a new test (editing/pasteboard/file-input-files-access)
              which covers several more drag-drop cases.
      
              I added a DumpRenderTreeFileDraggingSource class to avoid
              the hack of if (!draggingSource) in [DumpRenderTreeDraggingInfo draggingSourceOperationMask]
      
              New Test: editing/pasteboard/file-input-files-access.html
      
              * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
              * DumpRenderTree/DumpRenderTreeFileDraggingSource.h: Added.
              * DumpRenderTree/DumpRenderTreeFileDraggingSource.m: Added.
              (-[DumpRenderTreeFileDraggingSource draggingSourceOperationMaskForLocal:]):
              * DumpRenderTree/LayoutTestController.cpp:
              (LayoutTestController::LayoutTestController):
              (LayoutTestController::staticValues): removed addFileToPasteboardOnDrag support
              (LayoutTestController::staticFunctions): removed addFileToPasteboardOnDrag support
              * DumpRenderTree/LayoutTestController.h:
              * DumpRenderTree/mac/DumpRenderTree.mm:
              (runTest): ASSERT that draggingInfo has been cleared
              * DumpRenderTree/mac/EventSendingController.mm:
              (+[EventSendingController isSelectorExcludedFromWebScript:]): Sorted selectors.
              (+[EventSendingController webScriptNameForSelector:]): Sorted selectors.
              (-[EventSendingController beginDragWithFiles:]):
              (-[EventSendingController mouseMoveToX:Y:]):
              (-[EventSendingController keyDown:withModifiers:]):
              (-[EventSendingController fireKeyboardEventsToElement:]): removed spurious { }
              * DumpRenderTree/mac/UIDelegate.mm:
              (-[UIDelegate webView:dragImage:at:offset:event:pasteboard:source:slideBack:forView:]): removed addFileToPasteboardOnDrag support
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43890 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e1c381bb
  3. 19 May, 2009 6 commits
  4. 18 May, 2009 6 commits
    • ddkilzer@apple.com's avatar
      Added cookie test to Skipped list for Windows · 8c1358f6
      ddkilzer@apple.com authored
              See Bug 25861. <https://bugs.webkit.org/show_bug.cgi?id=25861>
      
              * platform/win/Skipped: Added
              http/tests/cookies/simple-cookies-expired.html.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43853 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8c1358f6
    • ddkilzer@apple.com's avatar
      Bug 24569: Add some cookies tests · 3cda22fa
      ddkilzer@apple.com authored
              <https://bugs.webkit.org/show_bug.cgi?id=24569>
      
      LayoutTests:
      
              Reviewed and tweaked by David Kilzer.
      
              This modification adds a cookie framework to check setting cookies.
              It is a simple modification over the js test framework. It uses some XHRs and custom server-side script
              to set / get / clear cookies.
      
              It also adds some very basic tests to check that everything works.
      
              * http/tests/cookies: Added.
              * http/tests/cookies/multiple-cookies-expected.txt: Added.
              * http/tests/cookies/multiple-cookies.html: Added.
              * http/tests/cookies/resources: Added.
              * http/tests/cookies/resources/TEMPLATE.html: Copied from LayoutTests/fast/js/resources/TEMPLATE.html.
              * http/tests/cookies/resources/clearCookies.cgi: Added.
              * http/tests/cookies/resources/cookies-test-post.js: Copied from LayoutTests/fast/js/resources/js-test-post.js.
              * http/tests/cookies/resources/cookies-test-pre.js: Copied from LayoutTests/fast/js/resources/js-test-pre.js.
              (setCookies): Internal method to set a cookie (multiple cookies are not supported).
              (testCookies): Internal method to check if the cookie were set.
      
              (clearAllCookies): Used to clear all pre-existing cookies for this domain.
              (clearCookies): Used to clear the cookies set with cookiesShouldBe.
              (cookiesShouldBe): Used to set a cookie and check the "Cookie" header sent. It is inspired from shouldBe from the js test framework.
      
              * http/tests/cookies/resources/cookies-test-style.css: Copied from LayoutTests/fast/js/resources/js-test-style.css.
              * http/tests/cookies/resources/getCookies.cgi: Added.
              * http/tests/cookies/resources/multiple-cookies.js: Added.
              * http/tests/cookies/resources/setCookies.cgi: Added.
              * http/tests/cookies/resources/simple-cookies-expired.js: Added.
              * http/tests/cookies/resources/simple-cookies-max-age.js: Added.
              * http/tests/cookies/simple-cookies-expired-expected.txt: Added.
              * http/tests/cookies/simple-cookies-expired.html: Added.
              * http/tests/cookies/simple-cookies-max-age-expected.txt: Added.
              * http/tests/cookies/simple-cookies-max-age.html: Added.
              * platform/mac-tiger/Skipped: Added
              http/tests/cookies/simple-cookies-max-age.html since CFNetwork
              on Tiger doesn't support expiring cookies with Max-Age=0.
      
      WebKitTools:
      
              Patch by David Kilzer.
      
              * Scripts/make-js-test-wrappers: Added regex to skip
              cookies-test-(post|pre).js files.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43851 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3cda22fa
    • ddkilzer@apple.com's avatar
      Bug 20652: WebKit doesn't display favicons with MIME type image/vnd.microsoft.icon · b5e263c7
      ddkilzer@apple.com authored
              <https://bugs.webkit.org/show_bug.cgi?id=20652>
      
              Reviewed by Darin Adler.
      
      WebCore:
      
              Test: http/tests/misc/favicon-as-image.html
      
              * inspector/front-end/inspector.js: Added
              image/vnd.microsoft.icon to WebInspector.MIMETypes.
              * platform/MIMETypeRegistry.cpp:
              (WebCore::initializeSupportedImageMIMETypes): Added
              image/vnd.microsoft.icon to list of supported image and image
              resource MIME types.
      
      LayoutTests:
      
              Updated existing favicon-as-image.html test to display a third
              image having MIME type image/vnd.microsoft.icon.
      
              * http/tests/misc/favicon-as-image.html: Updated.
              * http/tests/misc/resources/.htaccess: Added.
              * http/tests/misc/resources/favicon-vnd-ms.ico: Copied from LayoutTests/fast/images/resources/favicon.ico.
              * platform/mac/http/tests/misc/favicon-as-image-expected.checksum: Updated.
              * platform/mac/http/tests/misc/favicon-as-image-expected.png: Updated.
              * platform/mac/http/tests/misc/favicon-as-image-expected.txt: Updated.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43834 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b5e263c7
    • eric@webkit.org's avatar
      2009-05-18 Julie Parent <jparent@google.com> · 93b7e7dc
      eric@webkit.org authored
              Reviewed by Eric Seidel.
      
              Skip new tests from r43822 on Gtk
              https://bugs.webkit.org/show_bug.cgi?id=25780
      
              * platform/gtk/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43823 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      93b7e7dc
    • eric@webkit.org's avatar
      2009-05-18 Julie Parent <jparent@google.com> · d134591a
      eric@webkit.org authored
              Reviewed by Oliver Hunt.
      
              Add missing files from r43821
              https://bugs.webkit.org/show_bug.cgi?id=25780
      
              * editing/pasteboard/get-data-text-plain-drop-expected.txt: Added.
              * editing/pasteboard/get-data-text-plain-drop.html: Added.
              * editing/pasteboard/get-data-text-plain-paste-expected.txt: Added.
              * editing/pasteboard/get-data-text-plain-paste.html: Added.
              * editing/pasteboard/resources/TEMPLATE.html: Copied from LayoutTests/editing/execCommand/resources/TEMPLATE.html.
              * editing/pasteboard/resources/get-data-text-plain-paste.js: Added.
              (handlePaste):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43822 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d134591a
    • eric@webkit.org's avatar
      2009-05-18 Julie Parent <jparent@google.com> · e80e1d52
      eric@webkit.org authored
              Reviewed by Eric Seidel.
      
              https://bugs.webkit.org/show_bug.cgi?id=25716
      
              * Scripts/make-js-test-wrappers: Added exception to avoid overwriting a custom-written test.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43821 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e80e1d52
  5. 17 May, 2009 3 commits
  6. 16 May, 2009 1 commit
    • mitz@apple.com's avatar
      WebCore: · 9a71a3e1
      mitz@apple.com authored
              Reviewed by Alexey Proskuryakov.
      
              - fix <rdar://problem/6873305> Two distinct characters are not displayed
                correctly with 2 of the font selections from the stickies widget
      
              Test: platform/mac/editing/pasteboard/text-precomposed.html
      
              Ensure that "text/plain" data retrieved from the clipboard is always
              precomposed. This makes Clipboard::getData() and
              Pasteboard::documentFragment() consistent with Pasteboard::plainText()
              and -[WebHTMLView _documentFragmentFromPasteboard:forType:inContext:subresources:].
      
              * platform/mac/ClipboardMac.mm:
              (WebCore::ClipboardMac::getData):
              * platform/mac/PasteboardMac.mm:
              (WebCore::Pasteboard::documentFragment):
      
      WebKit/mac:
      
              Reviewed by Alexey Proskuryakov.
      
              - fix <rdar://problem/6873305> Two distinct characters are not displayed
                correctly with 2 of the font selections from the stickies widget
      
              * WebView/WebHTMLView.mm:
              (-[WebHTMLView _plainTextFromPasteboard:]): Return precomposed text.
              This is consistent with
              -_documentFragmentFromPasteboard:forType:inContext:subresources:.
      
      LayoutTests:
      
              Reviewed by Alexey Proskuryakov.
      
              - test for <rdar://problem/6873305> Two distinct characters are not
                displayed correctly with 2 of the font selections from the stickies
                widget
      
              * platform/mac/editing/pasteboard/text-precomposed-expected.txt: Added.
              * platform/mac/editing/pasteboard/text-precomposed.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43802 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9a71a3e1