Initial RemoteImageProtocolHandler work
Categories
(Core :: Graphics, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox147 | --- | fixed |
People
(Reporter: tschuster, Assigned: tschuster)
References
(Blocks 3 open bugs)
Details
Attachments
(4 files, 1 obsolete file)
We don't want to decode untrusted images (in particular favicons) in the parent process. Instead we can introduce a new protocol, that will decode an image in a sandboxed process (probably utility process) and returns the encoded bitmap data for a safe static version of that image.
| Assignee | ||
Updated•10 months ago
|
| Assignee | ||
Comment 1•10 months ago
|
||
| Assignee | ||
Comment 2•10 months ago
|
||
| Assignee | ||
Comment 3•10 months ago
|
||
| Assignee | ||
Comment 4•10 months ago
•
|
||
Some things that I still want to improve:
Introduce a new simple (rawish) image format to re-encode into. (For this first draft I am using PNG) This should make it faster to decode again in the parent and more secure, because PNG and other are still complex formats and we shouldn't trust the data coming from the child.Make sure the child sends up image data in the expected format.- Handle SVG context-fill and CSS color-scheme?
- I probably should introduce a new content process type for this.
- Restrict the content process to a feature set that it could reasonable require. E.g. could we maybe prevent it from video decoding etc?
- Handle a hanging remote process (Maybe automatic?)
- Shutdown the process when idle
| Assignee | ||
Comment 5•10 months ago
|
||
Updated•10 months ago
|
Updated•10 months ago
|
Updated•10 months ago
|
Updated•10 months ago
|
Updated•10 months ago
|
| Assignee | ||
Comment 6•10 months ago
|
||
I am submitting this for early review to gather some feedback.
| Assignee | ||
Comment 7•10 months ago
|
||
In comment 0 in mentioned using the utility process for decoding images. I didn't manage to get that working. SVGs actually use real documents when decoding, which requires a proper (web) content process to work.
| Assignee | ||
Comment 8•10 months ago
|
||
Updated•9 months ago
|
Updated•9 months ago
|
Updated•8 months ago
|
Updated•8 months ago
|
Updated•8 months ago
|
Updated•8 months ago
|
Comment 10•8 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/e2c8885b527d
https://hg.mozilla.org/mozilla-central/rev/97640cf934c0
https://hg.mozilla.org/mozilla-central/rev/1375a42a41c0
https://hg.mozilla.org/mozilla-central/rev/f53b15142ef3
| Assignee | ||
Updated•7 months ago
|
| Assignee | ||
Updated•7 months ago
|
Updated•7 months ago
|
Description
•