Add file hashing to IOUtils with Digest
Categories
(Toolkit Graveyard :: OS.File, enhancement, P3)
Tracking
(firefox104 fixed)
Tracking | Status | |
---|---|---|
firefox104 | --- | fixed |
People
(Reporter: beth, Assigned: beth)
References
Details
Attachments
(1 file)
ProductAddonChecker.jsm does a streaming file hash with OS.File and nsICryptoHash. (note: only the file IO is async, the hash computation is done on main thread).
There is no easy way to do this with IOUtils presently as we return all the file data at once. However, it would be easy to add a method on IOUtils to do the streaming hashing on the background thread with nsICryptoHash::UpdateFromStream
Assignee | ||
Comment 1•3 years ago
|
||
Depends on D148965
Assignee | ||
Comment 2•3 years ago
|
||
We don't want to use nsICryptoHash for new code but want to use Digest instead
Updated•3 years ago
|
Comment 4•3 years ago
|
||
Backed out 2 changesets (bug 1773186, bug 1772742) for causing mochitest failures in dom/system/tests/ioutils/test_ioutils_hashfile.html
Backout link: https://hg.mozilla.org/integration/autoland/rev/dd7b5b6df782dc47bd55a5516433424e05e9d147
INFO - TEST-UNEXPECTED-FAIL | dom/system/tests/ioutils/test_ioutils_hashfile.html | TypeError: IOUtils.hashFile is not a function - Should not throw any errors
Assignee | ||
Updated•3 years ago
|
Comment 6•3 years ago
•
|
||
Backed out changeset b10faac4d933 (Bug 1773186) for causing bustages on chrome.ini (test_ioutils_hashfile.html).
Backout link
Push with failures
Failure Log
Assignee | ||
Updated•3 years ago
|
Comment 8•3 years ago
|
||
bugherder |
Updated•2 years ago
|
Description
•