Closed Bug 1548580 Opened 5 years ago Closed 5 years ago

Remove a startup warning in PermissionManager

Categories

(Core :: Permission Manager, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: baku, Assigned: baku)

Details

Attachments

(1 file)

The following piece of code returns a warning on stderr during the startup:
https://searchfox.org/mozilla-central/rev/7944190ad1668a94223b950a19f1fffe8662d6b8/extensions/permissions/nsPermissionManager.cpp#1019-1026

This happens because NS_GetSpecialDirectory returns an error if called before 'profile-do-change' notification. Note that the opening of the database happens a bit after when the notification is received.

Pushed by amarchesini@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/dca62b7804bf
Remove a startup warning in PermissionManager, r=Ehsan
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: