Bug 25339
Summary: | window.dialogArguments doesn't work if use port number in URL | ||
---|---|---|---|
Product: | WebKit | Reporter: | Jiuqing Song <jisong> |
Component: | WebCore Misc. | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | ||
Priority: | P2 | ||
Version: | 525.x (Safari 3.2) | ||
Hardware: | Mac | ||
OS: | OS X 10.5 |
Jiuqing Song
Write two html files:
<!-- 1.htm -->
<script>
window.showModalDialog("2.htm", "test");
</script>
<!-- 2.htm -->
<script>
alert(window.dialogArguments);
</script>
And put them on a web server, try to use these urls to access 1.htm:
http://YOUR_SERVER_URL/1.htm
http://YOUR_SERVER_URL:80/1.htm
The first one can alert "test", but the second one only alert "undefined".
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Sam Weinig
I cannot reproduce these results. Can you set up a page where this happnens?
Mark Rowe (bdash)
Jiuqing replied to the Bugzilla email rather than commenting in the bug:
> I am sorry that I don't have a public web server.
> I repro this on Safari 3.1.2 (5525.20.1), but it does not repro on WebKit (this same build number)
This indicates that it has been fixed since Safari 3.1.2. In the future, please test with a more recent version when filing a bug report. Safari 4 Beta or a recent nightly build are good choices.