Update Firefox to utilize zstd for Translations models and WASM
Categories
(Firefox :: Translations, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox145 | --- | fixed |
People
(Reporter: nordzilla, Assigned: isaacbriandt10, Mentored)
References
Details
Attachments
(5 files, 2 obsolete files)
Description
In Bug 1947431 we implemented zstd
for DecompressionStream and allowed it for internal use within privileged Firefox contexts.
We now have v2
Remote Settings collections that are designed to host and serve zstd
compressed models and WASM.
We need to hook everything together to allow Firefox to pull from the compressed collections, and decompress the models as-needed.
Assignee | ||
Comment 1•2 months ago
|
||
Assignee | ||
Comment 2•2 months ago
|
||
Reporter | ||
Comment 3•2 months ago
|
||
Updated•2 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Reporter | ||
Comment 4•2 months ago
|
||
This patch modifies the RemoteSettings client's download()
method to be able to return a Blob directly, in addition to
the ArrayBuffer that it already returns.
This prevents the Translations code from having to manually
construct a Blob from the buffer, prevening a jank in the parent
process.
Reporter | ||
Comment 5•1 month ago
|
||
The build should be exactly the same, though I technically
built it from a different hash on GitHub, so we should
update that.
Reporter | ||
Comment 6•20 days ago
|
||
This patch is a condensed version of my initial WIP patch stack
for Bug 1982594 where I initially encountered this behavior.
The behavior reproduces by running the following command:
./mach test browser_translations_e2e
Rather than executing successfully, the WASM instantiation
will hang indefinitely until the test case times out.
This code is very likely to bit rot, though I hope it proves
to be useful in exploring this behavior. I haven't been able
to reproduce in a different way at the time of writing.
Comment 7•20 days ago
|
||
Comment on attachment 9512975 [details]
WIP: Bug 1982594 - (Temporary) Attempt to reproduce behavior
Revision D264662 was moved to bug 1988289. Setting attachment 9512975 [details] to obsolete.
Reporter | ||
Comment 8•17 days ago
|
||
This patch modifies the WASM function for instantiating
to use synchronous functions instead of WebAssembly.instantiate().
See Bug 1988289 for more information.
Updated•16 days ago
|
Updated•16 days ago
|
Updated•16 days ago
|
Updated•16 days ago
|
Updated•16 days ago
|
Updated•16 days ago
|
Comment 10•3 days ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/eb6fd21e3556
https://hg.mozilla.org/mozilla-central/rev/c7cbbf7cf116
https://hg.mozilla.org/mozilla-central/rev/915cfd067f0e
https://hg.mozilla.org/mozilla-central/rev/8a41bb5bb9fc
https://hg.mozilla.org/mozilla-central/rev/e0d24a0fe50f
Description
•