diff --git a/components/script/dom/htmlformelement.rs b/components/script/dom/htmlformelement.rs index 6d37719a862..2bf414828b0 100644 --- a/components/script/dom/htmlformelement.rs +++ b/components/script/dom/htmlformelement.rs @@ -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) } diff --git a/tests/wpt/mozilla/meta/MANIFEST.json b/tests/wpt/mozilla/meta/MANIFEST.json index e2b7aa33d2d..93c437588d4 100644 --- a/tests/wpt/mozilla/meta/MANIFEST.json +++ b/tests/wpt/mozilla/meta/MANIFEST.json @@ -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", diff --git a/tests/wpt/mozilla/tests/mozilla/form_submit_about.html b/tests/wpt/mozilla/tests/mozilla/form_submit_about.html new file mode 100644 index 00000000000..ec572ab0bc6 --- /dev/null +++ b/tests/wpt/mozilla/tests/mozilla/form_submit_about.html @@ -0,0 +1,15 @@ + + + + + + + + + + diff --git a/tests/wpt/mozilla/tests/mozilla/form_submit_about_frame.html b/tests/wpt/mozilla/tests/mozilla/form_submit_about_frame.html new file mode 100644 index 00000000000..7beb90f1ab7 --- /dev/null +++ b/tests/wpt/mozilla/tests/mozilla/form_submit_about_frame.html @@ -0,0 +1,13 @@ + + + +
+ +
+ + +