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