Open Bug 1648490 Opened 4 years ago Updated 2 years ago

Profile Manager cannot remove the profile that contains a directory with a trailing dot

Categories

(Toolkit :: Startup and Profile System, defect, P2)

Unspecified
Windows
defect

Tracking

()

People

(Reporter: tt, Unassigned)

References

Details

Attachments

(2 files)

  1. Visit the site with a trailing dot and using DOM Storage.
  2. Remove the profile in about:profiles

Actual:
There is no warning or error shows up but the profile is not removed

Expect:
The profile should be removed

The fix should probably be done by using the prefix \\?\ or using QMS's API for https://searchfox.org/mozilla-central/source/toolkit/profile/nsIToolkitProfile.idl#85

Component: Storage: Quota Manager → Startup and Profile System
Product: Core → Toolkit

We also need to check if other operation in ProfileManager would be affected as well.

I will need to check other APIs that access the profiles and check if we can have a test.

I'm not sure if I can easily write a test for that.

Also, there is another file access to profile dir: https://searchfox.org/mozilla-central/source/toolkit/xre/ProfileReset.h#54

That makes me consider using \\?\ for ProfileManager.
However, I want to avoid deploying \\?\ prefix to other modules at the moment if possible. We should only do that when we have more confidence (given that we only ship the prefix to the release users for a month and there are bugs related to \\?\).

Attachment #9159636 - Attachment description: Bug 1648490 - Remvoe storage directroy by using QM_NewLocalFile before remove the profile; → Bug 1648490 - Remvoe/copy the storage directroy by using QM_NewLocalFile before remove/other the profile directroy;
Attachment #9159636 - Attachment description: Bug 1648490 - Remvoe/copy the storage directroy by using QM_NewLocalFile before remove/other the profile directroy; → Bug 1648490 - Remvoe the storage directroy by using QM_NewLocalFile before removing other the profile directroy;
Attachment #9159636 - Attachment description: Bug 1648490 - Remvoe the storage directroy by using QM_NewLocalFile before removing other the profile directroy; → Bug 1648490 - Remove the storage directory first before removing the profile directroy;
Attachment #9159636 - Attachment description: Bug 1648490 - Remove the storage directory first before removing the profile directroy; → Bug 1648490 - Remove the storage directory first before removing the profile directory;
Attachment #9162069 - Attachment description: Bug 1648490 - Copy the storage directroy by using QM_NewLocalFile before copying other the profile directroy; → Bug 1648490 - Copy the storage directory first before copying the other files/directories in the profile directory;
Status: NEW → ASSIGNED
Priority: P3 → P2

try for the first patch: https://treeherder.mozilla.org/#/jobs?repo=try&revision=2f7522610f188ecffe00c237d3633b3dcfe726ec
If it looks good, I will push that patch into m-c.

The bug assignee didn't login in Bugzilla in the last 7 months.
:mossop, could you have a look please?
For more information, please visit auto_nag documentation.

Assignee: shes050117 → nobody
Status: ASSIGNED → NEW
Flags: needinfo?(dtownsend)
Flags: needinfo?(dtownsend)
Assignee: nobody → shes050117
Status: NEW → ASSIGNED

The bug assignee is inactive on Bugzilla, so the assignee is being reset.

Assignee: shes050117 → nobody
Status: ASSIGNED → NEW
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: