⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 230783 in webkit


Ignore:
Timestamp:
Apr 18, 2018, 2:26:05 PM (8 years ago)
Author:
youenn@apple.com
Message:

NetworkResourceLoader should not clean itself inside didReceiveResponse
​https://bugs.webkit.org/show_bug.cgi?id=184754

Reviewed by Chris Dumez.

Delay the cleanup to after the didReceiveResponse call so that NetworkLoad can terminate its work.
Covered by XHR sync tests no longer crashing on GuardMalloc bots.

  • NetworkProcess/NetworkResourceLoader.cpp:

(WebKit::NetworkResourceLoader::didReceiveResponse):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r230780 r230783  
     12018-04-18  Youenn Fablet  <youenn@apple.com>
     2
     3        NetworkResourceLoader should not clean itself inside didReceiveResponse
     4        https://bugs.webkit.org/show_bug.cgi?id=184754
     5
     6        Reviewed by Chris Dumez.
     7
     8        Delay the cleanup to after the didReceiveResponse call so that NetworkLoad can terminate its work.
     9        Covered by XHR sync tests no longer crashing on GuardMalloc bots.
     10
     11        * NetworkProcess/NetworkResourceLoader.cpp:
     12        (WebKit::NetworkResourceLoader::didReceiveResponse):
     13
    1142018-04-18  Jer Noble  <jer.noble@apple.com>
    215
  • trunk/Source/WebKit/NetworkProcess/NetworkResourceLoader.cpp

    r230681 r230783  
    342342            m_synchronousLoadData->error = WTFMove(error);
    343343            sendReplyToSynchronousRequest(*m_synchronousLoadData, nullptr);
    344             cleanup();
     344            RunLoop::main().dispatch([protectedThis = makeRef(*this)]() {
     345                protectedThis->cleanup();
     346            });
    345347            return ShouldContinueDidReceiveResponse::No;
    346348        }
Note: See TracChangeset for help on using the changeset viewer.