Open Bug 1228131 Opened 9 years ago Updated 2 years ago

Remove mutator functions from nsIURI and derived interfaces

Categories

(Core :: Networking, defect, P3)

defect

Tracking

()

People

(Reporter: sicking, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [necko-backlog])

The fact that nsIURIs can be mutated makes them impossible to safely use on multiple threads. It also means that they are actually unsafe for a whole set of other things. Currently we mainly solve this by "being careful". So we should replace the various setters with createCloneWithDifferentX functions. I.e. replace the host setter with a createCloneWithDifferentHost(nsCAString& aHost) function (or with an appropriate name). We should probably do this as a two-step process where we first add the createClone functions, and then give addon authors a release or two to update their code, and then remove the setters.
Whiteboard: [necko-backlog]
Priority: -- → P1
Priority: P1 → P3
Severity: normal → S3

The bug assignee is inactive on Bugzilla, so the assignee is being reset.

Assignee: jonas → nobody
You need to log in before you can comment on or make changes to this bug.