Closed Bug 1030481 Opened 10 years ago Closed 4 years ago

Remove the file/blob mImmutable member

Categories

(Core :: DOM: Core & HTML, defect, P5)

x86
macOS
defect

Tracking

()

RESOLVED FIXED
mozilla74
Tracking Status
firefox74 --- fixed

People

(Reporter: ehsan.akhgari, Assigned: baku)

References

Details

Attachments

(1 file, 1 obsolete file)

Ben says that mImmutable is no longer useful.
Depends on: 876683
For the sicking told me so.
Well.. I'm not sure. I thought the only reason we had that was to enable lazily getting the size. But it sounded like the only code path that I knew of where we would need to lazily get the size now eagerly gets the size.

Code inspection should tell you if mImmutable is ever used for anything useful, no?
<http://mxr.mozilla.org/mozilla-central/source/content/base/src/nsDOMFile.cpp#715> seems to be the only place where this does something useful.  There's also a bunch of places where we assert its value.
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046

Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
Component: DOM → DOM: Core & HTML

nsIMutable is used only by DOM Blob/File. But Blobs are immutable by spec.
FileBlobImpl has a couple of lazy member values, but those are called when
the object is cloned in order to be sent to a different thread/process.

Assignee: nobody → amarchesini
Status: NEW → ASSIGNED

nsIMutable is used only by DOM Blob/File. But Blobs are immutable by spec.
FileBlobImpl has a couple of lazy member values, but those are called when
the object is cloned in order to be sent to a different thread/process.

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla74
Attachment #9118711 - Attachment is obsolete: true
Flags: needinfo?(amarchesini)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: