[go: up one dir, main page]

Changeset 277028 in webkit


Ignore:
Timestamp:
May 5, 2021, 10:58:55 AM (4 years ago)
Author:
youenn@apple.com
Message:

No need to error a fetch body stream if its request or response is stopped
https://bugs.webkit.org/show_bug.cgi?id=225347

Reviewed by Geoffrey Garen.

Source/WebCore:

Test: http/wpt/fetch/fetch-response-body-stop-in-worker.html

  • Modules/fetch/FetchBodyOwner.cpp:

(WebCore::FetchBodyOwner::stop):
Nullify the source before we error it.

LayoutTests:

  • http/wpt/fetch/fetch-response-body-stop-in-worker-expected.txt: Added.
  • http/wpt/fetch/fetch-response-body-stop-in-worker.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r277024 r277028  
     12021-05-05  Youenn Fablet  <youenn@apple.com>
     2
     3        No need to error a fetch body stream if its request or response is stopped
     4        https://bugs.webkit.org/show_bug.cgi?id=225347
     5
     6        Reviewed by Geoffrey Garen.
     7
     8        * http/wpt/fetch/fetch-response-body-stop-in-worker-expected.txt: Added.
     9        * http/wpt/fetch/fetch-response-body-stop-in-worker.html: Added.
     10
    1112021-05-05  Sam Weinig  <weinig@apple.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r277024 r277028  
     12021-05-05  Youenn Fablet  <youenn@apple.com>
     2
     3        No need to error a fetch body stream if its request or response is stopped
     4        https://bugs.webkit.org/show_bug.cgi?id=225347
     5
     6        Reviewed by Geoffrey Garen.
     7
     8        Test: http/wpt/fetch/fetch-response-body-stop-in-worker.html
     9
     10        * Modules/fetch/FetchBodyOwner.cpp:
     11        (WebCore::FetchBodyOwner::stop):
     12        Nullify the source before we error it.
     13
    1142021-05-05  Sam Weinig  <weinig@apple.com>
    215
  • trunk/Source/WebCore/Modules/fetch/FetchBodyOwner.cpp

    r266168 r277028  
    5757void FetchBodyOwner::stop()
    5858{
     59    m_readableStreamSource = nullptr;
    5960    if (m_body)
    6061        m_body->cleanConsumer();
Note: See TracChangeset for help on using the changeset viewer.