Closed
Bug 1431760
Opened 7 years ago
Closed 7 years ago
Add new mutator interface that allows to set the principal and blob impl on a nsHostObjectURI mutator
Categories
(Core :: Networking, enhancement)
Core
Networking
Tracking
()
RESOLVED
FIXED
mozilla60
Tracking | Status | |
---|---|---|
firefox60 | --- | fixed |
People
(Reporter: valentin, Assigned: valentin)
References
Details
(Whiteboard: [necko-triaged])
Attachments
(1 file)
> > - RefPtr<nsHostObjectURI> uri;
> > + nsCOMPtr<nsIURI> uri;
> > + rv = NS_MutateURI(new nsHostObjectURI::Mutator())
>
> would it make sense and not be to much work to pass info->mPrincipal,
> info->mBlobImpl as args to this specific Mutator? or have setter for it on
> the mutator?
I'll add a new mutator interface that allows to set these attributes on the newly constructed URI.
Comment hidden (mozreview-request) |
Assignee | ||
Updated•7 years ago
|
Attachment #8944123 -
Flags: review?(honzab.moz)
Comment hidden (mozreview-request) |
Comment 3•7 years ago
|
||
mozreview-review |
Comment on attachment 8944123 [details]
Bug 1431760 - Add NS_MutateURI.Apply that allows calling methods declared in other interfaces implemented by NS_MutateURI::mMutator
https://reviewboard.mozilla.org/r/214450/#review220208
::: netwerk/base/nsIURIWithBlobImpl.idl:38
(Diff revision 2)
> +interface nsIBlobURIMutator : nsISupports
> +{
> + /**
> + * Associates a blobImpl to the mutated URI.
> + */
> + [must_use, noscript] nsIURIMutator setBlobImpl(in BlobImplPtr blobImpl);
nit: as this is noscript, why do we have to return nsIRUIMutator? would save the non-obvious nullptr last arg when calling Apply via the NS_MutateURI helper
maybe all of noscript nsIURI*Mutator methods should return void for simplicity? But it will not eb consistent... hard to say.
Attachment #8944123 -
Flags: review?(honzab.moz) → review+
Comment hidden (mozreview-request) |
Pushed by valentin.gosu@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/d89605a28513
Add NS_MutateURI.Apply that allows calling methods declared in other interfaces implemented by NS_MutateURI::mMutator r=mayhemer
Comment 6•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox60:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
Updated•7 years ago
|
status-firefox59:
affected → ---
You need to log in
before you can comment on or make changes to this bug.
Description
•