nsRFPService::IsRFPEnabledFor should be more efficient with RPF lite enabled
Categories
(Core :: Security, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox115 | --- | fixed |
People
(Reporter: tschuster, Assigned: tschuster)
References
(Blocks 1 open bug)
Details
Attachments
(3 files)
Right now we have some "efficiency checks" that just call nsContentUtils::ShouldResistFingerprinting
without any context. With RFP lite enabled that code will involves three array searches. While all of these arrays are going to be smallish, we should optimize this to be constant time.
Apart from that we should consider if all those efficiency checks are actually faster than checking the cached results on Document.
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 1•2 years ago
|
||
Assignee | ||
Comment 2•2 years ago
|
||
Depends on D176297
Updated•2 years ago
|
Assignee | ||
Comment 3•2 years ago
|
||
The boolean is used to initialize WorkerGlobalScopeBase::mShouldResistFingerprinting which is similar
in its behavior to the precomputed mShouldResistFingerprinting in Document.
Depends on D176298
Comment 5•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/c366df5cc857
https://hg.mozilla.org/mozilla-central/rev/47ed8ace33b0
https://hg.mozilla.org/mozilla-central/rev/f4fc1d8e910f
Description
•