Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upIssue #8113: Support file, about and data schemes as form action. #8293
Conversation
|
Great work, especially on figuring out a way to test it :) I've got some suggestions to improve that below. Reviewed 4 of 4 files at r1. components/script/dom/htmlformelement.rs, line 210 [r1] (raw file): // https://html.spec.whatwg.org/multipage/#submit-get-action
("file", _) | ("about", _) | ("data", FormMethod::FormGet) |
("ftp", _) | ("javascript", _) => (),tests/ref/basic.list, line 23 [r1] (raw file): tests/ref/form_submit_about.html, line 8 [r1] (raw file): tests/ref/form_submit_about_ref.html, line 1 [r1] (raw file): Comments from the review on Reviewable.io |
|
|
|
tests/ref/form_submit_about.html, line 8 [r1] (raw file): Comments from the review on Reviewable.io |
|
Will resolve once the discussion with jdm on testing is complete Comments from the review on Reviewable.io |
|
@simartin What is the target of the form that gets submitted? What if you make a blank.html in the same directory and use that as the target? Does the missing onload event occur? |
|
In that case the onload event occurs... I guess there's something special with about:blank; I'll try with about:failure, that I understand will load failure.html |
|
The thing that's special about about:blank is that it's cross-origin... getting the load event to fire correctly depends on getting cross-origin wrappers working. |
|
Actually cross-origin iframe load events are part of #6677. |
|
#8558 is ready for review, so I'd like to merge that and then get the test using |
|
Awesome! I'll keep an eye on #8558 and resume writing a wpt along with this patch. |
|
The fix for #8558 has been merged, hence resuming work on this issue |
|
|
|
wpt test added as suggested Comments from the review on Reviewable.io |
|
@bors-servo: r+ Reviewed 7 of 7 files at r2. Comments from the review on Reviewable.io |
|
|
Issue #8113: Support file, about and data schemes as form action. Fix #8113 by supporting those schemes as form action and unit test the "about:blank" case <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8293) <!-- Reviewable:end -->
|
|
|
@bors-servo: retry |
Issue #8113: Support file, about and data schemes as form action. Fix #8113 by supporting those schemes as form action and unit test the "about:blank" case <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8293) <!-- Reviewable:end -->
|
|
simartin commentedNov 2, 2015
Fix #8113 by supporting those schemes as form action and unit test the "about:blank" case