Closed Bug 1614956 Opened 5 years ago Closed 5 years ago

Wrong aForceStripOA parameter passed to GetKeyForOrigin() inside nsPermissionManager::GetPermissionsWithKey()

Categories

(Core :: Permission Manager, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla75
Tracking Status
firefox-esr68 --- unaffected
firefox73 --- unaffected
firefox74 --- wontfix
firefox75 --- fixed

People

(Reporter: ehsan.akhgari, Assigned: emz)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

See the code. aPermissionKey is not a permission type, so it's not useful to pass it to IsOAForceStripPermission(), the result will always be false.

This code is used in pair with this one so I think the right thing to do here is to just pass false unconditionally (perhaps with a comment around both...).

Paul, would you like to take this?

Flags: needinfo?
Flags: needinfo? → needinfo?(pbz)

I'll have a look. Thanks!

Assignee: nobody → pbz
Status: NEW → ASSIGNED
Flags: needinfo?(pbz)
Pushed by pzuhlcke@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9fab6a1ca1a6 Removed invalid IsOAForceStripPermission call in nsPermissionManager. r=Ehsan
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla75

Is there a user-facing issue from this bug which would justify Beta uplift consideration or can this fix ride 75 to release?

Flags: needinfo?(pbz)

This is not user-facing and doesn't need an uplift. Thanks!

Flags: needinfo?(pbz)
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: