Open Bug 1982318 Opened 23 days ago Updated 20 days ago

Make it possible to delete uploaded profiles from about:logging

Categories

(Core :: XPCOM, enhancement, P2)

enhancement

Tracking

()

ASSIGNED

People

(Reporter: canova, Assigned: canova)

References

(Blocks 1 open bug)

Details

Attachments

(5 files)

Bug 1803607 added a way to upload profiles from about:logging. But currently there is no way to delete them if they are uploaded through about:logging.

We should:

  1. Save the jwt token that we get from here (we save it in indexeddb in the frontend) That uploadResult is the jwt token that we just discard. We can include some more information from the profile data like we do in the profiler frontend.
  2. Show a list of "uploaded profiles" in about:logging with a "delete" button on the side.
  3. Send a request with that jwt token to the profiler server with the delete request (similar to here) when that button is pressed

They were fine in CI, but running them locally was showing some expected
failures about persisting some preferences.

Assignee: nobody → canaltinova
Status: NEW → ASSIGNED

This patch doesn't use the code yet, it just adds the storage logic for
us to use in the following patch.

Attachment #9506613 - Attachment description: Bug 1982318 - Add profile storage logic for about:logging r?padenot → Bug 1982318 - Add profile storage logic and save the uploaded profiles in about:logging r?padenot

Previously, when we were saving the profile to disk, we getting the
profile path from the localized string. But it appears that due to some
rendering timing issues, the rendered text might not contain the path
yet. But we will always have it inside the data-l10n-args attribute.
That's why it's better to check that directly.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: