Closed Bug 1701346 Opened 4 years ago Closed 4 years ago

Revert QM_OR_ELSE_WARN to ordinary orElse in places where NS_ERROR_FILE_ALREADY_EXISTS/NS_ERROR_FILE_NOT_FOUND/NS_ERROR_FILE_TARGET_DOES_NOT_EXIST needs to be just ignored

Categories

(Core :: Storage: Quota Manager, defect, P1)

defect

Tracking

()

RESOLVED FIXED

People

(Reporter: janv, Assigned: janv)

References

(Regression)

Details

(Keywords: regression)

Attachments

(9 files, 2 obsolete files)

48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
Keywords: leave-open
Summary: QM: Remove QM_OR_ELSE_WARN from EnsureDirectory → QM: Remove QM_OR_ELSE_WARN from functions which are used idempotently
Summary: QM: Remove QM_OR_ELSE_WARN from functions which are used idempotently → QM: Revert QM_OR_ELSE_WARN to ordinary orElse in places where NS_ERROR_FILE_ALREADY_EXISTS/NS_ERROR_FILE_NOT_FOUND/NS_ERROR_FILE_TARGET_DOES_NOT_EXIST needs to be just ignored
Summary: QM: Revert QM_OR_ELSE_WARN to ordinary orElse in places where NS_ERROR_FILE_ALREADY_EXISTS/NS_ERROR_FILE_NOT_FOUND/NS_ERROR_FILE_TARGET_DOES_NOT_EXIST needs to be just ignored → Revert QM_OR_ELSE_WARN to ordinary orElse in places where NS_ERROR_FILE_ALREADY_EXISTS/NS_ERROR_FILE_NOT_FOUND/NS_ERROR_FILE_TARGET_DOES_NOT_EXIST needs to be just ignored
Attachment #9211930 - Attachment description: Bug 1701346 - QM: Remove QM_OR_ELSE_WARN from EnsureDirectory; r=asuth,#dom-storage → Bug 1701346 - QM: Revert QM_OR_ELSE_WARN to ordinary orElse in EnsureDirectory; r=asuth,#dom-storage
Pushed by jstutte@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/14e56036de5c QM: Revert QM_OR_ELSE_WARN to ordinary orElse in EnsureDirectory; r=jstutte
Pushed by jstutte@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/863ab090e28a IDB: Revert QM_OR_ELSE_WARN to ordinary orElse in QuotaClient::GetUsageForOriginInternal; r=asuth,dom-storage-reviewers,jstutte https://hg.mozilla.org/integration/autoland/rev/6c1a2d9d4334 LSNG: Revert QM_OR_ELSE_WARN to ordinary orElse in ExistsAsFile; r=asuth,dom-storage-reviewers,jstutte
See Also: → 1706872
Pushed by jvarga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0d9c5f03b8b0 QM: Fix the comment in EnsureDirectory; r=asuth,dom-storage-reviewers,jstutte https://hg.mozilla.org/integration/autoland/rev/238e28e08f35 QM: Add a comment for QM_OR_ELSE_WARN in CreateOrUpgradeDirectoryMetadataHelper::MaybeUpgradeOriginDirectory; r=asuth,dom-storage-reviewers,jstutte https://hg.mozilla.org/integration/autoland/rev/6c58b606570e CACHE: Revert QM_OR_ELSE_WARN to ordinary orElse in BodyGetCacheDir; r=asuth,dom-storage-reviewers,jstutte https://hg.mozilla.org/integration/autoland/rev/e32570129605 CACHE: Revert QM_OR_ELSE_WARN to ordinary orElse in BodyCreateDir; r=asuth,dom-storage-reviewers,jstutte
Pushed by jvarga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ecbf5c7d3a62 CACHE: Add explanatory comments for some ordinary orElse uses; r=dom-storage-reviewers,asuth https://hg.mozilla.org/integration/autoland/rev/1ea87880589f QM: Revert QM_OR_ELSE_WARN to ordinary orElse in GetDirEntryKind; r=dom-storage-reviewers,asuth

This is more consistent with other cases where we either use QM_OR_ELSE_WARN or
QM_OR_ELSE_NOTE. We will later change some uses of QM_OR_ELSE_LOG to
QM_OR_ELSE_LOG_IF. The switch from custom OrElseIf to Result::orElseIf will be
easier when we don't use OrElseIf directly.

Depends on D114936

See Also: → 1711181

Comment on attachment 9221726 [details]
Bug 1701346 - Add QM_OR_ELSE_LOG and QM_OR_ELSE_LOG_IF macros; r=#dom-storage

Revision D114936 was moved to bug 1711181. Setting attachment 9221726 [details] to obsolete.

Attachment #9221726 - Attachment is obsolete: true

Comment on attachment 9221758 [details]
Bug 1701346 - Change uses of ordinary orElse to QM_OR_ELSE_LOG; r=#dom-storage

Revision D115055 was moved to bug 1711181. Setting attachment 9221758 [details] to obsolete.

Attachment #9221758 - Attachment is obsolete: true
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED

There are still some QM_OR_ELSE_WARN that can spam the reports. However, there's now a new approach for it in bug 1711181, so this bug has been closed.

Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: