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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>17627</bug_id>
          
          <creation_ts>2008-03-01 02:39:34 -0800</creation_ts>
          <short_desc>Endless reloads on http://space.cweb.nl</short_desc>
          <delta_ts>2024-07-01 17:16:58 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Page Loading</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>164907</dup_id>
          
          <bug_file_loc>http://space.cweb.nl/iss_pass_prediction.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>NeedsReduction</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jur Kuipers">jurkuipers</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>frances_c</cc>
    
    <cc>jubal-webkit-20111123</cc>
    
    <cc>zwarich</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>72438</commentid>
    <comment_count>0</comment_count>
    <who name="Jur Kuipers">jurkuipers</who>
    <bug_when>2008-03-01 02:39:34 -0800</bug_when>
    <thetext>Sorry... I&apos;m not a developer-guy...
I noticed the website with this URL keeps &apos;blinking&apos; in Safari 3.0.4 and Webkit
In Firefox it is OK

URL:
http://space.cweb.nl/iss_pass_prediction.html

Hope you can look into this...
It&apos;s very annoying

Best regards,
Jur Kuipers, The Netherlands

iMac iSight G5
OSX 10.5.2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72446</commentid>
    <comment_count>1</comment_count>
    <who name="Matt Lilek">dev+webkit</who>
    <bug_when>2008-03-01 11:04:08 -0800</bug_when>
    <thetext>Confirmed with r30692 - the site keeps reloading.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76422</commentid>
    <comment_count>2</comment_count>
    <who name="Jubal Kessler">jubal-webkit-20111123</who>
    <bug_when>2008-04-06 09:47:51 -0700</bug_when>
    <thetext>(simplified test case)

The URL calls an IFRAME that points to another site&apos;s page:

  &lt;iframe src=&quot;http://otherdomain.com/B.html&quot;&gt;&lt;/iframe&gt;

On that other site&apos;s page, there is some JavaScript:

    &lt;script type=&quot;text/javascript&quot;&gt;
    if (top.location.host != &quot;http://somedomain.com/A.html&quot;)
    top.location.href=&quot;http://somedomain.com/A.html&quot;;
    &lt;/script&gt;

In r31667, going to http://somedomain.com/A.html will load the IFRAME, which in turn checks if the URL location is in fact http://somedomain.com/A.html, and failing that check, loads that URL.

In FF2/Mac the original URL works fine but the test reduction above doesn&apos;t. In Safari both fail.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76424</commentid>
    <comment_count>3</comment_count>
    <who name="Jubal Kessler">jubal-webkit-20111123</who>
    <bug_when>2008-04-06 10:01:37 -0700</bug_when>
    <thetext>To be clear, the IFRAME on the original URL is calling a PHP page, not a straight HTML one.

Without contacting the author of the original website, it&apos;s impossible (I think) to know what is in this PHP code. Without this knowledge, the mystery of why the original URL works in Firefox cannot be explained.

On another topic:

Is this JavaScript routine broken? Shouldn&apos;t the top.location.host check actually work, e.g. not attempt to reload the page because the location of the calling page is, in fact, the correct location?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76425</commentid>
    <comment_count>4</comment_count>
    <who name="Jubal Kessler">jubal-webkit-20111123</who>
    <bug_when>2008-04-06 10:12:40 -0700</bug_when>
    <thetext>Answered my own question. top.location.host returns the bare hostname -- not the &apos;http://&apos; prefix or the &apos;/page.html&apos; path. So the check always fails because top.location.host != &apos;space.cweb.nl&apos;, and the constant reloading happens.

Except in Firefox, apparently.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76457</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-04-06 23:09:12 -0700</bug_when>
    <thetext>This code is definitely broken - location.host doesn&apos;t return the complete URL in either Safari or Firefox. The reason the page doesn&apos;t misbehave in Firefox is that an exception is raised for an attempt of cross-domain access to top.location.host, so the test is simply bypassed. In WebKit, an undefined value is returned for this attempt, and no exception is raised.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76517</commentid>
    <comment_count>6</comment_count>
    <who name="Jubal Kessler">jubal-webkit-20111123</who>
    <bug_when>2008-04-07 10:04:22 -0700</bug_when>
    <thetext>Mr Kuipers: Please contact the owner of the space.cweb.nl site and inform him that the code on this page (which the main page&apos;s IFRAME points to) needs its JavaScript fixed according to comment #4:

http://sts.ontwikkel.net/phplocos.php

Re: bug status. Should WebKit emulate Firefox in this instance or should it retain strict interpretation? (I&apos;d favor the latter as this type of erroneous JS coding isn&apos;t all that common, I&apos;d hope.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84765</commentid>
    <comment_count>7</comment_count>
    <who name="Cameron Zwarich (cpst)">zwarich</who>
    <bug_when>2008-06-30 11:39:45 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of 19822 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84831</commentid>
    <comment_count>8</comment_count>
    <who name="Cameron Zwarich (cpst)">zwarich</who>
    <bug_when>2008-07-01 01:08:04 -0700</bug_when>
    <thetext>This bug is not actually a duplicate of bug 19822, because my fix for that bug does not fix this one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2044099</commentid>
    <comment_count>9</comment_count>
    <who name="Frances Cornwall">frances_c</who>
    <bug_when>2024-07-01 17:16:28 -0700</bug_when>
    <thetext>This pr fixed the bug: https://github.com/WebKit/WebKit/commit/7d3367d1c0bf3f67a4f88f87db0b5d3aae951fc9.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2044100</commentid>
    <comment_count>10</comment_count>
    <who name="Frances Cornwall">frances_c</who>
    <bug_when>2024-07-01 17:16:58 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 164907 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>