Bug 34894

Summary: beforepaste, beforecut and beforecopy get fired when opening the "Edit" menu
Product: WebKit Reporter: webkit
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ahmad.saleem792, ap, bfulgham, cdumez, rniwa, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
URL: http://www.fredck.com/bugs/beforepaste/beforepaste.html
Description Flags
Test page none

Description webkit 2010-02-12 07:51:29 PST
The beforepaste, beforecut and beforecopy events get fired when clicking the "Edit" menu in Safari. Some of these events get fired even more than once.

The provided URL demonstrates the problem.
Comment 1 webkit 2010-02-12 07:52:36 PST
Created attachment 48645 [details]
Test page
Comment 2 Ryosuke Niwa 2012-04-30 21:21:26 PDT
*** Bug 77630 has been marked as a duplicate of this bug. ***
Comment 3 Ahmad Saleem 2022-09-16 23:20:54 PDT
I am able to reproduce this bug in Safari Technology Preview 153 using attached test case, when I have Safari open and try to click "Edit" menu from the top bar, it triggers:

beforeoncut, beforeoncopy and beforeonpaste dialog boxes while no other browser like Chrome Canary 107 and Firefox Nightly 106 trigger this based on the user interaction with the OS layer controls.
Comment 4 Radar WebKit Bug Importer 2022-09-19 09:47:17 PDT