Closed Bug 664254 Opened 13 years ago Closed 13 years ago

Make nsIDOMFile subclasses immutable when shared across threads.

Categories

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

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla8

People

(Reporter: wchen, Assigned: khuey)

Details

Attachments

(1 file)

nsIDOMFiles should be immutable so that they may safely passed to web workers.
Assignee: nobody → khuey
Component: General → DOM
Product: Firefox → Core
QA Contact: general → general
Summary: Make nsIDOMFile subclasses immutable. → Make nsIDOMFile subclasses immutable when shared across threads.
Comment on attachment 545408 [details] [diff] [review]
Make DOM Files implement nsIMutable so they can be made immutable for sharing across threads.

Review of attachment 545408 [details] [diff] [review]:
-----------------------------------------------------------------

Also make sure that nsDOMFileFile::Initialize throws if called on an immutable file.
Attachment #545408 - Flags: review?(jonas) → review+
http://hg.mozilla.org/mozilla-central/rev/398402eabdb0
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla8
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: