Closed Bug 1613349 Opened 6 years ago Closed 6 years ago

Make nsIFrame::RemoveProperty `MOZ_MUST_USE`.

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla74
Tracking Status
firefox74 --- fixed

People

(Reporter: emilio, Assigned: emilio)

Details

Attachments

(6 files, 1 obsolete file)

https://phabricator.services.mozilla.com/D61142 introduced a leak because it used RemoveProperty rather than DeleteProperty on a deletable property and ignored the result.

That shouldn't happen.

For consistency with the previous change for layout.

Depends on D61755

Attachment #9124461 - Attachment is obsolete: true

As it doesn't necessarily call delete and that may be confusing.

Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/310ae5b1a209 Rename nsIFrame::RemoveProperty to nsIFrame::TakeProperty. r=dholbert https://hg.mozilla.org/integration/autoland/rev/5146f19f9e31 Rename nsINode::UnsetProperty to nsINode::TakeProperty. r=smaug https://hg.mozilla.org/integration/autoland/rev/6eb761359b54 Make nsIFrame::TakeProperty MOZ_MUST_USE. r=dholbert https://hg.mozilla.org/integration/autoland/rev/1e2ba9e0ea1a Rename nsIFrame::DeleteProperty to RemoveProperty. r=dholbert https://hg.mozilla.org/integration/autoland/rev/3cfff4ea7fcb Rename nsINode::DeleteProperty to RemoveProperty. r=smaug
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: