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

Changeset 284694 in webkit


Ignore:
Timestamp:
Oct 22, 2021, 11:03:34 AM (5 years ago)
Author:
commit-queue@webkit.org
Message:

Remove release assertion in MediaResourceClient::responseReceived
https://bugs.webkit.org/show_bug.cgi?id=232121

Patch by Alex Christensen <achristensen@webkit.org> on 2021-10-22
Reviewed by David Kilzer.

I tried and was unable to reproduce this, even with multipart responses which can call didReceiveResponse multiple times in the same load.
In any case, it's clear where the crash is and that this assertion can be hit. Not continuing with the response is better than crashing.
Keep the debug assertion because if it is hit, we want to notice.

  • platform/network/cocoa/RangeResponseGenerator.mm:
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r284693 r284694  
     12021-10-22  Alex Christensen  <achristensen@webkit.org>
     2
     3        Remove release assertion in MediaResourceClient::responseReceived
     4        https://bugs.webkit.org/show_bug.cgi?id=232121
     5
     6        Reviewed by David Kilzer.
     7
     8        I tried and was unable to reproduce this, even with multipart responses which can call didReceiveResponse multiple times in the same load.
     9        In any case, it's clear where the crash is and that this assertion can be hit.  Not continuing with the response is better than crashing.
     10        Keep the debug assertion because if it is hit, we want to notice.
     11
     12        * platform/network/cocoa/RangeResponseGenerator.mm:
     13
    1142021-10-22  Antti Koivisto  <antti@apple.com>
    215
  • trunk/Source/WebCore/platform/network/cocoa/RangeResponseGenerator.mm

    r284093 r284694  
    214214    void responseReceived(PlatformMediaResource&, const ResourceResponse&, CompletionHandler<void(ShouldContinuePolicyCheck)>&& completionHandler) final
    215215    {
    216         RELEASE_ASSERT_NOT_REACHED();
     216        ASSERT_NOT_REACHED();
    217217        completionHandler(ShouldContinuePolicyCheck::No);
    218218    }
Note: See TracChangeset for help on using the changeset viewer.