mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 13:57:32 +00:00

Some quota clients currently use the BaseVFS (instead of QuotaVFS) during origin initialization which makes sense at first glance (there's no need to track usage when temporary storage is only being initialized). However, QuotaVFS provides other important functionality besides quota checks which is the overridden xFullPathname method. The overridden implementation is needed to avoid file path normalization on Windows. This patch changes relevant quota clients to always use QuotaVFS, even during origin initialization to take advantage of the overriden xFullPathname method. There will be no quota checks during origin initialization just like before because the passed directory lock id is -1. GetQuotaObject will return nullptr in that case. Depends on D198187 Differential Revision: https://phabricator.services.mozilla.com/D198188