mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-24 11:27:49 +00:00
Bug 1621920 - Polish directory traversal done by LS client; r=dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D81689
This commit is contained in:
parent
d4d374efdf
commit
c3a253dfc8
@ -8993,15 +8993,7 @@ Result<UsageInfo, nsresult> QuotaClient::InitOrigin(
|
||||
return Err(rv);
|
||||
}
|
||||
|
||||
if (!directoryEntries) {
|
||||
return res;
|
||||
}
|
||||
|
||||
while (true) {
|
||||
if (aCanceled) {
|
||||
break;
|
||||
}
|
||||
|
||||
while (!aCanceled) {
|
||||
nsCOMPtr<nsIFile> file;
|
||||
rv = directoryEntries->GetNextFile(getter_AddRefs(file));
|
||||
if (NS_WARN_IF(NS_FAILED(rv))) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user