<?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>271858</bug_id>
          
          <creation_ts>2024-03-28 15:51:03 -0700</creation_ts>
          <short_desc>Release assert in canExecuteScripts via Editor::setComposition through FrameSelection::willBeRemovedFromFrame</short_desc>
          <delta_ts>2024-05-07 08:54:47 -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>HTML Editing</component>
          <version>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=273139</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>
          
          <blocked>273738</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryosuke Niwa">rniwa</reporter>
          <assigned_to name="Ryosuke Niwa">rniwa</assigned_to>
          <cc>ddkilzer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2024584</commentid>
    <comment_count>0</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2024-03-28 15:51:03 -0700</bug_when>
    <thetext>e.g.

0   com.apple.WebCore             	       0x7ff831e0bf22     WTFCrashWithInfo(int, char const*, char const*, int) + 18 (/AppleInternal/Library/BuildRoots/52864998-4bb1-11ed-960e-2e32217d8374/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.Internal.sdk/usr/local/include/wtf/Assertions.h:754)
1   com.apple.WebCore             	       0x7ff831c213d0     WebCore::ScriptController::canExecuteScripts(WebCore::ReasonForCallingCanExecuteScripts) + 480 (/AppleInternal/Library/BuildRoots/52864998-4bb1-11ed-960e-2e32217d8374/Library/Caches/com.apple.xbs/Sources/WebCore/Source/WebCore/./bindings/js/ScriptController.cpp:758)
2   com.apple.WebCore             	       0x7ff832cf382c     WebCore::JSEventListener::handleEvent(WebCore::ScriptExecutionContext&amp;, WebCore::Event&amp;) + 284 (/AppleInternal/Library/BuildRoots/52864998-4bb1-11ed-960e-2e32217d8374/Library/Caches/com.apple.xbs/Sources/WebCore/Source/WebCore/./bindings/js/JSEventListener.cpp:160)
3   com.apple.WebCore             	       0x7ff833050736     WebCore::EventTarget::innerInvokeEventListeners(WebCore::Event&amp;, WTF::Vector&lt;WTF::RefPtr&lt;WebCore::RegisteredEventListener, WTF::RawPtrTraits&lt;WebCore::RegisteredEventListener&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::RegisteredEventListener&gt; &gt;, 1ul, WTF::CrashOnOverflow, 2ul, WTF::FastMalloc&gt;, WebCore::EventTarget::EventInvokePhase) + 310 (/AppleInternal/Library/BuildRoots/52864998-4bb1-11ed-960e-2e32217d8374/Library/Caches/com.apple.xbs/Sources/WebCore/Source/WebCore/./dom/EventTarget.cpp:364)
4   com.apple.WebCore             	       0x7ff833050336     WebCore::EventTarget::fireEventListeners(WebCore::Event&amp;, WebCore::EventTarget::EventInvokePhase) + 342 (/AppleInternal/Library/BuildRoots/52864998-4bb1-11ed-960e-2e32217d8374/Library/Caches/com.apple.xbs/Sources/WebCore/Source/WebCore/./dom/EventTarget.cpp:296)
5   com.apple.WebCore             	       0x7ff833046ee6     WebCore::dispatchEventInDOM(WebCore::Event&amp;, WebCore::EventPath const&amp;) + 214 (/AppleInternal/Library/BuildRoots/52864998-4bb1-11ed-960e-2e32217d8374/Library/Caches/com.apple.xbs/Sources/WebCore/Source/WebCore/./dom/EventDispatcher.cpp:109)
6   com.apple.WebCore             	       0x7ff833046220     WebCore::EventDispatcher::dispatchEvent(WebCore::Node&amp;, WebCore::Event&amp;) + 688 (/AppleInternal/Library/BuildRoots/52864998-4bb1-11ed-960e-2e32217d8374/Library/Caches/com.apple.xbs/Sources/WebCore/Source/WebCore/./dom/EventDispatcher.cpp:190)
7   com.apple.WebCore             	       0x7ff833124e0c     WebCore::Editor::setComposition(WTF::String const&amp;, WebCore::Editor::SetCompositionMode) + 476 (/AppleInternal/Library/BuildRoots/52864998-4bb1-11ed-960e-2e32217d8374/Library/Caches/com.apple.xbs/Sources/WebCore/Source/WebCore/./editing/Editor.cpp:2104)
8   com.apple.WebKit              	       0x7ff91527e96e     WebKit::WebPage::didChangeSelectionOrOverflowScrollPosition() + 400 (/AppleInternal/Library/BuildRoots/52864998-4bb1-11ed-960e-2e32217d8374/Library/Caches/com.apple.xbs/Sources/WebKit/Source/WebKit/WebProcess/WebPage/WebPage.cpp:6324)
9   com.apple.WebKit              	       0x7ff91494d950     WebKit::WebEditorClient::respondToChangedSelection(WebCore::Frame*) + 112 (/AppleInternal/Library/BuildRoots/52864998-4bb1-11ed-960e-2e32217d8374/Library/Caches/com.apple.xbs/Sources/WebKit/Source/WebKit/WebProcess/WebPage/WebPage.cpp:6271)
10  com.apple.WebCore             	       0x7ff83313cdbc     WebCore::FrameSelection::setSelectionWithoutUpdatingAppearance(WebCore::VisibleSelection const&amp;, WTF::OptionSet&lt;WebCore::FrameSelection::SetSelectionOption&gt;, WebCore::FrameSelection::CursorAlignOnScroll, WebCore::TextGranularity) + 1932 (/AppleInternal/Library/BuildRoots/52864998-4bb1-11ed-960e-2e32217d8374/Library/Caches/com.apple.xbs/Sources/WebCore/Source/WebCore/./editing/Editor.cpp:3710)
11  com.apple.WebCore             	       0x7ff833144358     WebCore::FrameSelection::willBeRemovedFromFrame() + 200 (/AppleInternal/Library/BuildRoots/52864998-4bb1-11ed-960e-2e32217d8374/Library/Caches/com.apple.xbs/Sources/WebCore/Source/WebCore/./editing/FrameSelection.cpp:1650)
12  com.apple.WebCore             	       0x7ff832ff526e     WebCore::Document::willBeRemovedFromFrame() + 830 (/AppleInternal/Library/BuildRoots/52864998-4bb1-11ed-960e-2e32217d8374/Library/Caches/com.apple.xbs/Sources/WebCore/Source/WebCore/./dom/Document.cpp:2727)
13  com.apple.WebCore             	       0x7ff833613304     WebCore::Frame::setView(WTF::RefPtr&lt;WebCore::FrameView, WTF::RawPtrTraits&lt;WebCore::FrameView&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::FrameView&gt; &gt;&amp;&amp;) + 68 (/AppleInternal/Library/BuildRoots/52864998-4bb1-11ed-960e-2e32217d8374/Library/Caches/com.apple.xbs/Sources/WebCore/Source/WebCore/./page/Frame.cpp:259)
14  com.apple.WebCore             	       0x7ff831c9ef92     WebCore::FrameLoader::detachFromParent() + 354 (/AppleInternal/Library/BuildRoots/52864998-4bb1-11ed-960e-2e32217d8374/Library/Caches/com.apple.xbs/Sources/WebCore/Source/WebCore/./loader/FrameLoader.cpp:2746)
15  com.apple.WebCore             	       0x7ff831cf7732     WebCore::FrameLoader::frameDetached() + 98 (/AppleInternal/Library/BuildRoots/52864998-4bb1-11ed-960e-2e32217d8374/Library/Caches/com.apple.xbs/Sources/WebCore/Source/WebCore/./loader/FrameLoader.cpp:2837)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2024585</commentid>
    <comment_count>1</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2024-03-28 15:51:21 -0700</bug_when>
    <thetext>&lt;rdar://102563363&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2024593</commentid>
    <comment_count>2</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2024-03-28 15:56:07 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/26583</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2025498</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-04-02 13:46:49 -0700</bug_when>
    <thetext>Committed 276962@main (479a96130343): &lt;https://commits.webkit.org/276962@main&gt;

Reviewed commits have been landed. Closing PR #26583 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2033745</commentid>
    <comment_count>4</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2024-05-07 08:54:47 -0700</bug_when>
    <thetext>This caused:

Bug 273738: TestWebKitAPI.ScrollViewScrollabilityTests.ScrollableWithOverflowHiddenWhenZoomed fails on iOS Simulator</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>