Bug 1518991 - Make nsIPrincipal URI getter infallible; r=bholley

nsIPrincipal::GetURI returns NS_OK for all implementations. Make it
infallible so we can clean up status checks in C++ code that uses principals.

Differential Revision: https://phabricator.services.mozilla.com/D16145

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Kyle Machulis 2019-01-10 05:44:33 +00:00
parent 8c733563b0
commit d9173f8644

View File

@ -75,7 +75,7 @@ interface nsIPrincipal : nsISerializable
* The codebase URI to which this principal pertains. This is
* generally the document URI.
*/
readonly attribute nsIURI URI;
[infallible] readonly attribute nsIURI URI;
/**
* The domain URI to which this principal pertains.