<?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>240051</bug_id>
          
          <creation_ts>2022-05-03 18:18:15 -0700</creation_ts>
          <short_desc>REGRESSION(r293285): ASSERTION FAILED: m_isConstructed /Volumes/Data/worker/Apple-Monterey-Debug-Build/build/WebKitBuild/Debug/usr/local/include/wtf/NeverDestroyed.h(152) : ..... [T = const WTF::AtomString, AccessTraits = WTF::MainThreadAccessTraits]</short_desc>
          <delta_ts>2022-05-03 23:25:53 -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>WebCore Misc.</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="Robert Jenner">jenner</reporter>
          <assigned_to name="Chris Dumez">cdumez</assigned_to>
          <cc>cdumez</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1866337</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Jenner">jenner</who>
    <bug_when>2022-05-03 18:18:15 -0700</bug_when>
    <thetext>TestWebKitAPI.DocumentOrder.Positions

is a constant assertion/crash on Debug only on BigSur and higher, as well as iOS 15.

HISTORY:
https://results.webkit.org/?suite=api-tests&amp;test=TestWebKitAPI.DocumentOrder.Positions

TestWebKitAPI.DocumentOrder.Positions
        ASSERTION FAILED: m_isConstructed
        /Volumes/Data/worker/Apple-Monterey-Debug-Build/build/WebKitBuild/Debug/usr/local/include/wtf/NeverDestroyed.h(152) : WTF::LazyNeverDestroyed::PointerType WTF::LazyNeverDestroyed&lt;const WTF::AtomString, WTF::MainThreadAccessTraits&gt;::storagePointerWithoutAccessCheck() const [T = const WTF::AtomString, AccessTraits = WTF::MainThreadAccessTraits]
        1   0x12c067849 WTFCrash
        2   0x134f1ee3b WTFCrashWithInfo(int, char const*, char const*, int)
        3   0x135232c67 WTF::LazyNeverDestroyed&lt;WTF::AtomString const, WTF::MainThreadAccessTraits&gt;::storagePointerWithoutAccessCheck() const
        4   0x135232bf2 WTF::LazyNeverDestroyed&lt;WTF::AtomString const, WTF::MainThreadAccessTraits&gt;::storagePointer() const
        5   0x135232bc5 WTF::LazyNeverDestroyed&lt;WTF::AtomString const, WTF::MainThreadAccessTraits&gt;::get()
        6   0x138bd4850 WebCore::plaintextOnlyAtom()
        7   0x138f049f4 WebCore::TextControlInnerTextElement::updateInnerTextElementEditabilityImpl(bool, bool)
        8   0x138f0489f WebCore::TextControlInnerTextElement::create(WebCore::Document&amp;, bool)
        9   0x138cf5ea5 WebCore::HTMLTextAreaElement::didAddUserAgentShadowRoot(WebCore::ShadowRoot&amp;)
        10  0x138791d11 WebCore::Element::addShadowRoot(WTF::Ref&lt;WebCore::ShadowRoot, WTF::RawPtrTraits&lt;WebCore::ShadowRoot&gt; &gt;&amp;&amp;)
        11  0x1387926c1 WebCore::Element::createUserAgentShadowRoot()
        12  0x1387925da WebCore::Element::ensureUserAgentShadowRoot()
        13  0x138cf5d67 WebCore::HTMLTextAreaElement::create(WebCore::QualifiedName const&amp;, WebCore::Document&amp;, WebCore::HTMLFormElement*)
        14  0x138cf5e4b WebCore::HTMLTextAreaElement::create(WebCore::Document&amp;)
        15  0x10eb3f9ac TestWebKitAPI::DocumentOrder_Positions_Test::TestBody()
        16  0x10f83610b void testing::internal::HandleSehExceptionsInMethodIfSupported&lt;testing::Test, void&gt;(testing::Test*, void (testing::Test::*)(), char const*)
        17  0x10f7fa51a void testing::internal::HandleExceptionsInMethodIfSupported&lt;testing::Test, void&gt;(testing::Test*, void (testing::Test::*)(), char const*)
        18  0x10f7fa463 testing::Test::Run()
        19  0x10f7fb5e1 testing::TestInfo::Run()
        20  0x10f7fc684 testing::TestSuite::Run()
        21  0x10f80b79b testing::internal::UnitTestImpl::RunAllTests()
        22  0x10f83b04b bool testing::internal::HandleSehExceptionsInMethodIfSupported&lt;testing::internal::UnitTestImpl, bool&gt;(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*)
        23  0x10f80b15a bool testing::internal::HandleExceptionsInMethodIfSupported&lt;testing::internal::UnitTestImpl, bool&gt;(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*)
        24  0x10f80b045 testing::UnitTest::Run()
        25  0x10eebd591 RUN_ALL_TESTS()
        26  0x10eebd526 TestWebKitAPI::TestsController::run(int, char**)
        27  0x10f7c7f92 main
        28  0x11a1c851e</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1866338</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-05-03 18:18:35 -0700</bug_when>
    <thetext>&lt;rdar://problem/92705033&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1866343</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Jenner">jenner</who>
    <bug_when>2022-05-03 18:34:56 -0700</bug_when>
    <thetext>I was able to reproduce the failure at iOS15 Debug ToT using the following test:

run-api-tests TestWebKitAPI.DocumentOrder.Positions


I was also able to determine the regression point. The test continues to crash as far back as r293285 or 249910@Main, but passes at the commit directly before r293279 or 249909@Main. So it appears that r293285 is what caused this test to start crashing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1866353</commentid>
    <comment_count>3</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2022-05-03 19:14:18 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/489</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1866377</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-05-03 23:25:51 -0700</bug_when>
    <thetext>Committed r293762 (250241@main): &lt;https://commits.webkit.org/250241@main&gt;

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

    </bug>

</bugzilla>