<?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>34042</bug_id>
          
          <creation_ts>2010-01-23 11:41:28 -0800</creation_ts>
          <short_desc>visibility:hidden iframe captures contextual click.</short_desc>
          <delta_ts>2023-06-02 00:17:03 -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>Frames</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Derk-Jan Hartman">hartman.wiki</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abussey</cc>
    
    <cc>rbuis</cc>
    
    <cc>rlaangh77</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>184012</commentid>
    <comment_count>0</comment_count>
    <who name="Derk-Jan Hartman">hartman.wiki</who>
    <bug_when>2010-01-23 11:41:28 -0800</bug_when>
    <thetext>I&apos;m attaching a html case with an iframe within an absolute positioned div. The div has visibility:hidden

Try to right click the link on the webpage. You will be presented with the contextual menu for the frame. The contextual menu options for the link are missing. This is annoying when trying to open a link in the new tab or new window, but even more annoying in that all elements behind this invisible iframe cannot be directly inspected with right-clik &quot;Inspect Element&quot;. A mid mouse button click does force the opening of the link in a new tab. The problem can be worked around by using &quot;display:none;&quot; instead.

The bug is present in Safari 4 and the latest nightly (6531.21.10, r53765).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>184013</commentid>
    <comment_count>1</comment_count>
      <attachid>47274</attachid>
    <who name="Derk-Jan Hartman">hartman.wiki</who>
    <bug_when>2010-01-23 11:43:16 -0800</bug_when>
    <thetext>Created attachment 47274
HTML example of the problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1105768</commentid>
    <comment_count>2</comment_count>
    <who name="Derk-Jan Hartman">hartman.wiki</who>
    <bug_when>2015-06-30 13:24:44 -0700</bug_when>
    <thetext>This problem still exists in Safari 9 seed 1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1502773</commentid>
    <comment_count>3</comment_count>
    <who name="Alex Bussey">abussey</who>
    <bug_when>2019-02-06 08:42:30 -0800</bug_when>
    <thetext>This is still present in the latest nightly build (r241015 - 2/6/19) and in production.

The use case we have is that we are a video player that sometimes plays ads in iFrames on top (in terms of z-index) the player. In between ad breaks, we put visibility: hidden on the iFrame. In all browsers, except Safari, right-clicking on the player will bring up the proper contextual menu from the player itself. However, in Safari, the event is still passed to the iFrame and the user sees the contextual menu from the iFrame.

We built a page, linked below, that plainly shows the behavior:

http://playertest.longtailvideo.com/jong/safari-hidden-iframe.html

In searching Bugzilla, it looks like similar issues were reported back to 2009 (#26649).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1533134</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-05-03 19:36:36 -0700</bug_when>
    <thetext>&lt;rdar://problem/50465354&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1702693</commentid>
    <comment_count>5</comment_count>
    <who name="Derk-Jan Hartman">hartman.wiki</who>
    <bug_when>2020-10-29 06:10:29 -0700</bug_when>
    <thetext>Still exists in Safari 14</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1907256</commentid>
    <comment_count>6</comment_count>
    <who name="Mooho Kim">rlaangh77</who>
    <bug_when>2022-10-21 01:34:42 -0700</bug_when>
    <thetext>Still exists in Safari 15.4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1959503</commentid>
    <comment_count>7</comment_count>
    <who name="Rob Buis">rbuis</who>
    <bug_when>2023-06-02 00:17:03 -0700</bug_when>
    <thetext>I can&apos;t repro on 16.4.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>47274</attachid>
            <date>2010-01-23 11:43:16 -0800</date>
            <delta_ts>2010-01-23 11:43:16 -0800</delta_ts>
            <desc>HTML example of the problem.</desc>
            <filename>hidden_iframe.html</filename>
            <type>text/html</type>
            <size>1159</size>
            <attacher name="Derk-Jan Hartman">hartman.wiki</attacher>
            
              <data encoding="base64">PGh0bWw+PGJvZHk+PGRpdiBzdHlsZT0idmlzaWJpbGl0eTogaGlkZGVuOyB3aWR0aDogNjAycHg7
IGhlaWdodDogNDAycHg7IG1hcmdpbi10b3A6IDBweDsgbWFyZ2luLXJpZ2h0OiAwcHg7IG1hcmdp
bi1ib3R0b206IDBweDsgbWFyZ2luLWxlZnQ6IDBweDsgcGFkZGluZy10b3A6IDBweDsgcGFkZGlu
Zy1yaWdodDogMHB4OyBwYWRkaW5nLWJvdHRvbTogMHB4OyBwYWRkaW5nLWxlZnQ6IDBweDsgYmFj
a2dyb3VuZC1jb2xvcjogd2hpdGU7IHBvc2l0aW9uOiBhYnNvbHV0ZTsgbGVmdDogMC4yZW07IHRv
cDogMC4yZW07IGJvcmRlci10b3Atd2lkdGg6IDFweDsgYm9yZGVyLXJpZ2h0LXdpZHRoOiAxcHg7
IGJvcmRlci1ib3R0b20td2lkdGg6IDFweDsgYm9yZGVyLWxlZnQtd2lkdGg6IDFweDsgYm9yZGVy
LXRvcC1zdHlsZTogc29saWQ7IGJvcmRlci1yaWdodC1z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