Open Bug 1865119 Opened 11 months ago Updated 10 months ago

nsIPrincipal::EqualsURI name misleading. Should be called nsIPrincipal::EqualsURIExceptRef

Categories

(Core :: Security: CAPS, task)

task

Tracking

()

People

(Reporter: manuel, Unassigned)

References

Details

Misleading, because there exists a nsIURI::Equals and nsIURI::EqualsExceptRef function.

The nsIURI::EqualsExceptRef function is called in BasePrincipal: /caps/BasePrincipal.cpp#587,594

Neither the function nor the comment hints to that: /caps/nsIPrincipal.idl#90-95

/*
 * Returns whether the Principals URI is equal to the other URI
 *
 * May be called from any thread.
 */
boolean equalsURI(in nsIURI aOtherURI);
See Also: → 1750706

I think just adding a comment to the IDL stating that the ref doesn't affect equality with the principal should be enough.

You need to log in before you can comment on or make changes to this bug.