Changeset 199021 in webkit


Ignore:
Timestamp:
Apr 4, 2016 2:09:35 PM (8 years ago)
Author:
Brent Fulgham
Message:

REGRESSION(r198955): com.apple.WebKit.Networking.Development crashed in WebKit::NetworkLoad::setPendingDownloadID + 11
https://bugs.webkit.org/show_bug.cgi?id=156177
<rdar://problem/25508037>

Reviewed by Alex Christensen.

We do not currently create a NetworkDataTask when we encounter a BLOB URL when building with
NETWORK_SESSION enabled. This causes us to crash when the download system attempts to work
with a BLOB URL.

  • NetworkProcess/NetworkLoad.cpp:

(WebKit::NetworkLoad::setPendingDownloadID): Add null check for m_task.
(WebKit::NetworkLoad::setPendingDownload): Ditto.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r199020 r199021  
     12016-04-04  Brent Fulgham  <bfulgham@apple.com>
     2
     3        REGRESSION(r198955): com.apple.WebKit.Networking.Development crashed in WebKit::NetworkLoad::setPendingDownloadID + 11
     4        https://bugs.webkit.org/show_bug.cgi?id=156177
     5        <rdar://problem/25508037>
     6
     7        Reviewed by Alex Christensen.
     8
     9        We do not currently create a NetworkDataTask when we encounter a BLOB URL when building with
     10        NETWORK_SESSION enabled. This causes us to crash when the download system attempts to work
     11        with a BLOB URL.
     12
     13        * NetworkProcess/NetworkLoad.cpp:
     14        (WebKit::NetworkLoad::setPendingDownloadID): Add null check for m_task.
     15        (WebKit::NetworkLoad::setPendingDownload): Ditto.
     16
    1172016-04-03  Sam Weinig  <sam@webkit.org>
    218
  • trunk/Source/WebKit2/NetworkProcess/NetworkLoad.cpp

    r198911 r199021  
    184184void NetworkLoad::setPendingDownloadID(DownloadID downloadID)
    185185{
     186    if (!m_task)
     187        return;
     188
    186189    m_task->setPendingDownloadID(downloadID);
    187190}
     
    189192void NetworkLoad::setPendingDownload(PendingDownload& pendingDownload)
    190193{
     194    if (!m_task)
     195        return;
     196
    191197    m_task->setPendingDownload(pendingDownload);
    192198}
Note: See TracChangeset for help on using the changeset viewer.