Closed
Bug 399185
Opened 17 years ago
Closed 17 years ago
[FIX]Mark image URIs as immutable
Categories
(Core :: DOM: Core & HTML, defect, P2)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla1.9beta1
People
(Reporter: bzbarsky, Assigned: bzbarsky)
References
Details
Attachments
(1 file, 1 obsolete file)
2.49 KB,
patch
|
jst
:
review+
Biesinger
:
superreview+
vlad
:
approvalM9+
vlad
:
approval1.9+
|
Details | Diff | 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 1•17 years ago
|
||
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?
![]() |
Assignee | |
Comment 2•17 years ago
|
||
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.
Comment 3•17 years ago
|
||
Yeah, I'd prefer that.
![]() |
Assignee | |
Updated•17 years ago
|
Component: ImageLib → DOM
QA Contact: imagelib → general
![]() |
Assignee | |
Comment 4•17 years ago
|
||
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)
![]() |
Assignee | |
Updated•17 years ago
|
Priority: -- → P2
Updated•17 years ago
|
Attachment #284862 -
Flags: review?(jst) → review+
Updated•17 years ago
|
Attachment #284862 -
Flags: superreview?(cbiesinger) → superreview+
![]() |
Assignee | |
Updated•17 years ago
|
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+
![]() |
Assignee | |
Comment 7•17 years ago
|
||
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Target Milestone: mozilla1.9 M10 → mozilla1.9 M9
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•