Closed Bug 1705034 Opened 5 years ago Closed 5 years ago

Update EMECleaner to support clearing partitioned storage

Categories

(Toolkit :: Data Sanitization, task)

task

Tracking

()

RESOLVED FIXED
91 Branch
Tracking Status
firefox91 --- fixed

People

(Reporter: emz, Assigned: vringar)

References

Details

Attachments

(1 file)

Assignee: nobody → szabka
Status: NEW → ASSIGNED

Writing down my thoughts for further reference:

  1. The module has a three step dance when forgetting a site
    1. GeckoMediaPluginServiceParent::ForgetThisSite
    2. GeckoMediaPluginServiceParent::ForgetThisSiteNative
    3. GeckoMediaPluginServiceParent::ForgetThisSiteOnGMPThread
  2. The actual matching against the OriginAttributesPattern and the site happens in MatchOrigin
  3. Since all work seems to happen on the GMPThread it seems unwise to just abuse getStorageDir

My conclusion:

We should perform the same three step dance and define our own MatchBaseDomain filter function that checks for a given base domain if either the site is a subdomain of the base domain or if the originAttributes base domain is the same as our base domain.

Attachment #9224349 - Attachment description: Bug 1705034 - Implemented ForgetThisBaseDomain in GMPServiceParent. r=pbz → Bug 1705034 - Implemented ForgetThisBaseDomain in GMPServiceParent. r=bryce
Pushed by pzuhlcke@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0bf78f953aac Implemented ForgetThisBaseDomain in GMPServiceParent. r=pbz,bryce

Okay, creating the test directory on the GMP thread failed, because you can't call dirsvc::get on non-main threads.
That's why I moved the TestMatchBaseDomain tests out of the CDMStorageTest and instead have them be free standing functions running on the main thread.
With these modifications they are passing on my machine again and this try run is currently running all GTests to ensure they also pass on other architectures.
Once they have passed the patch is ready to be relanded.

Flags: needinfo?(szabka)
Pushed by pzuhlcke@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/98a3f624dd08 Implemented ForgetThisBaseDomain in GMPServiceParent. r=pbz,bryce
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 91 Branch
Depends on: 1719717
Regressions: 1719717
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: