<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>159932</bug_id>
          
          <creation_ts>2008-03-27 05:37:46 +0000</creation_ts>
          <short_desc>location.replace(this.href) redirects browser .</short_desc>
          <delta_ts>2008-08-24 00:33:08 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>konqueror</product>
          <component>khtml</component>
          <version>unspecified</version>
          <rep_platform>Compiled Sources</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Charles Samuels">charles</reporter>
          <assigned_to name="Maksim Orlovich">maksim</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>589606</commentid>
    <comment_count>0</comment_count>
    <who name="Charles Samuels">charles</who>
    <bug_when>2008-03-27 05:37:46 +0000</bug_when>
    <thetext>Version:            (using Devel)
Installed from:    Compiled sources

the attached testcase redirects on khtml but not on every other browser I&apos;ve tested.

Here&apos;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 &quot;null&quot;

location.replace(undefined) in FF does nothing

null does nothing, () does nothing, undefined goes to undefined, and &apos;&apos; does nothing on FF</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>589607</commentid>
    <comment_count>1</comment_count>
      <attachid>24072</attachid>
    <who name="Charles Samuels">charles</who>
    <bug_when>2008-03-27 05:39:29 +0000</bug_when>
    <thetext>Created attachment 24072
testcase</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>589608</commentid>
    <comment_count>2</comment_count>
    <who name="Maksim Orlovich">maksim</who>
    <bug_when>2008-03-27 06:14:22 +0000</bug_when>
    <thetext>The issue here is rather the ordering of form submission and the deferred redirect. Needs detailed timing testing (multiple submits, etc.)

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>640390</commentid>
    <comment_count>3</comment_count>
    <who name="Maksim Orlovich">maksim</who>
    <bug_when>2008-08-24 00:33:08 +0000</bug_when>
    <thetext>http://lists.kde.org/?l=kde-commits&amp;m=121953066621491&amp;w=2</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>24072</attachid>
            <date>2008-03-27 05:39:29 +0000</date>
            <delta_ts>2008-03-27 05:39:29 +0000</delta_ts>
            <desc>testcase</desc>
            <filename>formlocation.html</filename>
            <type>text/html</type>
            <size>354</size>
            <attacher name="Charles Samuels">charles</attacher>
            
              <data encoding="base64">ClRoaXMgc3VibWl0cyB0aGUgZm9ybSBvbiBicm93c2VycyBvdGhlciB0aGFuIElFLiBZZXMsIHRo
ZSBjb2RlIGlzIHJlYWxseSBiYWQuCgpJIHRoaW5rIGxvY2F0aW9uLnJlcGxhY2UodW5kZWZpbmVk
KSBpcyBhIG5vb3Agb24gdGhlc2UgYnJvd3NlcnMKCkl0J3MgaGFyZCB0byBiZWxpZXZlIHRoYXQg
cGVvcGxlIHdvdWxkIHdyaXRlIHN1Y2ggYmFkIEhUTUwsIGJ1dCBoZXJlIHdlIGFyZS4KPGZvcm0+
CjxpbnB1dCB0eXBlPSJoaWRkZW4iIG5hbWU9ImNvdyIgdmFsdWU9ImFiYyI+CjxpbnB1dCB0eXBl
PSJzdWJtaXQiIG9uY2xpY2s9ImphdmFzY3JpcHQ6IGxvY2F0aW9uLnJlcGxhY2UodGhpcy5ocmVm
KSI+CjwvZm9ybT4K
</data>

          </attachment>
      

    </bug>

</bugzilla>