Closed
Bug 599996
Opened 15 years ago
Closed 6 years ago
Permission manager's nsPermissionManager::Import should be removed
Categories
(Core :: Permission Manager, defect)
Tracking
()
RESOLVED
FIXED
mozilla71
Tracking | Status | |
---|---|---|
firefox71 | --- | fixed |
People
(Reporter: sdwilsh, Assigned: emmamalysz)
References
Details
(Keywords: main-thread-io, Whiteboard: [fxperf:p2])
Attachments
(1 file)
Maybe reading too, but we should stop writing to disk on the main thread at the very least.
Updated•11 years ago
|
Component: Networking: Cookies → Permission Manager
Updated•7 years ago
|
Whiteboard: [fxperf]
Comment 1•7 years ago
|
||
Doug, is there anything to do here besides bug 975996? If not, perhaps we should just dupe it to that bug given it's got an assignee and patches and so on?
Flags: needinfo?(dothayer)
Comment 2•7 years ago
|
||
Eh - the main thread IO in nsPermissionManager::Import() is at least nominally outside the scope of bug 975996, since it's IO on a different file, but that's the only thing I can see. So we could either rename this or rename bug 975996 to account for that.
Flags: needinfo?(dothayer)
Comment 3•7 years ago
|
||
Huh. Looks to me like we never have a 'hostperms.1' file anymore, except in reeeeeaaally old profiles. We switched away from it at least 4 years ago, some of it happened 11 years ago. If you've run any Firefox release in the last 4 years the file would have been removed anyway. We should just remove the import code. p2 because this is actually still going to cause main-thread IO on every startup because we always try to read this file (and then realize it doesn't exist, for pretty well all profiles) - even if it isn't much, that's 1 more cause of main-thread IO that we can pretty easily get rid of.
Summary: Permission manager should use async storage API for writing → Permission manager's nsPermissionManager::Import should be removed
Whiteboard: [fxperf] → [fxperf:p2]
Comment 4•7 years ago
|
||
MattN flagged up that we should check with the Android folks given bug 1072744. I don't see any hits for Android either, so I think we might still be OK, but we should check.
Comment 5•6 years ago
|
||
I suspect this is mostly leftover migration code. Hey snorp, when we run Gecko for the first time on Android, do you know if we rely on creating a hostperms.1 file or anything to pre-populate the permissions database?
If not, I think this is ripe for removal.
Flags: needinfo?(snorp)
Comment 6•6 years ago
|
||
Hey Emma,
If you're interested, this looks like a nice opportunity to get rid of some ancient main-thread IO in the start-up path. If you decide to take this, maybe check with snorp or liuche from the mobile team to make sure they're not somehow still using hostperms.1, and then we can probably drop this import check.
Assignee | ||
Comment 7•6 years ago
|
||
Pushed by mconley@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9f4f0c7453b9
remove nsPermissionManager::Import to avoid main-thread IO r=mconley
Yeah, we certainly don't need this for GeckoView, so it's fine to remove.
Flags: needinfo?(snorp)
Comment 10•6 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox71:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla71
Updated•6 years ago
|
Assignee: nobody → emalysz
You need to log in
before you can comment on or make changes to this bug.
Description
•