Pages with unsubmitted form data should (temporarily?) get high priority
Categories
(GeckoView :: Core, enhancement, P1)
Tracking
(firefox108 fixed)
Tracking | Status | |
---|---|---|
firefox108 | --- | fixed |
People
(Reporter: agi, Assigned: calu)
References
(Blocks 1 open bug)
Details
(Whiteboard: [geckoview:2022q3] [geckoview:m108])
Attachments
(1 file)
(deleted),
text/x-phabricator-request
|
Details |
An unsubmitted form is a signal that the user is still working on the page, we should give those pages high priority on Android so that we keep them around as long as possible.
We could also have a timeout of a few minutes in case the user does not intend to return to it.
Comment 1•2 years ago
|
||
This problem will be worse with Fission when tabs can run in separate processes.
Assignee | ||
Comment 2•2 years ago
|
||
Geckoview should expose an API that returns a bool whether or not there is uncommitted form data, so that Fenix can set any GeckoSessions to HIGH priority.
Updated•2 years ago
|
Comment 3•2 years ago
|
||
108
Updated•2 years ago
|
Assignee | ||
Comment 4•2 years ago
|
||
Design Doc: https://docs.google.com/document/d/1rvxdfzBMu_I_qC6OY-9Rpex2kdWHGCefp1QIR2AYXl4/edit?usp=sharing
GeckoView provides an API containsFormData(), where the parent process queries the child process for any existing session form data using SessionStoreUtils and returns a GeckoResult<Boolean> whether or not there is form data.
Assignee | ||
Comment 6•2 years ago
|
||
Fenix bug to use this API to increase or decrease process priority: https://github.com/mozilla-mobile/fenix/issues/27803
Updated•2 years ago
|
Comment 7•2 years ago
|
||
bugherder |
Description
•