<?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>12256</bug_id>
          
          <creation_ts>2007-01-13 04:04:42 -0800</creation_ts>
          <short_desc>Context menu icons are not showing (iframe reference path set to parent instead of current document)</short_desc>
          <delta_ts>2009-01-14 10:12:06 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.fckeditor.net/nightly/browsers_test.html</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>webkit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>amla70</cc>
    
    <cc>ddkilzer</cc>
    
    <cc>justin.garcia</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>35247</commentid>
    <comment_count>0</comment_count>
    <who name="">webkit</who>
    <bug_when>2007-01-13 04:04:42 -0800</bug_when>
    <thetext>In the context menu, the icons are being shown correctly when opening them. But, live for a few seconds the menu opened. You will see that the icons are being replaced with the &quot;?&quot; image placeholder. In localhost it happens almost instantly.

The icons are loaded from a image strip (a single image with all icons on it). The icon tag is something like this:

&lt;img class=&quot;TB_Button_Image&quot; src=&quot;spacer.gif&quot; style=&quot;background-position: 0px -16px;background-image: url(strip.gif);&quot;&gt;

So, it seams that for some reason &quot;spacer.gif&quot; is not being found.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7959</commentid>
    <comment_count>1</comment_count>
      <attachid>14938</attachid>
    <who name="Alfonso Martínez de Lizarrondo">amla70</who>
    <bug_when>2007-06-11 13:39:17 -0700</bug_when>
    <thetext>Created attachment 14938
Simplified testcase

This testcase shows the root of the problem.
In a framed document the javascript appends a new iframe to its container, and the elements that are appended to that iframe get the reference path of the parent container instead of using the path from the document were the javascript is run.
IE, Firefox and Opera show the green background and the smiley, only Safari fails.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167</commentid>
    <comment_count>2</comment_count>
    <who name="">webkit</who>
    <bug_when>2007-09-22 03:28:24 -0700</bug_when>
    <thetext>We have introduced a workaround for it in FCKeditor, so it is not blocking it anymore. 

There is still a bug on WebKit, so core devs should re-title this ticket properly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>160</commentid>
    <comment_count>3</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-09-22 07:18:36 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; We have introduced a workaround for it in FCKeditor, so it is not blocking it
&gt; anymore. 

Could you describe the work-around or post example code?  This may be useful for others until a fix is implemented.

&gt; There is still a bug on WebKit, so core devs should re-title this ticket
&gt; properly.

Done.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57063</commentid>
    <comment_count>4</comment_count>
    <who name="">webkit</who>
    <bug_when>2007-09-26 03:19:28 -0700</bug_when>
    <thetext>David, the fix has been done by Alfonso (see Comment #1). It is related to the base path for script created IFRAME elements. The workaround at our side can be found here:

http://dev.fckeditor.net/changeset/368</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105607</commentid>
    <comment_count>5</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2009-01-13 16:50:41 -0800</bug_when>
    <thetext>This appears to be fixed as of WebKit nightly r39872.  Federico, can you confirm?
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105689</commentid>
    <comment_count>6</comment_count>
    <who name="">webkit</who>
    <bug_when>2009-01-14 09:55:45 -0800</bug_when>
    <thetext>I confirm it&apos;s working properly with the nightly (r39853).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105703</commentid>
    <comment_count>7</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2009-01-14 10:12:06 -0800</bug_when>
    <thetext>(In reply to comment #6)
&gt; I confirm it&apos;s working properly with the nightly (r39853).

Resolving as fixed.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>14938</attachid>
            <date>2007-06-11 13:39:17 -0700</date>
            <delta_ts>2007-06-11 13:39:17 -0700</delta_ts>
            <desc>Simplified testcase</desc>
            <filename>iframepath.zip</filename>
            <type>application/zip</type>
            <size>1731</size>
            <attacher name="Alfonso Martínez de Lizarrondo">amla70</attacher>
            
              <data encoding="base64">UEsDBBQAAAAIAJazyzaElL2jpAAAANsAAAAKAAAAaW5kZXguaHRtbC2OzQ6CMBCEz5j4DmvvsoI/
p8pBwGiCyqHGeCxSaBMQQ+vBt5dSkk12kpn9ZukiucXsmadwYpcM8vshO8dAloiPdYyYsMQZG38V
wLHnrdDCIKZXEs1nVJq2GbZHpeClFR41yjQiKr41GKENVF0PQRhudxSdY9M4xa0uuvI3XjKpNAxj
pICWqzd8eC3GjEdVZZtB9689cRot3bf9ZALhRBro7qs/UEsDBAoAAAAAAMmzyzYAAAAAAAAAAAAA
AAAHAAAAaWZyYW1lL1BLAwQUAAAACADmblE2OafSHe4AAAAEAQAAEQAAAGlmcmFtZS9zbWlsZXku
Z2lmc/d0s7BMFGAQYDjCwHDvXvLSpZpbt1qeOxf0/n3x2rWGe/c6XbsW9f178fPn2cfOeb1/nz1n
juKxY0DBoHPnvJ4/T/7/v+X//+rv36sZGBj+///PgBco/mRhZGAQZdABcUB2MrA2Jqh2hW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