Summary: CRASH seen with DOM.setOuterHTML when there is no documentElement Steps to Reproduce 1. Inspect this page 2. js> document.documentElement.remove() 3. Open inspector² 4. js> DOMAgent.setOuterHTML(1, "Test") => CRASH Notes: Not exactly sure how to reproduce this outside of sending the raw commands, but it shouldn't be possible. to cause a crash no matter the steps.
<rdar://problem/32175860>
Created attachment 310168 [details] [PATCH] Proposed Fix
Comment on attachment 310168 [details] [PATCH] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=310168&action=review r=me > Source/WebCore/ChangeLog:13 > + Null check the document element whic might not exist. Typo: which
Created attachment 310174 [details] [PATCH] For Landing
Comment on attachment 310174 [details] [PATCH] For Landing Clearing flags on attachment: 310174 Committed r216883: <http://trac.webkit.org/changeset/216883>