Closed Bug 1803371 Opened 3 years ago Closed 3 years ago

Replace BodyStreamUnderlyingSourceAlgorithms::ErrorCallback with a destructor

Categories

(Core :: DOM: Networking, task, P2)

task

Tracking

()

RESOLVED FIXED
109 Branch
Tracking Status
firefox109 --- fixed

People

(Reporter: saschanaz, Assigned: saschanaz)

References

Details

(Whiteboard: [necko-triaged])

Attachments

(5 files)

Per the spec the proper way to release resources is through clearing algorithms, which corresponds to the destructor of BodyStreamUnderlyingSourceAlgorithms in our case.

ErrorCallback was a way to coexist with the old JS Streams implementation, and given that we removed the JS one, we should now be able to follow the spec.

(CC'ing people who may be interested in the Streams implementation given their recent relevant works)

Priority: -- → P2
Whiteboard: [necko-triaged]

ErrorCallback has surprisingly been broken as nothing currently set the algorithm with SetErrorAlgorithm. This patch removes the unused part, preparing another way in a child patch.

This is not used yet but is needed for OPFS file unlock.

Depends on D163692

Attachment #9306130 - Attachment description: Bug 1803371 - Remove UnderlyingSourceAlgorithmsBase::ErrorCallback r=smaug → Bug 1803371 - Part 4: Add UnderlyingSourceAlgorithmsBase::ReleaseObjects r=smaug
Pushed by krosylight@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b6999fbeaf9b Part 1: Remove redundant ReadableStream::mAlgorithms r=smaug https://hg.mozilla.org/integration/autoland/rev/8c94362f4f66 Part 2: Move Readable{ByteStream,StreamDefault}Controller::mAlgorithms to ReadableStreamController r=smaug https://hg.mozilla.org/integration/autoland/rev/ae3687095860 Part 3: Add UnderlyingSinkAlgorithmBase::ReleaseObjects r=smaug https://hg.mozilla.org/integration/autoland/rev/c36dd00b6a39 Part 4: Add UnderlyingSourceAlgorithmsBase::ReleaseObjects r=smaug https://hg.mozilla.org/integration/autoland/rev/6e823d91d73d Part 5: Fix static analysis warnings r=smaug
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: