Closed
Bug 1432519
Opened 6 years ago
Closed 6 years ago
Make nsIURL attributes readonly
Categories
(Core :: Networking, enhancement, P3)
Core
Networking
Tracking
()
RESOLVED
FIXED
mozilla60
Tracking | Status | |
---|---|---|
firefox60 | --- | fixed |
People
(Reporter: valentin, Assigned: valentin)
References
Details
(Whiteboard: [necko-triaged])
Attachments
(1 file)
No description provided.
Assignee | ||
Comment 1•6 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=74e9afa76847a7193ba31c4b25ec5e11718bc570
Comment hidden (mozreview-request) |
Assignee | ||
Comment 3•6 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=5064b9aa1377270124c1d0c896f7c0fe68f8e192
Assignee | ||
Comment 4•6 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=f4c46be86b276311c97be2b1d79afa3ed5ad3b46
Assignee | ||
Comment 5•6 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=7915924e1b19c4f9b0ba4371cbf17fd99a0e8fa0
Comment 6•6 years ago
|
||
mozreview-review |
Comment on attachment 8944773 [details] Bug 1432519 - Make nsIURL attributes readonly https://reviewboard.mozilla.org/r/214936/#review220750 ::: commit-message-676a8:1 (Diff revision 1) > +Bug 1432519 - Make nsIURI attributes readonly Nit: nsIURL
Comment 7•6 years ago
|
||
mozreview-review |
Comment on attachment 8944773 [details] Bug 1432519 - Make nsIURL attributes readonly https://reviewboard.mozilla.org/r/214936/#review220886 ::: commit-message-676a8:1 (Diff revision 1) > +Bug 1432519 - Make nsIURI attributes readonly actually quite important nit!! :) ::: netwerk/base/nsIURL.idl:65 (Diff revision 1) > * Some characters may be escaped. > */ > - attribute AUTF8String fileName; > + readonly attribute AUTF8String fileName; > > + [noscript,notxpcom,nostdcall] > + nsresult setFileNameInternal(in ACString aFileName); wasn't the whole purpose of this enterprise to remove public setters on all UR* interfaces?
Assignee | ||
Comment 8•6 years ago
|
||
(In reply to Honza Bambas (:mayhemer) from comment #7) > ::: netwerk/base/nsIURL.idl:65 > > + [noscript,notxpcom,nostdcall] > > + nsresult setFileNameInternal(in ACString aFileName); > > wasn't the whole purpose of this enterprise to remove public setters on all > UR* interfaces? You're absolutely right. Initially I thought we might need these to be on the URI to use in GTests. We actually don't need them. I'll make them private to the implementations.
Comment hidden (mozreview-request) |
Assignee | ||
Comment 10•6 years ago
|
||
Ignore the nsIFileURL changes in the latest diff. I rebased this patch on top of bug 1432602.
Comment 11•6 years ago
|
||
mozreview-review |
Comment on attachment 8944773 [details] Bug 1432519 - Make nsIURL attributes readonly https://reviewboard.mozilla.org/r/214936/#review222038 ::: netwerk/base/nsStandardURL.h:457 (Diff revisions 1 - 2) > + > + nsresult rv = uri->SetFile(aFile); > + if (NS_FAILED(rv)) { > + return rv; > + } > + BaseURIMutator<T>::mURI = uri; nit: swap?
Attachment #8944773 -
Flags: review?(honzab.moz) → review+
Comment hidden (mozreview-request) |
Assignee | ||
Comment 13•6 years ago
|
||
I plan to land this bug next week. mailnews needs to implement changes similar to bug 1432320 by then.
Flags: needinfo?(jorgk)
Comment 14•6 years ago
|
||
Thanks, I filed bug 1434687 for that. If I find time, I might prepare a patch for C-C by applying the patch here locally. Or I'll just deal with the bustage which I don't expect to be large. I haven't taken a good look at how much JS code is affected.
Flags: needinfo?(jorgk)
Updated•6 years ago
|
Priority: -- → P3
Comment 15•6 years ago
|
||
Pushed by valentin.gosu@gmail.com: https://hg.mozilla.org/integration/autoland/rev/178575b934ea Make nsIURL attributes readonly r=mayhemer
Comment 16•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/178575b934ea
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
You need to log in
before you can comment on or make changes to this bug.
Description
•