Commit 1663aae7 authored by ap@webkit.org's avatar ap@webkit.org

Reviewed by Darin.

        https://bugs.webkit.org/show_bug.cgi?id=19884
        Locating a store at www.366.ru doesn't work

        Test: fast/forms/submit-with-base.html

        * html/HTMLFormElement.cpp: (WebCore::HTMLFormElement::submit): Treat empty action the same
        as missing one - ignore base URL.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34986 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 5e3025ea
2008-07-03 Alexey Proskuryakov <ap@webkit.org>
Reviewed by Darin.
https://bugs.webkit.org/show_bug.cgi?id=19884
Locating a store at www.366.ru doesn't work
* fast/forms/submit-with-base-expected.txt: Added.
* fast/forms/submit-with-base.html: Added.
2008-07-03 Geoffrey Garen <ggaren@apple.com> 2008-07-03 Geoffrey Garen <ggaren@apple.com>
Reviewed by Mark Rowe. Reviewed by Mark Rowe.
Test for bug 19884 Locating a store at www.366.ru doesn't work.
PASS
<head>
<base href="http://www.366.ru/">
</head>
<p>
Test for <i><a href="https://bugs.webkit.org/show_bug.cgi?id=19884">bug 19884</a></i>
Locating a store at www.366.ru doesn't work.
</p>
<p id="result">FAIL</p>
<hr>
<form id="t" action="" onsubmit="return true"><input name=a value=b></form>
<script>
if (!location.href.match('\\?')) {
if (window.layoutTestController) {
layoutTestController.dumpAsText();
layoutTestController.waitUntilDone();
}
document.getElementById("t").submit();
} else {
document.getElementById("result").innerHTML = "PASS";
if (window.layoutTestController)
layoutTestController.notifyDone();
}
</script>
2008-07-03 Alexey Proskuryakov <ap@webkit.org>
Reviewed by Darin.
https://bugs.webkit.org/show_bug.cgi?id=19884
Locating a store at www.366.ru doesn't work
Test: fast/forms/submit-with-base.html
* html/HTMLFormElement.cpp: (WebCore::HTMLFormElement::submit): Treat empty action the same
as missing one - ignore base URL.
2008-07-03 Dan Bernstein <mitz@apple.com> 2008-07-03 Dan Bernstein <mitz@apple.com>
Reviewed by John Sullivan. Reviewed by John Sullivan.
...@@ -461,7 +461,7 @@ void HTMLFormElement::submit(Event* event, bool activateSubmitButton) ...@@ -461,7 +461,7 @@ void HTMLFormElement::submit(Event* event, bool activateSubmitButton)
if (needButtonActivation && firstSuccessfulSubmitButton) if (needButtonActivation && firstSuccessfulSubmitButton)
firstSuccessfulSubmitButton->setActivatedSubmit(true); firstSuccessfulSubmitButton->setActivatedSubmit(true);
if (!m_url) if (m_url.isEmpty())
m_url = document()->url().string(); m_url = document()->url().string();
if (m_post) { if (m_post) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment