Closed Bug 1725482 Opened 3 years ago Closed 2 years ago

Android-specific improvements to ProcessPriorityManager

Categories

(GeckoView :: General, defect, P2)

Unspecified
All

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1753700

People

(Reporter: bugzilla, Unassigned)

References

Details

(Whiteboard: [geckoview:m94?])

One theory I have about bug 1682319 is that we might be seeing a "double deprioritization" of content processes:

Suppose Fenix is active with an active tab of web content. That tab's content process is considered by the ProcessPriorityManager to be high priority, so we bind its service with the Context.BIND_IMPORTANT flag.

Now suppose I switch to a different app. The entire Fenix app will be de-prioritized by Android by virtue of the fact that it is backgrounded. However, the ProcessPriorityManager also receives notice that the app has backgrounded, and decides to dispatch a priority drop for the active tab to GeckoProcessManager. We drop the Context.BIND_IMPORTANT flag from the active tab's service bindings, thus deprioritizing its content process over and above whatever was automatically done when the Fenix app was backgrounded.

My hypothesis is that the ProcessPriorityManager should probably not deprioritize the active tab's process(es) when the app is backgrounded on Android.

Whiteboard: [geckoview:m94?]
Severity: -- → S3
Priority: -- → P2

Duplicate of fixed bug 1753700

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.