Closed Bug 1555562 Opened 6 years ago Closed 6 years ago

Make sure LocalStorageManager::PrecacheStorage() passes in the real storage principal

Categories

(Core :: Privacy: Anti-Tracking, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla69
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? :-)

Flags: needinfo?(nhnt11)

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.

No problem, there is no rush! Thanks.

Looks like this is needed for bug 1556093 too... :-/

Blocks: 1545797
Blocks: 1556093
No longer blocks: 1545797
Assignee: nobody → nhnt11
Status: NEW → ASSIGNED
Flags: needinfo?(nhnt11)
Pushed by nhnt11@gmail.com: https://hg.mozilla.org/integration/autoland/rev/d39a023bdbb6 Make sure LocalStorageManager::PrecacheStorage() passes in the real storage principal. r=Ehsan
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla69
No longer blocks: 1557122
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: