Backport crash fix by Huzaifa Sidhpurwala <huzaifas@redhat.com>
authorHuzaifa Sidhpurwala <huzaifas@redhat.com>
Fri, 4 Feb 2011 05:09:34 +0000 (10:39 +0530)
committerHuzaifa Sidhpurwala <huzaifas@redhat.com>
Fri, 4 Feb 2011 05:09:34 +0000 (10:39 +0530)
commit93d511d5d71bc8c29e0068d8b9855520e46e6315
treeb925c287e4b1811002be6497d2347dd5d6921f55
parentea2b740ac7c78831183dd57123e3a8b074c9c293
Backport crash fix by Huzaifa Sidhpurwala <huzaifas@redhat.com>

    2010-11-11  Abhishek Arya  <inferno@chromium.org>

            Reviewed by Adam Barth.

            Not allow drag and drop across different origins.
            https://bugs.webkit.org/show_bug.cgi?id=49098

            Test: http/tests/security/drag-drop-different-origin.html

            * page/DragController.cpp:
            (WebCore::DragController::tryDocumentDrag):
            * page/SecurityOrigin.cpp:
            (WebCore::SecurityOrigin::canDropOnTarget):
            * page/SecurityOrigin.h:
    2010-11-10  Abhishek Arya  <inferno@chromium.org>

            Reviewed by Adam Barth.

            Check that drag and drop is not allowed across different origins.
            https://bugs.webkit.org/show_bug.cgi?id=49098

            * http/tests/security/drag-drop-different-origin-expected.txt: Added.
            * http/tests/security/drag-drop-different-origin.html: Added.
            * http/tests/security/resources/drag-drop.html: Added.

    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@71925 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/http/tests/security/drag-drop-different-origin-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/security/drag-drop-different-origin.html [new file with mode: 0644]
LayoutTests/http/tests/security/resources/drag-drop.html [new file with mode: 0644]
WebCore/page/DragController.cpp
WebCore/page/SecurityOrigin.cpp
WebCore/page/SecurityOrigin.h