Permission manager does not update changes in expiry correctly

NEW
Unassigned

Status

()

Core
Networking: Cookies
P5
normal
8 years ago
4 months ago

People

(Reporter: neil@parkwaycc.co.uk, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [necko-would-take])

(Reporter)

Description

8 years ago
If you try to add a permanent permission to replace an existing expiring permission, the permission manager does not update its internal state correctly. Then if due to a bug in your permission observer you try to readd the permission, the permission manager sees this as a change, and sends out another notification, and your permission observer tries to readd the permission, and so on until you run out of native stack.

The current version of KaiRo's data manager suffers from this bug because updating its UI causes it to set a permanent permission for the change that it just observed. (If all permissions are permanent this is OK because the permission manager realises that nothing changed and ignores it.)
Whiteboard: [necko-would-take]
Keywords: crash
You need to log in before you can comment on or make changes to this bug.