Bug 212749
Summary: | Submitting form in iframe corrupts href attribute in <a> | ||
---|---|---|---|
Product: | WebKit | Reporter: | Ali Baykal <alib> |
Component: | Forms | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED INVALID | ||
Severity: | Normal | CC: | achristensen, beidson, cdumez, webkit-bug-importer, wenson_hsieh, youennf |
Priority: | P2 | Keywords: | InRadar |
Version: | Safari 13 | ||
Hardware: | Mac | ||
OS: | iOS 13 |
Ali Baykal
Webkit Version: r262530
Steps to reproduce:
- Open example on https://jsbin.com/yiwiwagoge
- Navigate to the bottom of the form
- Click on the link "Datenschutzhinweise"
- Observe that it opens a new page
- Go back to the form
- Send the form (click on "Absenden")
- Check the "Datenschutzhinweise" link in the DOM and observe that the href attribute is now empty
Expected behaviour:
- The href attribute should not be empty, it should reference the same page as before sending the form
Notes:
- I could only observe this behaviour on Safari. I also tried Firefox and Chrome.
- The behaviour only occurs when the form is embedded in an iframe. If the form is opened outside without an iframe it works as expected.
The notes above lead me to the conclusion that this must be an issue related to Webkit. If our product (the form code) was faulty it would show the same behaviour outside the iframe. And since it works with the other two browsers, it can also not be caused by a security/sandboxing feature related to the use of iframes.
Best regards,
Ali Baykal
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/64095202>