Closed Bug 1858083 Opened 1 year ago Closed 1 year ago

avoid needless addref in Document::GetBrowsingContext

Categories

(Core :: DOM: Core & HTML, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
120 Branch
Tracking Status
firefox120 --- fixed

People

(Reporter: tnikkel, Assigned: tnikkel)

References

Details

Attachments

(1 file)

No description provided.

It's a weak pointer but presumably can only die based on main thread actions. The GetBrowsingContext getter is just a plain getter, returning a pointer.

Although small this does show up in the profile in bug 1857094. It's called from some common layout/painting functions.

Pushed by tnikkel@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e4751df31e74 Avoid needless addref in Document::GetBrowsingContext. r=smaug
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 120 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: