Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reloading a top page through submitting a form with 'target="_parent"' adds the iframe flag #1680

Closed
AndreyBelym opened this issue Jul 11, 2018 · 1 comment
Assignees
Labels
STATE: Auto-locked Issues that were automatically locked by the Lock bot TYPE: bug

Comments

@AndreyBelym
Copy link
Contributor

AndreyBelym commented Jul 11, 2018

https://isc.devexpress.com/Thread/WorkplaceDetails?id=T641743

Reproduced in playground.

index.html:
<html>
<head><title>Test</title></head>
<body>
    <iframe src="iframe.html">
    </iframe>
</body>
</html>
iframe.html:
<html>
<head><title>Iframe</title></head>
<body>
    <form action="result.html" method="GET">
        <input type="Submit" value="Click">
    </form>
</body>
</html>
result.html:
<script>
var HTMLText="<ht"+"ml><he"+"ad></he"+"ad><bo"+"dy><form action='index.html' method='GET' name='redirect' target='_parent'></form></bo"+"dy></ht"+"ml>";
document.open("text/html","replace");
document.write(HTMLText);
document.close();
document.forms['redirect'].submit();
</script>

URL after loading index.html in the playground: http://localhost:1401/PhTNzXcd9/file:///D:/xxx/index.html

URL after clicking the Click button: http://localhost:1401/PhTNzXcd9!if/file:///D:/xxx/index.html?

@lock
Copy link

lock bot commented Mar 28, 2019

This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests. We recommend you ask TestCafe API, usage and configuration inquiries on StackOverflow.

@lock lock bot added the STATE: Auto-locked Issues that were automatically locked by the Lock bot label Mar 28, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Mar 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
STATE: Auto-locked Issues that were automatically locked by the Lock bot TYPE: bug
Projects
None yet
Development

No branches or pull requests

4 participants