<?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>261421</bug_id>
          
          <creation_ts>2023-09-11 11:41:25 -0700</creation_ts>
          <short_desc>REGRESSION(267280@main): costco.com crash in WebCore::ShorthandSerializer::serializeGridTemplate const</short_desc>
          <delta_ts>2023-09-25 11:45:40 -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>
          
          <see_also>https://github.com/web-platform-tests/wpt/pull/41946</see_also>
          <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="Sammy Gill">sgill26</reporter>
          <assigned_to name="Sammy Gill">sgill26</assigned_to>
          <cc>w0nka</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1976868</commentid>
    <comment_count>0</comment_count>
      <attachid>467643</attachid>
    <who name="Sammy Gill">sgill26</who>
    <bug_when>2023-09-11 11:41:25 -0700</bug_when>
    <thetext>Created attachment 467643
Testcase

Costco&apos;s checkout page uses element.TextContent = &quot;&quot; and this ends up disconnecting some nodes from the tree. When the ShorthandSerializer tries to get the value for each of the longhands of grid-template, the ComputedStyleExtractor is unable to resolve the RenderStyle to use via computeRenderStyleForProperty and returns nullptr for the longhand value. This results in a hard nullptr deref ShorthandSerializer::longhandValue</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1976869</commentid>
    <comment_count>1</comment_count>
    <who name="Sammy Gill">sgill26</who>
    <bug_when>2023-09-11 11:42:15 -0700</bug_when>
    <thetext>rdar://115046351</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1976870</commentid>
    <comment_count>2</comment_count>
    <who name="Sammy Gill">sgill26</who>
    <bug_when>2023-09-11 11:54:04 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/17661</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1977136</commentid>
    <comment_count>3</comment_count>
    <who name="Sammy Gill">sgill26</who>
    <bug_when>2023-09-12 14:10:09 -0700</bug_when>
    <thetext>Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/41946</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1977502</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-09-14 09:19:48 -0700</bug_when>
    <thetext>Committed 267989@main (7d7be769ce2d): &lt;https://commits.webkit.org/267989@main&gt;

Reviewed commits have been landed. Closing PR #17661 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1979886</commentid>
    <comment_count>5</comment_count>
    <who name="Sammy Gill">sgill26</who>
    <bug_when>2023-09-25 11:45:40 -0700</bug_when>
    <thetext>*** Bug 261760 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>467643</attachid>
            <date>2023-09-11 11:41:25 -0700</date>
            <delta_ts>2023-09-11 11:41:25 -0700</delta_ts>
            <desc>Testcase</desc>
            <filename>costco-reduced.html</filename>
            <type>text/html</type>
            <size>453</size>
            <attacher name="Sammy Gill">sgill26</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8c3R5bGU+CiNjb250YWluZXIgewogIHdpZHRoOiA1MHB4
OwogIGhlaWdodDogNTBweDsKICBib3JkZXI6IDFweCBzb2xpZCBibGFjazsKfQoKI2NoaWxkIHsK
ICB3aWR0aDogMTBweDsKICBoZWlnaHQ6IDEwcHg7CiAgYmFja2dyb3VuZC1jb2xvcjogZ3JlZW47
CiAgZ3JpZC10ZW1wbGF0ZTogMTBweCAvIDEwcHg7Cn0KPC9zdHlsZT4KCjxkaXYgaWQ9ImNvbnRh
aW5lciI+CiAgPGRpdiBpZD0iY2hpbGQiPjwvZGl2Pgo8L2Rpdj4KCjxzY3JpcHQ+CmxldCBzdHls
ZT0gd2luZG93LmdldENvbXB1dGVkU3R5bGUoZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoImNoaWxk
IikpOwpkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgiY29udGFpbmVyIikudGV4dENvbnRlbnQgPSAi
IjsKY29uc29sZS5sb2coc3R5bGUuZ3JpZFRlbXBsYXRlKTsKPC9zY3JpcHQ+Cgo8L2h0bWw+
</data>

          </attachment>
      

    </bug>

</bugzilla>