<?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>324703</bug_id>
          
          <creation_ts>2026-09-21 05:37:17 -0700</creation_ts>
          <short_desc>[GTK][WPE] TestInputMethodContext cannot observe the cursor area, notification counts or the preedit caret offset</short_desc>
          <delta_ts>2026-09-28 05:04:09 -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>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=324967</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="Simon Pena">spena</reporter>
          <assigned_to name="Simon Pena">spena</assigned_to>
          <cc>bugs-noreply</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2252469</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Pena">spena</who>
    <bug_when>2026-09-21 05:37:17 -0700</bug_when>
    <thetext>`Tools/TestWebKitAPI/Tests/WebKit/WKWebView/glib/TestInputMethodContext.cpp` has a mock `WebKitInputMethodContext` that all the input method API tests use. It presents the following gaps:

1. The mock does not implement the `notify_cursor_area` virtual function, so tests can&apos;t check what
   cursor area the input method is given, or whether it is given one at all.
2. The mock always reports the preedit caret at the end of the preedit. No test can exercise a
   caret inside the preedit, which is where several code paths differ.
3. The mock does not count notifications. A test can check that a notification arrived with the
   right values, but not that one failed to arrive. Missing notifications are a common failure
   mode for input methods.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2252471</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Pena">spena</who>
    <bug_when>2026-09-21 06:09:42 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/74494</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2255443</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-09-28 05:04:06 -0700</bug_when>
    <thetext>Committed 322053@main (978866cd7f3e): &lt;https://commits.webkit.org/322053@main&gt;

Reviewed commits have been landed. Closing PR #74494 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>