Closed
Bug 1434163
Opened 6 years ago
Closed 6 years ago
Make all nsIURI attributes readonly
Categories
(Core :: Networking, defect, P2)
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.
Comment hidden (mozreview-request) |
Assignee | ||
Comment 2•6 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=cab06713601d027d66d6ba0471c5f0ec907b655f
Comment 3•6 years ago
|
||
mozreview-review |
Comment on attachment 8946535 [details] Bug 1434163 - Make all nsIURI attributes readonly https://reviewboard.mozilla.org/r/216554/#review222432 ::: netwerk/base/nsIURI.idl:140 (Diff revision 1) > - attribute AUTF8String password; > + readonly attribute AUTF8String password; > > /** > * The host:port (or simply the host, if port == -1). > * > * If this attribute is set to a value that only has a host part, the port it can no longer be set, this comment should probably be on the mutator? ::: netwerk/test/gtest/TestStandardURL.cpp:13 (Diff revision 1) > #include "nsPrintfCString.h" > #include "nsComponentManagerUtils.h" > #include "nsIURIMutator.h" > +#define protected public > +#include "../../base/nsStandardURL.h" > +using mozilla::net::nsStandardURL; wow! that's a *HACK* :D you should at least #undef it :))) can't this somehow be achieved by deriving from nsStandardURL and 'public: using blabla' ? nsStandardURL is not marked final (but maybe should be....) other trick could be to have a predeclared friend class that will be implemented here OTOH, it's just a test and if it builds on all platforms then why not take this...
Attachment #8946535 -
Flags: review?(honzab.moz) → review+
Comment 4•6 years ago
|
||
Hmm, a few methods are become private here, like SetSpecInternal().
Assignee | ||
Comment 5•6 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=db520b4331efc66fe4529a95819df95dda248a61
Assignee | ||
Comment 6•6 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=a1dda0852277b01e209f47f354835bbaa6cb4145
Assignee | ||
Comment 7•6 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=eeb8c83dc5738e3a9d302e677d7c1ff6d75c9fc1
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 11•6 years ago
|
||
Any ETA for landing this?
Assignee | ||
Comment 12•6 years ago
|
||
I was thinking of landing it today or tomorrow, after a final try run.
Comment 13•6 years ago
|
||
Pushed by valentin.gosu@gmail.com: https://hg.mozilla.org/integration/autoland/rev/74fc20523198 Make all nsIURI attributes readonly r=mayhemer
Comment 14•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/74fc20523198
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
Comment 15•6 years ago
|
||
We were sort of hoping this would have qualified as a "risky patch or a large patch" that would be subject to the March 1 code freeze for Firefox 60 that was announced on m.d.platform. I guess not :(
Comment 16•6 years ago
|
||
The risky one was bug 1433958 which landed on 27th Feb. ;-)
You need to log in
before you can comment on or make changes to this bug.
Description
•