Changeset 247787 in webkit


Ignore:
Timestamp:
Jul 24, 2019 1:28:31 PM (5 years ago)
Author:
beidson@apple.com
Message:

Crash in WebContent process with custom schemes.
<rdar://problem/52968793> and https://bugs.webkit.org/show_bug.cgi?id=200062

Reviewed by Andy Estes.

Almost everywhere in WebURLSchemeTaskProxy where we call processNextPendingTask() we first protect the task with a ref.
But not in didReceiveData.
So lets do that.

  • WebProcess/WebPage/WebURLSchemeTaskProxy.cpp:

(WebKit::WebURLSchemeTaskProxy::didReceiveData): Protect this.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r247786 r247787  
     12019-07-24  Brady Eidson  <beidson@apple.com>
     2
     3        Crash in WebContent process with custom schemes.
     4        <rdar://problem/52968793> and https://bugs.webkit.org/show_bug.cgi?id=200062
     5
     6        Reviewed by Andy Estes.
     7
     8        Almost everywhere in WebURLSchemeTaskProxy where we call processNextPendingTask() we first protect the task with a ref.
     9        But not in didReceiveData.
     10        So lets do that.
     11
     12        * WebProcess/WebPage/WebURLSchemeTaskProxy.cpp:
     13        (WebKit::WebURLSchemeTaskProxy::didReceiveData): Protect this.
     14
    1152019-07-24  Alex Christensen  <achristensen@webkit.org>
    216
  • trunk/Source/WebKit/WebProcess/WebPage/WebURLSchemeTaskProxy.cpp

    r235205 r247787  
    126126    }
    127127
     128    auto protectedThis = makeRef(*this);
    128129    m_coreLoader->didReceiveData(reinterpret_cast<const char*>(data), size, 0, DataPayloadType::DataPayloadBytes);
    129130    processNextPendingTask();
Note: See TracChangeset for help on using the changeset viewer.