Title: [291669] branches/safari-613-branch/Source/WebCore
Revision
291669
Author
alanc...@apple.com
Date
2022-03-22 10:56:57 -0700 (Tue, 22 Mar 2022)

Log Message

Cherry-pick r291324. rdar://problem/45607220

    Crash under HTMLDocumentParser::didBeginYieldingParser()
    https://bugs.webkit.org/show_bug.cgi?id=237930
    <rdar://45607220>

    Reviewed by Geoffrey Garen.

    Add null pointer check.

    No new tests, unable to reproduce.

    * html/parser/HTMLDocumentParser.cpp:
    (WebCore::HTMLDocumentParser::didBeginYieldingParser):
    (WebCore::HTMLDocumentParser::didEndYieldingParser):

    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@291324 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Modified Paths

Diff

Modified: branches/safari-613-branch/Source/WebCore/ChangeLog (291668 => 291669)


--- branches/safari-613-branch/Source/WebCore/ChangeLog	2022-03-22 17:56:53 UTC (rev 291668)
+++ branches/safari-613-branch/Source/WebCore/ChangeLog	2022-03-22 17:56:57 UTC (rev 291669)
@@ -1,5 +1,42 @@
 2022-03-21  Alan Coon  <alanc...@apple.com>
 
+        Cherry-pick r291324. rdar://problem/45607220
+
+    Crash under HTMLDocumentParser::didBeginYieldingParser()
+    https://bugs.webkit.org/show_bug.cgi?id=237930
+    <rdar://45607220>
+    
+    Reviewed by Geoffrey Garen.
+    
+    Add null pointer check.
+    
+    No new tests, unable to reproduce.
+    
+    * html/parser/HTMLDocumentParser.cpp:
+    (WebCore::HTMLDocumentParser::didBeginYieldingParser):
+    (WebCore::HTMLDocumentParser::didEndYieldingParser):
+    
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@291324 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2022-03-15  Per Arne Vollan  <pvol...@apple.com>
+
+            Crash under HTMLDocumentParser::didBeginYieldingParser()
+            https://bugs.webkit.org/show_bug.cgi?id=237930
+            <rdar://45607220>
+
+            Reviewed by Geoffrey Garen.
+
+            Add null pointer check.
+
+            No new tests, unable to reproduce.
+
+            * html/parser/HTMLDocumentParser.cpp:
+            (WebCore::HTMLDocumentParser::didBeginYieldingParser):
+            (WebCore::HTMLDocumentParser::didEndYieldingParser):
+
+2022-03-21  Alan Coon  <alanc...@apple.com>
+
         Cherry-pick r291303. rdar://problem/72432683
 
     background-clip:text doesn't work with display:flex

Modified: branches/safari-613-branch/Source/WebCore/html/parser/HTMLDocumentParser.cpp (291668 => 291669)


--- branches/safari-613-branch/Source/WebCore/html/parser/HTMLDocumentParser.cpp	2022-03-22 17:56:53 UTC (rev 291668)
+++ branches/safari-613-branch/Source/WebCore/html/parser/HTMLDocumentParser.cpp	2022-03-22 17:56:57 UTC (rev 291669)
@@ -161,12 +161,14 @@
 
 void HTMLDocumentParser::didBeginYieldingParser()
 {
-    m_parserScheduler->didBeginYieldingParser();
+    if (m_parserScheduler)
+        m_parserScheduler->didBeginYieldingParser();
 }
 
 void HTMLDocumentParser::didEndYieldingParser()
 {
-    m_parserScheduler->didEndYieldingParser();
+    if (m_parserScheduler)
+        m_parserScheduler->didEndYieldingParser();
 }
 
 bool HTMLDocumentParser::isParsingFragment() const
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to