Closed
Bug 1759579
Opened 4 years ago
Closed 4 years ago
Improve performance of cookiesAllowedForDomainOrSubDomain check in Sanitizer.jsm
Categories
(Toolkit :: Data Sanitization, enhancement, P2)
Toolkit
Data Sanitization
Tracking
()
RESOLVED
FIXED
101 Branch
| Tracking | Status | |
|---|---|---|
| firefox101 | --- | fixed |
People
(Reporter: emz, Assigned: h.sofie.p)
References
Details
Attachments
(2 files)
We're landing a simple performance optimization in Bug 1755190 by only querying "cookie" permissions from the permission manager, rather than all permissions.
This is bug is for optimizing this method further. Here are a few improvements we could make:
- Check if
cookiesAllowedForDomainOrSubDomaingets passed duplicate principals. We can already do deduplication in thePrincipalsCollector - Only get array of permissions via
Services.perms.getByTypePrefixonce from the permission manager and reuse the array in subsequent checks for the other principals. - (Refactor to iterative rather than recursive approach)
| Assignee | ||
Comment 1•4 years ago
|
||
Updated•4 years ago
|
Attachment #9268463 -
Attachment description: WIP: Bug 1759579 - Improve performace of (sub)domain cookie permission check in sanitizeOnShutdown. r=pbz! → Bug 1759579 - Improve performace of (sub)domain cookie permission check in sanitizeOnShutdown. r=pbz!
| Assignee | ||
Comment 2•4 years ago
|
||
Depends on D141496
Pushed by hpeuckmann@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a54f17b63dbc
Improve performace of (sub)domain cookie permission check in sanitizeOnShutdown. r=pbz
https://hg.mozilla.org/integration/autoland/rev/d60011405047
Remove recursion from (sub)domain cookie check. r=pbz
Comment 4•4 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/a54f17b63dbc
https://hg.mozilla.org/mozilla-central/rev/d60011405047
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
status-firefox101:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 101 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•