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)

enhancement
Not set
normal

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.
Attachment #8944123 - Flags: review?(honzab.moz)
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+
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
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
Depends on: 1435671
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: