Closed
Bug 661662
Opened 13 years ago
Closed 13 years ago
Speed up the population of about:permissions' sites list
Categories
(Firefox :: Settings UI, defect)
Firefox
Settings UI
Tracking
()
RESOLVED
FIXED
Firefox 7
People
(Reporter: dao, Assigned: dao)
References
Details
(Keywords: perf)
Attachments
(1 file)
3.25 KB,
patch
|
Margaret
:
review+
|
Details | Diff | Splinter Review |
I have two profiles where I get a slow script warning when opening about:permissions. The initialization is still way too slow with this patch, but at least the slow script warning goes away for me.
Attachment #536967 -
Flags: review?(margaret.leibovic)
Comment 1•13 years ago
|
||
Comment on attachment 536967 [details] [diff] [review] patch This looks good. I didn't notice any slowness when testing, even on my pretty old default profile. Did you try commenting out the call to getSitesFromPlaces? I would guess that's the slowest part. Marco had an idea for a less precise but faster query we could use. It's pretty arbitrary that we're choosing to include those top-frecency sites, so maybe we can get rid of that if we come up with a different way to choose which sites we want to show.
Attachment #536967 -
Flags: review?(margaret.leibovic) → review+
Comment 2•13 years ago
|
||
I don't think getSitesFromPlaces is the bottleneck, since it has a limit on the number of items it will add, and the query should be pretty fast. The slowness probably comes from just having to build a very large list, if you have many passwords/exceptions.
Assignee | ||
Comment 3•13 years ago
|
||
The unresponsive script warning points to this line:
let (enumerator = Services.perms.enumerator) {
>>> while (enumerator.hasMoreElements()) {
let permission = enumerator.getNext().QueryInterface(Ci.nsIPermission);
// Only include sites with exceptions set for supported permission types.
if (this._supportedPermissions.indexOf(permission.type) != -1) {
this.addHost(permission.host);
}
}
}
Assignee | ||
Comment 4•13 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/328bc4f3183a
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 7
Comment 5•13 years ago
|
||
Mozilla/5.0 (X11; Linux i686; rv:7.0a1) Gecko/20110628 Firefox/7.0a1 Dao, do you have some steps with which you reproduced the issue - I need them in order to verify whether bug was fixed or not. Thanks!
Assignee | ||
Comment 6•13 years ago
|
||
There's nothing to really verify here, since this is still slow. See bug 665527.
You need to log in
before you can comment on or make changes to this bug.
Description
•