WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
26649
<div> has higher z-index than <iframe> but context menu etc. is for <iframe>
https://bugs.webkit.org/show_bug.cgi?id=26649
Summary
<div> has higher z-index than <iframe> but context menu etc. is for <iframe>
Bill Keese
Reported
2009-06-23 07:15:46 PDT
I'll attach a test case shortly. Basically, there's an <iframe> at z-index: 0, and then a <div> at z-index: 999, but when you right-click over the <div> you get the menu for the <iframe> (with choices like "open in new window") Not shown in the test case, but probably related, is a bug where you can paste into the underlying <iframe> (by using the paste option from the context-menu) even though the iframe is theoretically hidden by the div. See also: -
http://www.codingforums.com/archive/index.php/t-55100.html
-
http://stackoverflow.com/questions/850484/workaround-for-drawing-bug-when-overlaying-a-div-over-an-iframe-in-safari
Attachments
test case showing how iframe gets events even though it's hidden behind a div
(956 bytes, text/html)
2009-06-23 07:17 PDT
,
Bill Keese
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Bill Keese
Comment 1
2009-06-23 07:17:01 PDT
Created
attachment 31719
[details]
test case showing how iframe gets events even though it's hidden behind a div
martin.pucala
Comment 2
2009-08-25 02:03:31 PDT
It looks like iframes have somehow priority among contextmenu event listeners - even if the iframe is hidden, page's main contextmenu handler is overriden. In the show case attached below there is contextmenu event handler on main document element that displays alert and suppresses default browser menu display by returning false. However, in the area where _hidden_ iframe resides, main page's handler is ignored.
Ahmad Saleem
Comment 3
2022-06-19 15:28:04 PDT
I am not able to reproduce this in Safari 15.5 on macOS 12.4 based on attached test case. When clicking on "Grey" area, it does not show me any "frame" specific context menu, which might have been the case in the past. Can we mark it as "RESOLVED CONFIGURATION CHANGED", if it was fixed along the ways? Thanks!
Radar WebKit Bug Importer
Comment 4
2022-06-19 15:28:29 PDT
<
rdar://problem/95500633
>
Ryosuke Niwa
Comment 5
2022-06-19 16:36:34 PDT
Yeah, not reproducing now.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug