Closed Bug 399185 Opened 17 years ago Closed 17 years ago

[FIX]Mark image URIs as immutable

Categories

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

defect

Tracking

()

RESOLVED FIXED
mozilla1.9beta1

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

Details

Attachments

(1 file, 1 obsolete file)

Attached patch Fix (obsolete) — Splinter Review
This should help with bug 389188, since the principal won't need to clone the URI. Plus, we don't want these URIs changing in any case.
Attachment #284164 - Flags: superreview?(cbiesinger)
Attachment #284164 - Flags: review?(pavlov)
Comment on attachment 284164 [details] [diff] [review] Fix hrm, I'm not sure that you should set the caller-provided URI to immutable... perhaps the caller should do that?
I suppose I could push this out into the main callers (image loading content and style system). Would you prefer that? The more I think about it, the more I wish that all our URI objects were always immutable, with setters returning a modified clone. :( Maybe for mozilla2.
Component: ImageLib → DOM
QA Contact: imagelib → general
The callers of this method are style system (which is fine with making the URI immutable), some callers that create the URI just before passing it in, and nsImageLoadingContent (which is also fine with the URI being immutable).
Assignee: nobody → bzbarsky
Attachment #284164 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #284862 - Flags: superreview?(cbiesinger)
Attachment #284862 - Flags: review?(jst)
Attachment #284164 - Flags: superreview?(cbiesinger)
Attachment #284164 - Flags: review?(pavlov)
Priority: -- → P2
this blocks a blocker.
Flags: blocking1.9+
Attachment #284862 - Flags: review?(jst) → review+
Attachment #284862 - Flags: superreview?(cbiesinger) → superreview+
Attachment #284862 - Flags: approval1.9?
Comment on attachment 284862 [details] [diff] [review] Do it in the caller a=19drivers for M9
Attachment #284862 - Flags: approvalM9+
Attachment #284862 - Flags: approval1.9?
Attachment #284862 - Flags: approval1.9+
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Target Milestone: mozilla1.9 M10 → mozilla1.9 M9
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: