<?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>290257</bug_id>
          
          <creation_ts>2025-03-22 08:37:25 -0700</creation_ts>
          <short_desc>REGRESSION(288559@main) [GTK] webkit_editor_state_is_copy_available true in absence of selection</short_desc>
          <delta_ts>2025-03-24 09:24:44 -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>WebKitGTK</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=285908</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=156529</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jim Mason">jmason</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>ntim</cc>
    
    <cc>rniwa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2105292</commentid>
    <comment_count>0</comment_count>
    <who name="Jim Mason">jmason</who>
    <bug_when>2025-03-22 08:37:25 -0700</bug_when>
    <thetext>`webkit_editor_state_is_copy_available` is returning true on a web page in absence of a selection.

This API is being used by the browser to control appearance of the &apos;Copy&apos; action in the context menu.  As a result, Copy is now appearing when it is not expected.  Previously, this API returned true and hence Copy appeared only if there was something to copy.

Reverting 288559@main clears the issue.

See also Bug 285908</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2105602</commentid>
    <comment_count>1</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2025-03-24 09:24:44 -0700</bug_when>
    <thetext>Hm... I guess this function needs to check the selection now that we enable copy everywhere.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>