Closed Bug 1555876 Opened 5 years ago Closed 5 years ago

IDBFactory::CreateForMainThreadJS should use storage principal

Categories

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

task
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla69
Tracking Status
firefox69 --- fixed

People

(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

https://searchfox.org/mozilla-central/rev/7556a400affa9eb99e522d2d17c40689fa23a729/dom/indexedDB/IDBFactory.cpp#170

I don't believe this matters in practice currently for the current consumers (we use this function to attach the IDB factory to the Sandbox and XPCOM Components contexts). But it may matter some day for another consumer...

Bugbug thinks this bug is a task, but please change it back in case of error.

Type: defect → task
Pushed by eakhgari@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/17a2436c527e Use storage principal in IDBFactory::CreateForMainThreadJS(); r=baku
Attachment #9068889 - Attachment description: Bug 1555876 - Use storage principal in IDBFactory::CreateForMainThreadJS(); → Bug 1555876 - Part 2: Use storage principal in IDBFactory::CreateForMainThreadJS();
Assignee: nobody → ehsan
Flags: needinfo?(ehsan)
Pushed by eakhgari@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a17c1ce42987 Part 1: Return the main principal from all overrides of nsIScriptObjectPrincipal::GetEffectiveStoragePrincipal(); r=baku https://hg.mozilla.org/integration/autoland/rev/f7ebc8a45ac8 Part 2: Use storage principal in IDBFactory::CreateForMainThreadJS(); r=baku
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla69
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: