<?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>15293</bug_id>
          
          <creation_ts>2007-09-26 23:00:14 -0700</creation_ts>
          <short_desc>eBay item &quot;SuperSize&quot; popup image viewer does not display images</short_desc>
          <delta_ts>2020-10-23 13:35:04 -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>Evangelism</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc>http://cgi.ebay.com/Titan-Missile-Base-Central-Washington_W0QQcmdZViewItemQQcategoryZ1607QQihZ009QQitemZ190132455924QQrdZ1</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Cameo Wood">cameowood</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aroben</cc>
    
    <cc>jensimmons</cc>
    
    <cc>mrowe</cc>
    
    <cc>vicki</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>57144</commentid>
    <comment_count>0</comment_count>
    <who name="Cameo Wood">cameowood</who>
    <bug_when>2007-09-26 23:00:14 -0700</bug_when>
    <thetext>On an eBay item page, there is an option to view item photos in a &quot;supersized&quot; format that opens a new popup window and displays the enlarged images there.  This seems to be a cross-platform bug that doesn&apos;t display this image.  This site works in FF and IE.

Go to the above ebay item.
Click on the &quot;Supersize&quot; link under the thumbnail image on the left side of the page.
A new window pops up but no image is displayed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57147</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-09-27 03:41:14 -0700</bug_when>
    <thetext>I see the following JS exception when following the instructions:

Undefined value
http://include.ebaystatic.com/js/v/us/features/viewitem/viPopupBody.js:503

That line of code looks like the following:
if(client.safari){var ifhack=(typeof(ebay)!=&quot;undefined&quot;)?ebay.oDocument.createElement(&quot;iframe&quot;):document.createElement(&quot;iframe&quot;);ifhack.style.width=&apos;1px&apos;;ifhack.style.height=&apos;1px&apos;;ifhack.style.visibility=&apos;hidden&apos;;document.body.appendChild(ifhack);with(ifhack.document){open();write(&apos;&lt;body&gt;&amp;nbsp;&lt;/body&gt;&apos;);close();}


To pretty it up a bit:
if (client.safari) {
    var ifhack = (typeof(ebay) != &quot;undefined&quot;) ? ebay.oDocument.createElement(&quot;iframe&quot;) : document.createElement(&quot;iframe&quot;);
    ifhack.style.width = &apos;1px&apos;;
    ifhack.style.height = &apos;1px&apos;;
    ifhack.style.visibility = &apos;hidden&apos;;
    document.body.appendChild(ifhack);
    with(ifhack.document) {
        open();
        write(&apos;&lt;body&gt;&amp;nbsp;&lt;/body&gt;&apos;);
        close();
    }
    this.iframeHack = ifhack;
}


It is the clause
    with (ifhack.document) {

that is triggering the issue.  I found this by judicious experimentation with javascript entry in the address bar.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57178</commentid>
    <comment_count>2</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-09-27 10:31:31 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; It is the clause
&gt;     with (ifhack.document) {

iframe.document was changed to iframe.contentDocument in r21651, ironically to fix eBay layout!  (See also Bug 14054.)

http://trac.webkit.org/projects/webkit/changeset/21651

eBay should be feature-testing for iframe.contentDocument instead of using user agent detection.

I&apos;m guessing this should be an evangelism bug.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63367</commentid>
    <comment_count>3</comment_count>
    <who name="Cameo Wood">cameowood</who>
    <bug_when>2007-12-05 11:13:47 -0800</bug_when>
    <thetext>This bug still is a problem- anything I can do to help?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63455</commentid>
    <comment_count>4</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-12-06 07:10:30 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; eBay should be feature-testing for iframe.contentDocument instead of using user
&gt; agent detection.
&gt; 
&gt; I&apos;m guessing this should be an evangelism bug.

Clearly an evangelism bug.

For more information about using &quot;object detection&quot; (not &quot;feature detection&quot;) to detect iframe.contentDocument, see:

http://developer.apple.com/internet/webcontent/objectdetection.html

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66600</commentid>
    <comment_count>5</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2008-01-08 17:57:18 -0800</bug_when>
    <thetext>I think eBay should be able to remove this Safari-specific code path entirely, at least for Safari 3.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>