Title: [229690] trunk/Source/WebCore
Revision
229690
Author
[email protected]
Date
2018-03-16 17:39:45 -0700 (Fri, 16 Mar 2018)

Log Message

Ensure Document::responseReceived and clearResource are called on the main thread
https://bugs.webkit.org/show_bug.cgi?id=183709

Reviewed by Chris Dumez.

No change of behavior.

* loader/DocumentLoader.cpp:
(WebCore::DocumentLoader::responseReceived):
(WebCore::DocumentLoader::clearMainResource):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (229689 => 229690)


--- trunk/Source/WebCore/ChangeLog	2018-03-17 00:38:12 UTC (rev 229689)
+++ trunk/Source/WebCore/ChangeLog	2018-03-17 00:39:45 UTC (rev 229690)
@@ -1,3 +1,16 @@
+2018-03-16  Youenn Fablet  <[email protected]>
+
+        Ensure Document::responseReceived and clearResource are called on the main thread
+        https://bugs.webkit.org/show_bug.cgi?id=183709
+
+        Reviewed by Chris Dumez.
+
+        No change of behavior.
+
+        * loader/DocumentLoader.cpp:
+        (WebCore::DocumentLoader::responseReceived):
+        (WebCore::DocumentLoader::clearMainResource):
+
 2018-03-16  Chris Dumez  <[email protected]>
 
         WebKit.WebsitePoliciesAutoplayQuirks API test times out with async policy delegates

Modified: trunk/Source/WebCore/loader/DocumentLoader.cpp (229689 => 229690)


--- trunk/Source/WebCore/loader/DocumentLoader.cpp	2018-03-17 00:38:12 UTC (rev 229689)
+++ trunk/Source/WebCore/loader/DocumentLoader.cpp	2018-03-17 00:39:45 UTC (rev 229690)
@@ -368,6 +368,7 @@
 
 void DocumentLoader::notifyFinished(CachedResource& resource)
 {
+    ASSERT(isMainThread());
 #if ENABLE(CONTENT_FILTERING)
     if (m_contentFilter && !m_contentFilter->continueAfterNotifyFinished(resource))
         return;
@@ -1808,6 +1809,7 @@
 
 void DocumentLoader::clearMainResource()
 {
+    ASSERT(isMainThread());
     if (m_mainResource && m_mainResource->hasClient(*this))
         m_mainResource->removeClient(*this);
 #if ENABLE(CONTENT_FILTERING)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to