Updates:
Summary: option value on iframe post incorrectly because a second
javascript sentence parent.location.href=xxx is executed when it is in
iframe
Cc: [email protected]
Labels: -NeedsReduction Has-reduction JavaScript
Comment #3 on issue 13895 by [email protected]: option value on iframe post
incorrectly because a second javascript sentence parent.location.href=xxx
is executed when it is in iframe
http://code.google.com/p/chromium/issues/detail?id=13895
For original web page, it has javascript like:
......
<script
language="JavaScript">parent.location.href="index.php?cat=11";</script><script
language="JavaScript">parent.location.href="advanced_search_result.php?keywords=Free
Search";</script>
......
In Chrome, the second sentence has a chance to be executed, this is the
cause of the
issue.
Reduction below:
http://go/reductions/13895/test-start.html
In the iframe document test-standard.html, there are two javascript
sentences:
......
<script>parent.location.href="http://www.google.com";</script>
<script>parent.location.href="http://www.yahoo.com";</script>
......
In IE and Firefox, the second sentence will have no chance to be executed,
so the
page will be redirected to google.com, but in Chrome the second sentence is
executed,
so the page is redirected to yahoo.com.
Attachments:
test-start.html 387 bytes
test-standard.html 445 bytes
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---