Create separate HWInference processes for browser and content initiated workloads
Categories
(Core :: Machine Learning: On Device, task, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox159 | --- | fixed |
People
(Reporter: vpollet, Assigned: vpollet)
References
(Blocks 1 open bug)
Details
(Whiteboard: [aiplatform])
Attachments
(3 external files, 2 obsolete files)
The AI runtime powers browser features, meaning that the data that the inference process holds is very privileged (think browsing history, prefs etc.), let's call that "Browser AI". The new utility process added for SpeechRecognition will be executing code on behalf of a WebAPI, which is a very different trust-model to execution on behalf of the browser, call it "Web AI". I believe security would suffer from co-locating execution of those two in the same process, mainly because in the Web AI case, a Web API provides the bytes we're running untrusted third parties on, AND a clean exfiltration channel in the form of the API itself.
As I understand, the current utility process infrastructures mandate 1 kind = 1 instance of the process. Paul proposed a way to "key" utility processes using a string that solved the "1 kind = 1 instance" limitation by changing the invariant to "1 kind x key = 1 instance", which allowed defining "HWInference - Web" for Web AI and "HWInference - Browser" for Browser AI, physically separating them. Nika rejected that approach in review.
This bug is about converging on an acceptable shape for that physical separation.
| Assignee | ||
Updated•2 months ago
|
Updated•2 months ago
|
| Assignee | ||
Comment 2•2 months ago
|
||
| Assignee | ||
Comment 3•2 months ago
|
||
Updated•2 months ago
|
| Assignee | ||
Comment 4•2 months ago
|
||
Co-authored-by: Nika Layzell <nlayzell@mozilla.com>
| Assignee | ||
Comment 5•2 months ago
|
||
Co-authored-by: Nika Layzell <nlayzell@mozilla.com>
| Assignee | ||
Comment 6•2 months ago
|
||
Updated•2 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Comment 8•1 month ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/41d5f0801edb
https://hg.mozilla.org/mozilla-central/rev/5c70e66c7d27
https://hg.mozilla.org/mozilla-central/rev/1f09e6557c2a
Updated•1 month ago
|
Description
•