mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Issue #8113: Support file, about and data schemes as form action.
This commit is contained in:
parent
a8cbc28643
commit
2b332a2138
4 changed files with 36 additions and 1 deletions
|
@ -209,7 +209,8 @@ impl HTMLFormElement {
|
|||
load_data.data = Some(parsed_data.into_bytes());
|
||||
},
|
||||
// https://html.spec.whatwg.org/multipage/#submit-get-action
|
||||
("ftp", _) | ("javascript", _) | ("data", FormMethod::FormGet) => (),
|
||||
("file", _) | ("about", _) | ("data", FormMethod::FormGet) |
|
||||
("ftp", _) | ("javascript", _) => (),
|
||||
_ => return // Unimplemented (data and mailto)
|
||||
}
|
||||
|
||||
|
|
|
@ -5451,6 +5451,12 @@
|
|||
"url": "/_mozilla/mozilla/follow-hyperlink.html"
|
||||
}
|
||||
],
|
||||
"mozilla/form_submit_about.html": [
|
||||
{
|
||||
"path": "mozilla/form_submit_about.html",
|
||||
"url": "/_mozilla/mozilla/form_submit_about.html"
|
||||
}
|
||||
],
|
||||
"mozilla/getBoundingClientRect.html": [
|
||||
{
|
||||
"path": "mozilla/getBoundingClientRect.html",
|
||||
|
|
15
tests/wpt/mozilla/tests/mozilla/form_submit_about.html
Normal file
15
tests/wpt/mozilla/tests/mozilla/form_submit_about.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
<html>
|
||||
<head>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
</head>
|
||||
<body>
|
||||
<iframe src="form_submit_about_frame.html" id="foo"></iframe>
|
||||
<script>
|
||||
var numOnLoads = 0
|
||||
var t = async_test("about:blank as form target")
|
||||
var iframe = document.getElementById('foo')
|
||||
iframe.onload = t.step_func(function(e) { if (++numOnLoads == 2) t.done() })
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
13
tests/wpt/mozilla/tests/mozilla/form_submit_about_frame.html
Normal file
13
tests/wpt/mozilla/tests/mozilla/form_submit_about_frame.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<form name="my" action="about:blank">
|
||||
<input type="submit" value="Submit about:blank"/>
|
||||
</form>
|
||||
<script>
|
||||
window.onload = function() {
|
||||
document.forms["my"].submit();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue