Bug 1686031 - Construct OriginMetadata with real suffix in GetOriginUsageOp::DoDirectoryWork; r=dom-storage-reviewers,sg

Differential Revision: https://phabricator.services.mozilla.com/D106394
This commit is contained in:
Jan Varga 2021-03-04 11:07:40 +00:00
Родитель 37dd4a946c
Коммит 2f5300328f
1 изменённых файлов: 1 добавлений и 4 удалений

Просмотреть файл

@ -8466,10 +8466,7 @@ nsresult GetOriginUsageOp::DoDirectoryWork(QuotaManager& aQuotaManager) {
AUTO_PROFILER_LABEL("GetOriginUsageOp::DoDirectoryWork", OTHER);
// We pass empty suffix to OringinMetadata for now (it's safe because it
// isn't used at the moment).
// XXX Add mSuffix to GetOriginUsageOp and use it here.
const OriginMetadata originMetadata = {""_ns, mGroup,
const OriginMetadata originMetadata = {mSuffix, mGroup,
nsCString{mOriginScope.GetOrigin()}};
if (mFromMemory) {