<?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>34894</bug_id>
          
          <creation_ts>2010-02-12 07:51:29 -0800</creation_ts>
          <short_desc>beforepaste, beforecut and beforecopy get fired when opening the &quot;Edit&quot; menu</short_desc>
          <delta_ts>2022-09-19 09:47:17 -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>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>http://www.fredck.com/bugs/beforepaste/beforepaste.html</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>webkit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>cdumez</cc>
    
    <cc>rniwa</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>190053</commentid>
    <comment_count>0</comment_count>
    <who name="">webkit</who>
    <bug_when>2010-02-12 07:51:29 -0800</bug_when>
    <thetext>The beforepaste, beforecut and beforecopy events get fired when clicking the &quot;Edit&quot; menu in Safari. Some of these events get fired even more than once.

The provided URL demonstrates the problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>190054</commentid>
    <comment_count>1</comment_count>
      <attachid>48645</attachid>
    <who name="">webkit</who>
    <bug_when>2010-02-12 07:52:36 -0800</bug_when>
    <thetext>Created attachment 48645
Test page</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>613221</commentid>
    <comment_count>2</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2012-04-30 21:21:26 -0700</bug_when>
    <thetext>*** Bug 77630 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1899157</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-09-16 23:20:54 -0700</bug_when>
    <thetext>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 &quot;Edit&quot; 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1899516</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-09-19 09:47:17 -0700</bug_when>
    <thetext>&lt;rdar://problem/100126511&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>48645</attachid>
            <date>2010-02-12 07:52:36 -0800</date>
            <delta_ts>2010-02-12 07:52:36 -0800</delta_ts>
            <desc>Test page</desc>
            <filename>beforepaste.html</filename>
            <type>text/html</type>
            <size>768</size>
            <attacher>webkit</attacher>
            
              <data encoding="base64">77u/PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBYSFRNTCAxLjAgVHJhbnNpdGlv
bmFsLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL1RSL3hodG1sMS9EVEQveGh0bWwxLXRyYW5zaXRp
b25hbC5kdGQiPg0KPGh0bWwgeG1sbnM9Imh0dHA6Ly93d3cudzMub3J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