Bug 41391

Summary: Right click on an unloaded <embed> or <object> should display context menu
Product: WebKit Reporter: Ridley Combs <rcombs>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: REOPENED    
Severity: Normal CC: ap, opendarwin
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Attachments:
Description Flags
URL of test case
none
Screenshot of embed element none

Ridley Combs
Reported 2010-06-29 21:36:38 PDT
If a user right-clicks on an <embed> or an <object> with no plugin loaded (i.e. no src= attribute or onBeforeLoad returning false), the event should be handled by WebCore, not passed to an unloaded, unspecified plugin. The WebKit context-menu should appear, instead of nothing showing up (as WebKit passes the event directly to the plugin view, which isn't loaded).
Attachments
URL of test case (37 bytes, text/plain)
2010-06-30 08:31 PDT, Ridley Combs
no flags
Screenshot of embed element (282.63 KB, image/png)
2022-06-18 12:59 PDT, Jeff Johnson
no flags
Ridley Combs
Comment 1 2010-06-30 08:31:36 PDT
Created attachment 60122 [details] URL of test case The context menu appears when moused over the <body>, but not when over the non-loaded <embed>.
Jeff Johnson
Comment 2 2022-06-18 12:59:35 PDT
Created attachment 460332 [details] Screenshot of embed element
Jeff Johnson
Comment 3 2022-06-18 13:00:31 PDT
This bug still exists in Safari 15.5 on macOS 12.4 Monterey. Example: https://allthingsd.com/20130812/larry-ellison-says-we-already-know-what-apple-without-jobs-will-look-like/ <p><embed src="https://cnettv.cnet.com/av/video/cbsnews/atlantis2/cbsnews_player_embed.swf" scale="noscale" salign="lt" type="application/x-shockwave-flash" background="#333333" width="425" height="279" allowfullscreen="true" allowscriptaccess="always" flashvars="si=254&amp;&amp;contentValue=50152829&amp;shareUrl=http://www.cbsnews.com/video/watch/?id=50152831n"></p>
Alexey Proskuryakov
Comment 4 2022-07-01 11:36:03 PDT
Mass closing plug-in bugs, as plug-in support has been removed from WebKit. Please comment and/or reopen if this still affects WebKit in some way.
Jeff Johnson
Comment 5 2022-07-01 11:41:49 PDT
Alexey, I literally said, "This bug still exists in Safari 15.5 on macOS 12.4 Monterey." I am aware that plug-in support has been removed from WebKit. That's actually the problem here. There's now a blank space on the web page that's not responsive to control-click. You can't even "Inspect Element".
Alexey Proskuryakov
Comment 6 2022-07-01 12:07:07 PDT
Thank you for the follow up. I did scan titles of the bugs before closing, but didn't notice that this one needed more careful examination.
Note You need to log in before you can comment on or make changes to this bug.