<?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>156954</bug_id>
          
          <creation_ts>2016-04-23 09:30:19 -0700</creation_ts>
          <short_desc>[Win] The function findTopLevelParent should return the first window which is not a child.</short_desc>
          <delta_ts>2023-10-27 18:13:56 -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>WebKit Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</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>peavo</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>beidson</cc>
    
    <cc>bfulgham</cc>
    
    <cc>darin</cc>
    
    <cc>ddkilzer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1186621</commentid>
    <comment_count>0</comment_count>
    <who name="">peavo</who>
    <bug_when>2016-04-23 09:30:19 -0700</bug_when>
    <thetext>The function findTopLevelParent is used when the active state of the browser is determined. It usually works very well, but when there is a window with the style WS_POPUP in the hierarchy which has a parent, the function will not return this window, but keep walking the hierarchy. A window with the WS_POPUP style cannot have the WS_CHILD style, and is a type of top level window, even though it can have a parent/owner.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1186622</commentid>
    <comment_count>1</comment_count>
      <attachid>277151</attachid>
    <who name="">peavo</who>
    <bug_when>2016-04-23 09:35:03 -0700</bug_when>
    <thetext>Created attachment 277151
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1186745</commentid>
    <comment_count>2</comment_count>
      <attachid>277151</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2016-04-24 09:47:56 -0700</bug_when>
    <thetext>Comment on attachment 277151
Patch

How did you test this change?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1340432</commentid>
    <comment_count>3</comment_count>
      <attachid>277151</attachid>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2017-08-19 16:01:28 -0700</bug_when>
    <thetext>Comment on attachment 277151
Patch

r-, as this has been pending review for over a year now. It is near-impossible that this patch still applies to trunk and unlikely to still be relevant in its current form.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1988160</commentid>
    <comment_count>4</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-10-27 18:13:56 -0700</bug_when>
    <thetext>This seems to be not applied: https://github.com/WebKit/WebKit/blob/02f9dd1869da489a1d8ccc25e7e9b8a86aadef58/Source/WebKit/UIProcess/win/WebView.cpp#L302</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>277151</attachid>
            <date>2016-04-23 09:35:03 -0700</date>
            <delta_ts>2017-08-19 16:01:28 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-156954-20160423183531.patch</filename>
            <type>text/plain</type>
            <size>1722</size>
            <attacher>peavo</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQvd2luL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2Uv
V2ViS2l0L3dpbi9DaGFuZ2VMb2cJKHJldmlzaW9uIDE5OTk0OCkKKysrIFNvdXJjZS9XZWJL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ExldmVsUGFyZW50KToKKwogMjAxNi0wNC0yMiAgQnJlbnQgRnVsZ2hhbSAgPGJmdWxn
aGFtQGFwcGxlLmNvbT4KIAogICAgICAgICBVbnJldmlld2VkIGJ1aWxkIGZpeCBhZnRlciA0MTk5
ODQxLgpJbmRleDogU291cmNlL1dlYktpdC93aW4vV2ViVmlldy5jcHAKPT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0g
U291cmNlL1dlYktpdC93aW4vV2ViVmlldy5jcHAJKHJldmlzaW9uIDE5OTk0NykKKysrIFNvdXJj
ZS9XZWJLaXQvd2luL1dlYlZpZXcuY3BwCSh3b3JraW5nIGNvcHkpCkBAIC0yMzQ0LDcgKzIzNDQs
NyBAQCBzdGF0aWMgSFdORCBmaW5kVG9wTGV2ZWxQYXJlbnQoSFdORCB3aW5kCiAKICAgICBIV05E
IGN1cnJlbnQgPSB3aW5kb3c7CiAgICAgZm9yIChIV05EIHBhcmVudCA9IEdldFBhcmVudChjdXJy
ZW50KTsgY3VycmVudDsgY3VycmVudCA9IHBhcmVudCwgcGFyZW50ID0gR2V0UGFyZW50KHBhcmVu
dCkpCi0gICAgICAgIGlmICghcGFyZW50IHx8ICEoR2V0V2luZG93TG9uZ1B0cihjdXJyZW50LCBH
V0xfU1RZTEUpICYgKFdTX1BPUFVQIHwgV1NfQ0hJTEQpKSkKKyAgICAgICAgaWYgKCFwYXJlbnQg
fHwgIShHZXRXaW5kb3dMb25nUHRyKGN1cnJlbnQsIEdXTF9TVFlMRSkgJiBXU19DSElMRCkpCiAg
ICAgICAgICAgICByZXR1cm4gY3VycmVudDsKICAgICBBU1NFUlRfTk9UX1JFQUNIRUQoKTsKICAg
ICByZXR1cm4gMDsK
</data>
<flag name="review"
          id="301393"
          type_id="1"
          status="-"
          setter="beidson"
    />
          </attachment>
      

    </bug>

</bugzilla>