Closed Bug 1979965 Opened 1 year ago Closed 3 months ago

Update PreserveWrapperCallback signature to reflect the present reality that it's infallible

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

RESOLVED FIXED
154 Branch
Tracking Status
firefox154 --- fixed

People

(Reporter: alexical, Assigned: jandem)

References

(Blocks 1 open bug)

Details

Attachments

(4 files)

Currently the callback signature has a bool return value suggesting it can fail, but in practice it cannot, so we should just clean that up.

Severity: -- → N/A
Priority: -- → P3
No longer blocks: 1974519
See Also: → 1974519
Blocks: sm-api

This change would have marginally simplified my code review experience for bug 2038575.

Stealing because this also comes up in code audits sometimes.

Assignee: dothayer → jdemooij

We already asserted this; the patch just makes it explicit.

Pushed by jdemooij@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/343c90b97936 https://hg.mozilla.org/integration/autoland/rev/825bf4f2cc1e part 1 - Make dom::TryPreserveWrapper infallible. r=spidermonkey-reviewers,dom-worker-reviewers,mccr8,mgaudet,asuth https://github.com/mozilla-firefox/firefox/commit/3becbccee3d6 https://hg.mozilla.org/integration/autoland/rev/7c952600ea00 part 2 - Make PreserveWrapperCallback infallible. r=spidermonkey-reviewers,dom-worker-reviewers,mccr8,mgaudet,asuth https://github.com/mozilla-firefox/firefox/commit/58c8e6098067 https://hg.mozilla.org/integration/autoland/rev/72881acbe1a5 part 3 - Inline WeakRefObject::preserveDOMWrapper and FinalizationRegistryObject::preserveDOMWrapper. r=spidermonkey-reviewers,mgaudet https://github.com/mozilla-firefox/firefox/commit/8a335fb54823 https://hg.mozilla.org/integration/autoland/rev/6cf788dbc3c3 part 4 - Assert pending wrapper preservations are never CCWs. r=spidermonkey-reviewers,mgaudet
QA Whiteboard: [qa-triage-done-c155/b154]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: