Ignore unknown directories in client directories during temporary storage initialization
Categories
(Core :: Storage: Quota Manager, task, P2)
Tracking
()
People
(Reporter: janv, Unassigned)
References
(Blocks 1 open bug)
Details
(Keywords: leave-open, Whiteboard: [storage-jv])
Attachments
(9 files)
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
This may not be an issue, it seems IndexedDB now has some code to handle this, but we should verify it and add tests for that at least.
Reporter | ||
Updated•3 years ago
|
Reporter | ||
Updated•3 years ago
|
Reporter | ||
Comment 1•3 years ago
|
||
Reporter | ||
Comment 2•3 years ago
|
||
Reporter | ||
Comment 3•3 years ago
|
||
Reporter | ||
Updated•3 years ago
|
Pushed by jvarga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e3e3a090ee96 Fix some comments in test_unknownFiles.js; r=dom-workers-and-storage-reviewers,ttung https://hg.mozilla.org/integration/autoland/rev/b85b0e346dee Provide a new testable macro for warning about unknown files or directories; r=dom-workers-and-storage-reviewers,ttung,sg https://hg.mozilla.org/integration/autoland/rev/6d94049a8f9e Convert LS client to use the new macro for warning about unknown stuff and add testing for unknown directories in LS client directory; r=dom-workers-and-storage-reviewers,ttung
Comment 5•3 years ago
|
||
Backed out for bustages on ActorsParent.cpp
Backout link: https://hg.mozilla.org/integration/autoland/rev/590bbddc02bd7509657153bbc7a4f2156f35a64e
Log link: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=307484243&repo=autoland&lineNumber=36704
Pushed by jvarga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a85e35f30940 Fix some comments in test_unknownFiles.js; r=dom-workers-and-storage-reviewers,ttung https://hg.mozilla.org/integration/autoland/rev/41ed069650bb Provide a new testable macro for warning about unknown files or directories; r=dom-workers-and-storage-reviewers,ttung,sg https://hg.mozilla.org/integration/autoland/rev/8d4ed3699274 Convert LS client to use the new macro for warning about unknown stuff and add testing for unknown directories in LS client directory; r=dom-workers-and-storage-reviewers,ttung
Comment 7•3 years ago
|
||
bugherder |
Reporter | ||
Comment 8•3 years ago
|
||
Reporter | ||
Comment 9•3 years ago
|
||
Depends on D81686
Reporter | ||
Comment 10•3 years ago
|
||
Depends on D81688
Reporter | ||
Comment 11•3 years ago
|
||
Depends on D81689
Reporter | ||
Comment 12•3 years ago
|
||
Depends on D81690
Comment 13•3 years ago
|
||
Pushed by jvarga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d509ac323757 Simplify handling of unknown directories in LS client directory; r=dom-workers-and-storage-reviewers,ttung https://hg.mozilla.org/integration/autoland/rev/e92c2d9d3f63 Convert some macros in dom/localstorage/ActorsParent.cpp to literal strings; r=dom-workers-and-storage-reviewers,sg https://hg.mozilla.org/integration/autoland/rev/e617cb5af9c8 Polish directory traversal done by LS client; r=dom-workers-and-storage-reviewers,sg https://hg.mozilla.org/integration/autoland/rev/006b4e7cf0e4 Convert SDB client to use the new macro for warning about unknown stuff and add handling of unknown directories in SDB client directory; r=dom-workers-and-storage-reviewers,sg
Comment 14•3 years ago
|
||
Pushed by jvarga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6bc9dbd575dc Polish directory traversal done by SDB client; r=dom-workers-and-storage-reviewers,sg
Comment 15•3 years ago
|
||
bugherder |
Comment 16•3 years ago
|
||
bugherder |
Comment 17•2 years ago
|
||
Is the leave-open flag still needed here?
Reporter | ||
Comment 18•2 years ago
|
||
Only LS and SDB quota client have been checked and only LS and SDB have new tests for this:
https://searchfox.org/mozilla-central/rev/7b40f0b246ad0b54975b1525811f2ad599b95f33/dom/quota/test/xpcshell/make_unknownFiles.js#143
vs
https://searchfox.org/mozilla-central/rev/7b40f0b246ad0b54975b1525811f2ad599b95f33/dom/quota/test/xpcshell/make_unknownFiles.js#71
So IDB and CACHE need to be checked. The use of UNKNOWN_FILE_WARNING macro should be replaced with the new one WARN_IF_FILE_IS_UNKNOWN while we are there. I also remember that CACHE wasn't using a macro at all, that should be fixed too.
Regarding the priorities, this should be finished after the asynchronous init work, the new detailed telemetry and probably also about:storage.
Reporter | ||
Comment 19•2 years ago
|
||
This is sort of work on "improved testing" as well.
Comment 20•2 years ago
|
||
The leave-open keyword is there and there is no activity for 6 months.
:janv, maybe it's time to close this bug?
Reporter | ||
Comment 21•2 years ago
|
||
Depends on D119496
Comment 22•2 years ago
|
||
Pushed by jvarga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/cd665848819c Convert IDB client to use the new macro for warning about unknown stuff in .files directory and add handling of unknown directories in .files directory; r=dom-storage-reviewers,asuth
Comment 23•2 years ago
|
||
bugherder |
Comment 24•1 year ago
|
||
The leave-open keyword is there and there is no activity for 6 months.
:janv, maybe it's time to close this bug?
Reporter | ||
Updated•9 months ago
|
Comment 25•3 months ago
|
||
The leave-open keyword is there and there is no activity for 6 months.
:edenchuang, maybe it's time to close this bug?
For more information, please visit auto_nag documentation.
Comment 26•10 days ago
|
||
(In reply to Release mgmt bot [:suhaib / :marco/ :calixte] from comment #25)
:edenchuang, maybe it's time to close this bug?
No.
Description
•