<?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>279588</bug_id>
          
          <creation_ts>2024-09-12 02:58:50 -0700</creation_ts>
          <short_desc>[CSS anchor positioning] WebProcess crash when popover uses anchoring</short_desc>
          <delta_ts>2024-10-17 06:33:13 -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>CSS</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>
          <dependson>281290</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Pawel Lampe">plampe</reporter>
          <assigned_to name="Pawel Lampe">plampe</assigned_to>
          <cc>ap</cc>
    
    <cc>david_choi5</cc>
    
    <cc>koivisto</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2059641</commentid>
    <comment_count>0</comment_count>
      <attachid>472535</attachid>
    <who name="Pawel Lampe">plampe</who>
    <bug_when>2024-09-12 02:58:50 -0700</bug_when>
    <thetext>Created attachment 472535
small repro demo

The problem is that element.renderer() is nullptr in the Source/WebCore/style/StyleTreeResolver.cpp:1340</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2060450</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2024-09-16 09:22:47 -0700</bug_when>
    <thetext>Thank you for the report. What are you seeing this with? I cannot reproduce with the build of Safari I have on my machine, but unsure if it&apos;s newer or older.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2060475</commentid>
    <comment_count>2</comment_count>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2024-09-16 10:18:25 -0700</bug_when>
    <thetext>Thanks for the report. 

CSS anchor positioning is work-in-progress and not enabled by default yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2060693</commentid>
    <comment_count>3</comment_count>
    <who name="Pawel Lampe">plampe</who>
    <bug_when>2024-09-16 23:16:28 -0700</bug_when>
    <thetext>Thanks for feedback.
As for the issue, I can see a crash when popover is being hidden (after 2 button presses).
I&apos;ve workarounded it with https://github.com/WebKit/WebKit/pull/33696</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2061403</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-09-19 03:00:08 -0700</bug_when>
    <thetext>&lt;rdar://problem/136282104&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2068755</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-10-17 06:33:11 -0700</bug_when>
    <thetext>Committed 285334@main (ba8e7f03c9a9): &lt;https://commits.webkit.org/285334@main&gt;

Reviewed commits have been landed. Closing PR #33696 and removing active labels.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>472535</attachid>
            <date>2024-09-12 02:58:50 -0700</date>
            <delta_ts>2024-09-12 02:58:50 -0700</delta_ts>
            <desc>small repro demo</desc>
            <filename>index.html</filename>
            <type>text/html</type>
            <size>770</size>
            <attacher name="Pawel Lampe">plampe</attacher>
            
              <data encoding="base64">PGh0bWw+CiAgPGhlYWQ+CiAgICA8c3R5bGU+CiAgICAgIC5kcm9wZG93biB7CiAgICAgICAgICBh
bmNob3ItbmFtZTogLS1kcm9wZG93bkFuY2hvcjsKICAgICAgfQogICAgICAuZHJvcGRvd24tbWVu
dSB7CiAgICAgICAgICBwb3NpdGlvbi1hbmNob3I6IC0tZHJvcGRvd25BbmNob3I7CiAgICAgICAg
ICBtYXJnaW46IDA7CiAgICAgICAgICBwYWRkaW5nOiAwOwogICAgICAgICAgb3ZlcmZsb3c6IGF1
dG87CiAgICAgICAgICBoZWlnaHQ6IGF1dG87CiAgICAgICAgICB0b3A6IGFuY2hvcihib3R0b20p
OwogICAgICAgICAgbGVmdDogYW5jaG9yKHJpZ2h0KTsKICAgICAgfQogICAgPC9zdHlsZT4KICA8
L2hlYWQ+CiAgPGJvZHk+CiAgICA8YnV0dG9uIGlkPSJkcm9wZG93biIgY2xhc3M9ImRyb3Bkb3du
Ij5DbGljayBtZSB0d2ljZTwvYnV0dG9uPgogICAgPGRpdiBpZD0icG9wb3ZlciIgY2xhc3M9ImRy
b3Bkb3duLW1lbnUiPgogICAgICA8bGk+TG9yZW08L2xpPgogICAgICA8bGk+SXBzdW08L2xpPgog
ICAgICA8bGk+RG9sb3I8L2xpPgogICAgPC9kaXY+CiAgICA8aHI+PGhyPjxocj4KICAgIDxzY3Jp
cHQ+CiAgICAgIGNvbnN0IHBvcG92ZXIgPSBkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgncG9wb3Zl
cicpOwogICAgICBwb3BvdmVyLnBvcG92ZXIgPSAnYXV0byc7CiAgICAgIGRvY3VtZW50LmdldEVs
ZW1lbnRCeUlkKCdkcm9wZG93bicpLnBvcG92ZXJUYXJnZXRFbGVtZW50ID0gcG9wb3ZlcjsKICAg
IDwvc2NyaXB0PgogIDwvYm9keT4KPC9odG1sPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>