<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Null dereference loading Blink layout test editing/inserting/insert-with-mutation-event.html"
   href="https://bugs.webkit.org/show_bug.cgi?id=149299">149299</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Null dereference loading Blink layout test editing/inserting/insert-with-mutation-event.html
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>WebKit Nightly Build
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Keywords</th>
          <td>BlinkMergeCandidate, HasReduction, NeedsRadar
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>HTML Editing
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jhoneycutt&#64;apple.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>webkit-bug-importer&#64;group.apple.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=261434" name="attach_261434" title="crashing test">attachment 261434</a> <a href="attachment.cgi?id=261434&amp;action=edit" title="crashing test">[details]</a></span>
crashing test

Null dereference loading Blink layout test editing/inserting/insert-with-mutation-event.html.

Stack trace:

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000348
Exception Note:        EXC_CORPSE_NOTIFY

VM Regions Near 0x348:
--&gt; 
    __TEXT                 00000001029e4000-00000001029e6000 [    8K] r-x/rwx SM=COW  /Users/USER/*/WebKit.framework/Versions/A/XPCServices/com.apple.WebKit.WebContent.Development.xpc/Contents/MacOS/com.apple.WebKit.WebContent.Development

Application Specific Information:
CRASHING TEST: temp-tests/editing/inserting/insert-with-mutation-event.html

Global Trace Buffer (reverse chronological seconds):
40.565241    CFNetwork                     0x00007fff88d43b97 Explicitly setting CF cookie storage singleton
40.565623    CFNetwork                     0x00007fff88d8f211 Explicitly setting cookie storage singleton

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   com.apple.WebCore                 0x000000010aa177da WebCore::SimpleEditCommand::SimpleEditCommand(WebCore::Document&amp;, WebCore::EditAction) + 90 (memory:2635)
1   com.apple.WebCore                 0x000000010b4afde5 WebCore::SplitTextNodeCommand::SplitTextNodeCommand(WTF::PassRefPtr&lt;WebCore::Text&gt;, int) + 37 (SplitTextNodeCommand.cpp:40)
2   com.apple.WebCore                 0x000000010a80317f WebCore::CompositeEditCommand::splitTextNode(WTF::PassRefPtr&lt;WebCore::Text&gt;, unsigned int) + 63 (StdLibExtras.h:366)
3   com.apple.WebCore                 0x000000010a7527a1 WebCore::ApplyStyleCommand::splitTextAtStart(WebCore::Position const&amp;, WebCore::Position const&amp;) + 161 (StdLibExtras.h:366)
4   com.apple.WebCore                 0x000000010a750963 WebCore::ApplyStyleCommand::applyInlineStyle(WebCore::EditingStyle*) + 723 (ApplyStyleCommand.cpp:189)
5   com.apple.WebCore                 0x000000010a74e0fd WebCore::ApplyStyleCommand::doApply() + 173 (PassRefPtr.h:41)
6   com.apple.WebCore                 0x000000010a80252b WebCore::CompositeEditCommand::applyCommandToComposite(WTF::PassRefPtr&lt;WebCore::EditCommand&gt;) + 43 (CompositeEditCommand.cpp:281)
7   com.apple.WebCore                 0x000000010a8026dc WebCore::CompositeEditCommand::applyStyle(WebCore::EditingStyle const*, WebCore::EditAction) + 76 (StdLibExtras.h:366)
8   com.apple.WebCore                 0x000000010ac8912d WebCore::InsertTextCommand::doApply() + 2205 (RefCounted.h:99)
9   com.apple.WebCore                 0x000000010a802630 WebCore::CompositeEditCommand::applyCommandToComposite(WTF::PassRefPtr&lt;WebCore::CompositeEditCommand&gt;, WebCore::VisibleSelection const&amp;) + 80 (CompositeEditCommand.cpp:296)
10  com.apple.WebCore                 0x000000010b64dc13 WebCore::TypingCommand::insertTextRunWithoutNewlines(WTF::String const&amp;, bool) + 115 (StdLibExtras.h:366)
11  com.apple.WebCore                 0x000000010b64e091 void WebCore::forEachLineInString&lt;WebCore::TypingCommandLineOperation&gt;(WTF::String const&amp;, WebCore::TypingCommandLineOperation const&amp;) + 257 (StdLibExtras.h:366)
12  com.apple.WebCore                 0x000000010b64cae8 WebCore::TypingCommand::insertText(WebCore::Document&amp;, WTF::String const&amp;, WebCore::VisibleSelection const&amp;, unsigned int, WebCore::TypingCommand::TextCompositionType) + 440 (RefCounted.h:99)
13  com.apple.WebCore                 0x000000010aa3629a WebCore::executeInsertText(WebCore::Frame&amp;, WebCore::Event*, WebCore::EditorCommandSource, WTF::String const&amp;) + 26 (EditorCommand.cpp:535)
14  com.apple.WebCore                 0x000000010aa34876 WebCore::Editor::Command::execute(WTF::String const&amp;, WebCore::Event*) const + 182 (EditorCommand.cpp:1704)
15  com.apple.WebCore                 0x000000010a96dc36 WebCore::Document::execCommand(WTF::String const&amp;, bool, WTF::String const&amp;) + 214 (Document.cpp:4666)
16  com.apple.WebCore                 0x000000010ad84074 WebCore::jsDocumentPrototypeFunctionExecCommand(JSC::ExecState*) + 420 (JSCJSValue.h:499)
17  ???                               0x00002c99c3201028 0 + 49038915276840
18  com.apple.JavaScriptCore          0x000000010a0e076f llint_entry + 22696
19  com.apple.JavaScriptCore          0x000000010a0dace4 vmEntryToJavaScript + 299
20  com.apple.JavaScriptCore          0x0000000109f9b2d9 JSC::JITCode::execute(JSC::VM*, JSC::ProtoCallFrame*) + 169 (JITCode.cpp:82)
21  com.apple.JavaScriptCore          0x0000000109f81a10 JSC::Interpreter::execute(JSC::ProgramExecutable*, JSC::ExecState*, JSC::JSObject*) + 10448 (Interpreter.cpp:945)
22  com.apple.JavaScriptCore          0x0000000109c944c5 JSC::evaluate(JSC::ExecState*, JSC::SourceCode const&amp;, JSC::JSValue, WTF::NakedPtr&lt;JSC::Exception&gt;&amp;) + 469 (Completion.cpp:104)
23  com.apple.WebCore                 0x000000010b3f78ec WebCore::ScriptController::evaluateInWorld(WebCore::ScriptSourceCode const&amp;, WebCore::DOMWrapperWorld&amp;) + 284 (JSMainThreadExecState.h:62)
24  com.apple.WebCore                 0x000000010b3f7b29 WebCore::ScriptController::evaluate(WebCore::ScriptSourceCode const&amp;) + 41 (ScriptController.cpp:180)
25  com.apple.WebCore                 0x000000010b3fdaac WebCore::ScriptElement::executeScript(WebCore::ScriptSourceCode const&amp;) + 316 (ScriptElement.cpp:309)
26  com.apple.WebCore                 0x000000010b3fc756 WebCore::ScriptElement::prepareScript(WTF::TextPosition const&amp;, WebCore::ScriptElement::LegacyTypeSupport) + 1046 (StdLibExtras.h:366)
27  com.apple.WebCore                 0x000000010abf95eb WebCore::HTMLScriptRunner::runScript(WebCore::Element*, WTF::TextPosition const&amp;) + 347 (ScriptElement.h:58)
28  com.apple.WebCore                 0x000000010abf9440 WebCore::HTMLScriptRunner::execute(WTF::PassRefPtr&lt;WebCore::Element&gt;, WTF::TextPosition const&amp;) + 48 (HTMLScriptRunner.cpp:191)
29  com.apple.WebCore                 0x000000010ab9c466 WebCore::HTMLDocumentParser::runScriptsForPausedTreeBuilder() + 86 (StdLibExtras.h:366)
30  com.apple.WebCore                 0x000000010ab9c52d WebCore::HTMLDocumentParser::canTakeNextToken(WebCore::HTMLDocumentParser::SynchronousMode, WebCore::PumpSession&amp;) + 93 (HTMLDocumentParser.cpp:214)
31  com.apple.WebCore                 0x000000010ab9c0c3 WebCore::HTMLDocumentParser::pumpTokenizer(WebCore::HTMLDocumentParser::SynchronousMode) + 595 (HTMLDocumentParser.cpp:259)
32  com.apple.WebCore                 0x000000010ab9cddd WebCore::HTMLDocumentParser::append(WTF::PassRefPtr&lt;WTF::StringImpl&gt;) + 669 (DocumentParser.h:71)
33  com.apple.WebCore                 0x000000010a93f61c WebCore::DecodedDataDocumentParser::flush(WebCore::DocumentWriter&amp;) + 92 (StdLibExtras.h:366)
34  com.apple.WebCore                 0x000000010a99f68b WebCore::DocumentWriter::end() + 43 (RefPtr.h:71)
35  com.apple.WebCore                 0x000000010a9879ec WebCore::DocumentLoader::finishedLoading(double) + 268 (ResourceErrorBase.h:42)
36  com.apple.WebCore                 0x000000010a7b8179 WebCore::CachedResource::checkNotify() + 153 (CachedResourceClientWalker.h:51)
37  com.apple.WebCore                 0x000000010a7b4433 WebCore::CachedRawResource::finishLoading(WebCore::SharedBuffer*) + 227 (CachedRawResource.cpp:104)
38  com.apple.WebCore                 0x000000010b52f501 WebCore::SubresourceLoader::didFinishLoading(double) + 1153 (ResourceLoader.h:154)
39  com.apple.WebKit                  0x000000010907598d WebKit::WebResourceLoader::didReceiveWebResourceLoaderMessage(IPC::Connection&amp;, IPC::MessageDecoder&amp;) + 561 (HandleMessage.h:16)
40  com.apple.WebKit                  0x0000000108e4f1f1 IPC::Connection::dispatchMessage(std::__1::unique_ptr&lt;IPC::MessageDecoder, std::__1::default_delete&lt;IPC::MessageDecoder&gt; &gt;) + 127 (memory:2636)
41  com.apple.WebKit                  0x0000000108e51b4a IPC::Connection::dispatchOneMessage() + 126 (memory:2656)
42  com.apple.JavaScriptCore          0x000000010a293985 WTF::RunLoop::performWork() + 437 (functional:1742)
43  com.apple.JavaScriptCore          0x000000010a293d32 WTF::RunLoop::performWork(void*) + 34 (RunLoopCF.cpp:39)
44  com.apple.CoreFoundation          0x00007fff949e2c01 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
45  com.apple.CoreFoundation          0x00007fff949d4b1c __CFRunLoopDoSources0 + 556
46  com.apple.CoreFoundation          0x00007fff949d403f __CFRunLoopRun + 927
47  com.apple.CoreFoundation          0x00007fff949d3a38 CFRunLoopRunSpecific + 296
48  com.apple.HIToolbox               0x00007fff88e673bd RunCurrentEventLoopInMode + 235
49  com.apple.HIToolbox               0x00007fff88e67153 ReceiveNextEventCommon + 432
50  com.apple.HIToolbox               0x00007fff88e66f93 _BlockUntilNextEventMatchingListInModeWithFilter + 71
51  com.apple.AppKit                  0x00007fff870b81e7 _DPSNextEvent + 1076
52  com.apple.AppKit                  0x00007fff8748490d -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454
53  com.apple.AppKit                  0x00007fff870ae0b8 -[NSApplication run] + 682
54  com.apple.AppKit                  0x00007fff87030396 NSApplicationMain + 1176
55  libxpc.dylib                      0x00007fff8c70ff70 _xpc_objc_main + 793
56  libxpc.dylib                      0x00007fff8c7116bf xpc_main + 494
57  com.apple.WebKit.WebContent.Development    0x00000001029e5424 main + 409 (XPCServiceMain.Development.mm:187)
58  libdyld.dylib                     0x00007fff93aa15ad start + 1</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>