Closed Bug 1706593 Opened 3 years ago Closed 3 years ago

nsIPrincipal and nsIURI have differently-cased `prePath` idl members which causes bugs

Categories

(Core :: DOM: Security, defect)

defect

Tracking

()

RESOLVED FIXED
90 Branch
Tracking Status
firefox90 --- fixed

People

(Reporter: Gijs, Assigned: ckerschb)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [domsecurity-active])

Attachments

(1 file)

With the effort to stop people accessing nsIPrincipal::URI, a lot of properties were put on nsIPrincipal instead. The prePath URI property is now prepath (note: all-lowercase) on nsIPrincipal. This is confusing. It should match the capitalization of the URI property.

Basti, any chance you could fix that? Should be an easy fix.

Flags: needinfo?(sstreich)

Basti, I am assigning to you - should be an easy fix - thank you!

Assignee: nobody → sstreich
Status: NEW → ASSIGNED
Whiteboard: [domsecurity-active]

There appear to be two code uses of this already that will have to be fixed also (plus tests):
https://searchfox.org/mozilla-central/search?q=prepath&path=&case=true&regexp=false

(could be more, that was just a quick search)

Let me iron that out real quick ...

Assignee: sstreich → ckerschb
Flags: needinfo?(sstreich)
Regressed by: 1608862
No longer regressed by: 1655945
Has Regression Range: --- → yes
Pushed by mozilla@christophkerschbaumer.com:
https://hg.mozilla.org/integration/autoland/rev/293a97df5df8
Update prePath to camel case in nsIPrincipal.idl r=Gijs
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch

Christoph: just to clarify, I checked and this doesn't in fact help with bug 1707208 :-( , so you can avoid spending time on getting this uplifted to 89. :-)

(In reply to :Gijs (he/him) from comment #8)

Christoph: just to clarify, I checked and this doesn't in fact help with bug 1707208 :-( , so you can avoid spending time on getting this uplifted to 89. :-)

Arh, that's unfortunate - thanks for checking though!

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

Attachment

General

Created:
Updated:
Size: