Bug 17692
| Summary: | Safari only execute the latest location command to redirect/request? | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | YCL <leaveyou> |
| Component: | Page Loading | Assignee: | Nobody <webkit-unassigned> |
| Status: | UNCONFIRMED | ||
| Severity: | Normal | CC: | ap |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
YCL
I write the javascript code at the same javascript tag below.
<script language="javascript">
var loc = 'test.cgi?setdataindex=1';
var code = 'location="' + loc + '"';
eval(code);
loc = 'test2.cgi?changemode=1';
code = 'location="' + loc + '"';
eval(code);
loc = 'index.html';
code = 'location="' + loc + '"';
eval(code);
</script>
According to my test, Safari only execute the latest eval(code) to redirect to index.html.
It will ignore the other eval(code).
I need execute the total location at the same page for send data to server. IE and Firefox will execute every location command and works but Safari doesn't.
Could you help me? Thank you.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |