Make sure LocalStorageManager::PrecacheStorage() passes in the real storage principal
Categories
(Core :: Privacy: Anti-Tracking, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox69 | --- | fixed |
People
(Reporter: ehsan.akhgari, Assigned: nhnt11)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
LocalStorageManager::PrecacheStorage() currently passes in aPrincipal for the storage principal argument to GetStorageInternal(). This means that if the storage object gets preloaded it won't get partitioned in the third-party context.
(For background on what storage principal means, please see https://groups.google.com/forum/#!topic/mozilla.dev.platform/b8A8LrQGOYs)
Thankfully the only caller of this function has the storage principal readily available just by calling GetEffectiveStoragePrincipal(), so it should be quite straightforward to fix this by adding a aStoragePrincipal argument to this method similar to many others in this file.
Nihanth, do you feel like taking a stab at this? :-)
| Assignee | ||
Comment 1•6 years ago
|
||
I'm away until Monday June 3, but happy to take a look when I'm back. I'll leave the needinfo flag to remind myself.
| Reporter | ||
Comment 2•6 years ago
|
||
No problem, there is no rush! Thanks.
| Reporter | ||
Comment 3•6 years ago
•
|
||
Looks like this is needed for bug 1556093 too... :-/
| Reporter | ||
Updated•6 years ago
|
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 4•6 years ago
|
||
Depends on D32916
Comment 6•6 years ago
|
||
| bugherder | ||
Description
•