Closed Bug 1937458 Opened 2 months ago Closed 2 months ago

Only instantiate Some(nsAutoString) in Worker::Constructor when necessary

Categories

(Core :: DOM: Security, task)

task

Tracking

()

RESOLVED FIXED
135 Branch
Tracking Status
firefox135 --- fixed

People

(Reporter: fredw, Assigned: fredw)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Follow-up of bug 1936219. The changes I made to fix the initial back out were a bit too much. We only need Some(nsAutoString) when calling the "get trusted type compliant string" function.

Summary: Worker::Constructor: do not create Some(nsAutoString) when trusted types conversion is unnecessary → Only instantiate Some(nsAutoString) in Worker::Constructor when necessary

We only need Some(nsAutoString) when calling the "get trusted type
compliant string" function, remove it from the branch added for the
test case of bug 1936219.

Pushed by fwang@igalia.com: https://hg.mozilla.org/integration/autoland/rev/7604868d8e44 Only instantiate Some(nsAutoString) in Worker::Constructor when necessary. r=smaug
Status: NEW → RESOLVED
Closed: 2 months ago
: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 135 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: