Bug 159932

Summary: location.replace(this.href) redirects browser .
Product: [Applications] konqueror Reporter: Charles Samuels <charles>
Component: khtmlAssignee: Maksim Orlovich <maksim>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: testcase

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]
testcase
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.)