Open Bug 1679863 Opened 4 years ago Updated 2 years ago

HTMLCanvasElement.getContext is slow

Categories

(Core :: Security: Process Sandboxing, task, P5)

Unspecified
Linux
task

Tracking

()

Performance Impact low

People

(Reporter: smaug, Assigned: jld)

References

Details

The profile seems to hint that sandboxing is adding non-trivial overhead
https://share.firefox.dev/3ljFFmR

The profile was created by loading youtube.com and then clicking one of the suggested videos. The profile is from 64 bit linux, the results might be quite different on other platforms.

It's invoking the OpenGL drivers, which seem to be opening a lot of files (a lot of time spent in "open" calls). That indeed has to be intercepted by the sandbox, forwarded to the parent, checked against a whitelist, and the result sent back.

We are remoting all WebGL operations to get rid of this kind of thing (drivers messing around on the filesystem), so this will be fixed by bug 1638466.

Assignee: nobody → gpascutto
Severity: -- → S3
Depends on: 1638466
Priority: -- → P5

Jeff Gilbert noted that this could be an issue again if we decide to sandbox the GPU process with filesystem access restrictions.

Giving this qf:p5 - should reevaluate after 1638466 or if anything changes WRT sandboxing the GPU process per comment 2.

Whiteboard: [qf] → [qf:p5]
Assignee: gpascutto → jld
Performance Impact: --- → P3
Whiteboard: [qf:p5]
You need to log in before you can comment on or make changes to this bug.