You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Form submission to file:// and about: URLs silently fails #8113
A-content/domInteracting with the DOM from web contentC-assignedThere is someone working on resolving the issueE-less-complexStraightforward. Recommended for a new contributor.
This form navigates correctly to other.html if it's run under an HTTP server (such as python -m SimpleHTTPServer), but does nothing if it's run from the local filesystem. We should correct this by fixing the "Step 18" implementation in HTMLFormElement::submit by adding a handler for the "file" scheme along with "ftp", etc.
Unfortunately it's not clear to me that it's possible to write an automated test for this, since our tests run under an HTTP webserver.
It should be possible to write an automated test using a iframe which checks the behavior of form submission to about:blank, I think. (Like you said, it's probably not possible to write tests for file:// URLs using the wpt test framework.)
I finally came up with a way of testing the fix with about:blank; I have to go for the "test != ref" scheme because otherwise, since both are blank, the test would have to be marked as flaky (and therefore not test anything really...). I hope it makes sense.
A-content/domInteracting with the DOM from web contentC-assignedThere is someone working on resolving the issueE-less-complexStraightforward. Recommended for a new contributor.
Activity
[-]Form submission to file:// URLs silently fails[/-][+]Form submission to file:// and about: URLs silently fails[/+]jdm commentedon Oct 21, 2015
This should also add a similar handler for
about:URLs.eefriedman commentedon Oct 21, 2015
It should be possible to write an automated test using a iframe which checks the behavior of form submission to
about:blank, I think. (Like you said, it's probably not possible to write tests forfile://URLs using the wpt test framework.)simartin commentedon Oct 24, 2015
I'll give this one a try.
jdm commentedon Oct 24, 2015
@simartin That would be great!
simartin commentedon Oct 25, 2015
Patch is ready and validated manually; now working on an automated test using the suggestion eefriedman did.
Issue servo#8113: Support file, about and data schemes as form action.
simartin commentedon Nov 2, 2015
I finally came up with a way of testing the fix with about:blank; I have to go for the "test != ref" scheme because otherwise, since both are blank, the test would have to be marked as flaky (and therefore not test anything really...). I hope it makes sense.
Issue servo#8113: Support file, about and data schemes as form action.
Issue servo#8113: Support file, about and data schemes as form action.
Issue servo#8113: Support file, about and data schemes as form action.
Auto merge of #8293 - simartin:issue_8113, r=jdm
Auto merge of #8293 - simartin:issue_8113, r=jdm
servo: Merge #8293 - Issue #8113: Support file, about and data scheme…
servo: Merge #8293 - Issue #8113: Support file, about and data scheme…
servo: Merge #8293 - Issue #8113: Support file, about and data scheme…
servo: Merge #8293 - Issue #8113: Support file, about and data scheme…