Bug 159932 - location.replace(this.href) redirects browser .
Summary: location.replace(this.href) redirects browser .
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Maksim Orlovich
Depends on:
Reported: 2008-03-27 05:37 UTC by Charles Samuels
Modified: 2008-08-24 00:33 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:

testcase (354 bytes, text/html)
2008-03-27 05:39 UTC, Charles Samuels

Note You need to log in before you can comment on or make changes to this bug.
Description Charles Samuels 2008-03-27 05:37:46 UTC
Version:            (using Devel)
Installed from:    Compiled sources

the attached testcase redirects on khtml but not on every other browser I've tested.

Here's some more information out of our IRC log:

document.onload = function() { location.replace(this.href) } - then not-konq goes to the URL .../undefined

same with "null"

location.replace(undefined) in FF does nothing

null does nothing, () does nothing, undefined goes to undefined, and '' does nothing on FF
Comment 1 Charles Samuels 2008-03-27 05:39:29 UTC
Created attachment 24072 [details]
Comment 2 Maksim Orlovich 2008-03-27 06:14:22 UTC
The issue here is rather the ordering of form submission and the deferred redirect. Needs detailed timing testing (multiple submits, etc.)