Bug 23310: Setting an absolute path (/abs) on an <iframe> with no src doesn...
authorddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 24 Mar 2009 21:40:24 +0000 (21:40 +0000)
committerddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 24 Mar 2009 21:40:24 +0000 (21:40 +0000)
commitc1caef7621816e79e0a5b4562b3d7194c9d88632
treef7137fa9bd21818b37bd1bebfb1035046b249001
parentf6b3dba5d42fc6fcc2b7cc3033a5997c3ab7a7c9
    Bug 23310: Setting an absolute path (/abs) on an <iframe> with no src doesn't resolve the URL properly

        <https://bugs.webkit.org/show_bug.cgi?id=23310>

        Reviewed by Darin Adler.

WebCore:

        Test: fast/frames/iframe-no-src-set-location.html

        * dom/Document.cpp:
        (WebCore::Document::completeURL): If m_baseURL is empty or is
        about:blank and we have a parent document, use the parent
        document's URL for the base when completing a new URL.

LayoutTests:

        * fast/frames/iframe-no-src-set-location-expected.txt: Added.
        * fast/frames/iframe-no-src-set-location.html: Added.
        * fast/frames/resources/iframe-no-src-set-location-pass.html: Copied from LayoutTests/fast/dom/Document/early-document-access-expected.txt.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@41953 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/frames/iframe-no-src-set-location-expected.txt [new file with mode: 0644]
LayoutTests/fast/frames/iframe-no-src-set-location.html [new file with mode: 0644]
LayoutTests/fast/frames/resources/iframe-no-src-set-location-pass.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/dom/Document.cpp