Closed
Bug 1358571
Opened 8 years ago
Closed 6 months ago
Copying a profile from OSX to Linux (and probably Windows) will cause the user to lose all IDB data
Categories
(Core :: Storage: IndexedDB, defect, P5)
Core
Storage: IndexedDB
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: ehsan.akhgari, Unassigned)
Details
(Whiteboard: dom-lws-bugdash-triage)
Attachments
(1 file)
184 bytes,
application/octet-stream
|
Details |
STR:
1. Have a Firefox profile on OSX.
2. Copy it to Linux.
3. Use a website that uses IndexedDB (such as perf-html.io.) All of the things break.
You get errors like this in the error console:
Quota Something (._.metadata-v2) in the directory that doesn't belong!: ActorsParent.cpp:4255 (unknown)
Coming from <http://searchfox.org/mozilla-central/rev/7aa21f3b531ddee90a353215bd86e97d6974e25b/dom/quota/ActorsParent.cpp#4255>
This file could be coming from <https://searchfox.org/mozilla-central/rev/7aa21f3b531ddee90a353215bd86e97d6974e25b/modules/freetype2/src/base/ftrfork.c#568>
I'm attaching an example one of these files from my profile.
Comment 1•8 years ago
|
||
(In reply to :Ehsan Akhgari (super long backlog, slow to respond, not reviewing for a while) from comment #0)
> This file could be coming from
> <https://searchfox.org/mozilla-central/rev/
> 7aa21f3b531ddee90a353215bd86e97d6974e25b/modules/freetype2/src/base/ftrfork.
> c#568>
Misleading link on my part pasted into IRC and included here. That was just the in-tree indicator I found of the existence of the "._" prefixed files as an OS X thing.
https://apple.stackexchange.com/questions/14980/why-are-dot-underscore-files-created-and-how-can-i-avoid-them links to https://lists.apple.com/archives/applescript-users/2006/Jun/msg00180.html which seems like a particularly good mailing list posting on the subject.
Comment 2•8 years ago
|
||
Proposed-fix-wise, I think maybe IsOSMetadata could learn to ignore files with a "._" prefix in addition to DSSTORE_FILE_NAME (at https://searchfox.org/mozilla-central/source/dom/quota/ActorsParent.cpp#1413). And other lingering file enumeration logic like IDB's https://searchfox.org/mozilla-central/source/dom/indexedDB/ActorsParent.cpp#18326 might want to consult QM for more checks too.
Comment 3•8 years ago
|
||
Bevis, is this something you'd like to tackle?
Flags: needinfo?(btseng)
Priority: -- → P3
Updated•7 years ago
|
Assignee: btseng → nobody
Updated•3 years ago
|
Severity: normal → S4
Priority: P3 → P5
Comment 5•6 months ago
•
|
||
This was addressed by being more lax in general; we ignore dot files here and here.
Also we'll only warn even in other cases too.
Status: NEW → RESOLVED
Closed: 6 months ago
Resolution: --- → WORKSFORME
Whiteboard: dom-lws-bugdash-triage
You need to log in
before you can comment on or make changes to this bug.
Description
•