Open Bug 1583362 Opened 7 years ago Updated 4 years ago

Audit component manifests and restrict processes where they may load to avoid surprises

Categories

(Firefox :: General, task, P3)

task

Tracking

()

People

(Reporter: mconley, Unassigned)

References

Details

These components are being loaded, it seems, in both the parent and content processes. I can't think of a good reason why these should be in content processes. In fact, I'm reasonably certain none of those components expect to be run in a content process.

We can declare a restriction on which process these can open in like this.

We might want to go through all of the other components.conf files out there and ensure that they're being loaded in the smallest set of process types. This could be low-hanging fruit for MemShrinking content processes.

How are they being loaded? I'm not aware of any code that would cause them to be.

Ack, you're right - I misread StaticComponents.cpp and thought this set were being loaded eagerly on start-up en-masse. Looks like they're loaded on-demand.

Still, we probably don't want these to ever load in the content process.

No longer blocks: memshrink-content

It's true, it's probably always a good idea to add a process restrictions to components that we never expect to load in a child process.

(In reply to Mike Conley (:mconley) (:⚙️) from comment #0)

We might want to go through all of the other components.conf files out there and ensure that they're being loaded in the smallest set of process types. This could be low-hanging fruit for MemShrinking content processes.

Broadening summary a bit. This seems like a P3 for now, lemme know if you think it needs prioritizing more urgently...

Priority: -- → P3
Summary: Some browser components are being needlessly loaded in the content process → Audit component manifests and restrict processes where they may load to avoid surprises
Depends on: 1601768
Severity: normal → N/A
You need to log in before you can comment on or make changes to this bug.