<?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>312527</bug_id>
          
          <creation_ts>2026-04-16 17:05:01 -0700</creation_ts>
          <short_desc>[Site Isolation] Route popup menu value-changed IPC to the originating frame</short_desc>
          <delta_ts>2026-05-18 17:59:15 -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>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></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 name="zak ridouh">zakr</reporter>
          <assigned_to name="zak ridouh">zakr</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2201299</commentid>
    <comment_count>0</comment_count>
    <who name="zak ridouh">zakr</who>
    <bug_when>2026-04-16 17:05:01 -0700</bug_when>
    <thetext>When a &lt;select&gt; popup menu is open, focus can move to a remote frame during
the popup&apos;s nested run loop. WebPageProxy::Internals::valueChangedForPopupMenu()
previously called focusedOrMainFrame() to find the destination process for the
DidChangeSelectedIndexForActivePopupMenu IPC. 

With site isolation, that may resolve to a different process than the one that hosts the &lt;select&gt;, so the
selection change is delivered to the wrong process. The originating WebProcess
never receives the close signal, leaving its m_popupIsVisible state stuck and
making the &lt;select&gt; appear broken, the next click is interpreted as a dismiss
rather than an open, and the chosen option never reaches the DOM.

Capture the originating frame&apos;s identifier in m_activePopupMenuFrameID at
showPopupMenu() time and use it to route both DidChangeSelectedIndexForActivePopupMenu
and (on non-Cocoa platforms) SetTextForActivePopupMenu. Clear the identifier in
hidePopupMenu() and resetState().</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2201300</commentid>
    <comment_count>1</comment_count>
    <who name="zak ridouh">zakr</who>
    <bug_when>2026-04-16 17:05:21 -0700</bug_when>
    <thetext>&lt;rdar://174886701&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2201301</commentid>
    <comment_count>2</comment_count>
    <who name="zak ridouh">zakr</who>
    <bug_when>2026-04-16 17:08:55 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/62939</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2211884</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-05-18 17:59:13 -0700</bug_when>
    <thetext>Committed 313449@main (0a6b5cd60b4f): &lt;https://commits.webkit.org/313449@main&gt;

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

    </bug>

</bugzilla>