From d9173f8644fe1daf30ee0185c91ecfb0e68c3dda Mon Sep 17 00:00:00 2001 From: Kyle Machulis Date: Thu, 10 Jan 2019 05:44:33 +0000 Subject: [PATCH] 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 --- caps/nsIPrincipal.idl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caps/nsIPrincipal.idl b/caps/nsIPrincipal.idl index 6eb9f7a6a00c..60eeed2758b8 100644 --- a/caps/nsIPrincipal.idl +++ b/caps/nsIPrincipal.idl @@ -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.