<?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>311814</bug_id>
          
          <creation_ts>2026-04-09 06:41:08 -0700</creation_ts>
          <short_desc>[WPE][Qt6] WPEQtView does not notify when an item gains or loses focus</short_desc>
          <delta_ts>2026-04-09 07:59:37 -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>WPE WebKit</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <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>aiswarya.kandoth</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2198347</commentid>
    <comment_count>0</comment_count>
    <who name="">aiswarya.kandoth</who>
    <bug_when>2026-04-09 06:41:08 -0700</bug_when>
    <thetext>WPEQtView does not override Qt&apos;s focusInEvent or focusOutEvent. As a result, when an element gains or loses focus the underlying WPEView is never notified with wpe_view_focus_in() or wpe_view_focus_out(). This breaks focus dependent behaviours.

Steps to reproduce:

1. Create a project that uses WPE WebKit Qt6 API, the minibrowser for example.
2. Open a URL with input elements (for example: &lt;input type=&quot;text&quot;&gt;).
3. Click on the input element.
4. Observe that the JavaScript focus events do not fire.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2198365</commentid>
    <comment_count>1</comment_count>
    <who name="">aiswarya.kandoth</who>
    <bug_when>2026-04-09 07:59:37 -0700</bug_when>
    <thetext>Proposed fix: https://github.com/WebKit/WebKit/pull/62355</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>