Title: [247399] trunk/Source/WebCore
- Revision
- 247399
- Author
- [email protected]
- Date
- 2019-07-12 14:50:31 -0700 (Fri, 12 Jul 2019)
Log Message
Change RELEASE_ASSERT in DocumentWriter::addData to ASSERT and early return
https://bugs.webkit.org/show_bug.cgi?id=199756
<rdar://problem/51554775>
Patch by Alex Christensen <[email protected]> on 2019-07-12
Reviewed by Brady Eidson.
Attempts to reach this assertion were unsuccessful, but sometimes this assertion crashes.
Let's change it to an early return to prevent crashes.
* loader/DocumentWriter.cpp:
(WebCore::DocumentWriter::addData):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (247398 => 247399)
--- trunk/Source/WebCore/ChangeLog 2019-07-12 21:35:08 UTC (rev 247398)
+++ trunk/Source/WebCore/ChangeLog 2019-07-12 21:50:31 UTC (rev 247399)
@@ -1,3 +1,17 @@
+2019-07-12 Alex Christensen <[email protected]>
+
+ Change RELEASE_ASSERT in DocumentWriter::addData to ASSERT and early return
+ https://bugs.webkit.org/show_bug.cgi?id=199756
+ <rdar://problem/51554775>
+
+ Reviewed by Brady Eidson.
+
+ Attempts to reach this assertion were unsuccessful, but sometimes this assertion crashes.
+ Let's change it to an early return to prevent crashes.
+
+ * loader/DocumentWriter.cpp:
+ (WebCore::DocumentWriter::addData):
+
2019-07-12 Justin Fan <[email protected]>
[WebGPU] Move error scopes out of GPUDevice for more portable error generation
Modified: trunk/Source/WebCore/loader/DocumentWriter.cpp (247398 => 247399)
--- trunk/Source/WebCore/loader/DocumentWriter.cpp 2019-07-12 21:35:08 UTC (rev 247398)
+++ trunk/Source/WebCore/loader/DocumentWriter.cpp 2019-07-12 21:50:31 UTC (rev 247399)
@@ -237,7 +237,10 @@
{
// FIXME: Change these to ASSERT once https://bugs.webkit.org/show_bug.cgi?id=80427 has been resolved.
RELEASE_ASSERT(m_state != State::NotStarted);
- RELEASE_ASSERT(m_state != State::Finished);
+ if (m_state == State::Finished) {
+ ASSERT_NOT_REACHED();
+ return;
+ }
ASSERT(m_parser);
m_parser->appendBytes(*this, bytes, length);
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes