Closed Bug 1660751 Opened 4 years ago Closed 4 years ago

QM: Log failures in the browser console

Categories

(Core :: Storage: Quota Manager, task, P2)

task

Tracking

()

RESOLVED FIXED
82 Branch
Tracking Status
firefox82 --- fixed

People

(Reporter: janv, Assigned: janv)

Details

Attachments

(3 files)

Now when we have mostly complete replacement for NS_ENSURE_SUCCESS/NS_WARN_IF, we can start adding more features. Logging to the browser console is one of them.

Not that this is deliberately de-optimizing performance: Now, the HandleError
functions need to use the nsDependentCString constructor to determine the
length of the literals at run-time, since that's lost. While passing that
in addition would reduce the binary size wins again, and is not necessary,
since this code is only called in error situations, which are not
performance-critical.

Depends on D89147

Pushed by sgiesecke@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1d36aba44469
QM: Log failures in the browser console; r=dom-workers-and-storage-reviewers,sg
https://hg.mozilla.org/integration/autoland/rev/bb95b821eee6
Make HandleError function MOZ_NEVER_INLINE. r=janv,dom-workers-and-storage-reviewers
https://hg.mozilla.org/integration/autoland/rev/446aa773c333
Use bare const char* in HandleError signature to reduce size of calling code. r=dom-workers-and-storage-reviewers,janv
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 82 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: