Closed Bug 1734174 Opened 3 years ago Closed 2 years ago

Verify (and remove unnecessary) implicitJSContext usage in Streams code

Categories

(Core :: DOM: Streams, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
99 Branch
Tracking Status
firefox99 --- fixed

People

(Reporter: mgaudet, Assigned: bthrall)

References

(Blocks 1 open bug)

Details

Attachments

(7 files)

A number of ReadableStreams classes request implicitJSContext in Bindings.conf. This may be un-necessary, as most of the use of that JSContext is for rooting. If that is the only use of a JSContext, then rooting can instead be provided using JS::RootingContext* rcx = RootingCx().

Blocks: dom-streams
Blocks: 1755390
No longer blocks: dom-streams
Assignee: nobody → bthrall
Status: NEW → ASSIGNED

A lot of the ReadableStream functions use JSContext for a mix of rooting and script-running, that will have to wait for Bug 1756661, but there are a couple places we could switch over to JS::RootingContext.

Pushed by mgaudet@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/86aed4d08255
Remove unneeded JSContext parameter to ReadableStreamReaderGenericInitialize() r=mgaudet
https://hg.mozilla.org/integration/autoland/rev/fd428746ed38
Remove unneeded JSContext parameter from SetUpReadableStreamDefaultReader() r=mgaudet
https://hg.mozilla.org/integration/autoland/rev/eeb08511438b
Remove unneeded JSContext parameter from SetUpReadableStreamBYOBReader() r=mgaudet
https://hg.mozilla.org/integration/autoland/rev/f1ce60b1fd47
Remove unneeded JSContext parameter to AcquireReadableStreamBYOBReader() r=mgaudet
https://hg.mozilla.org/integration/autoland/rev/49b42a210fe4
Remove unneeded JSContext parameter from AcquireReadableStreamDefaultReader() r=mgaudet
https://hg.mozilla.org/integration/autoland/rev/9b89aba4d3ff
Remove unneeded implicitJSContext from ReadableStream::GetReader() r=mgaudet
https://hg.mozilla.org/integration/autoland/rev/0ae9df73405a
Remove unneeded JSContext from TeeState r=mgaudet
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: