Closed Bug 1800146 Opened 4 years ago Closed 3 years ago

Set tab's GeckoSession priority based on existing form data

Categories

(Firefox for Android :: Browser Engine, enhancement, P1)

All
Android
enhancement

Tracking

()

RESOLVED FIXED
Tracking Status
firefox110 --- wontfix
firefox111 --- fixed

People

(Reporter: cpeterson, Assigned: calu)

References

(Blocks 1 open bug)

Details

(Whiteboard: [geckoview:m109][geckoview:m110][geckoview:m111])

Attachments

(1 obsolete file)

When a user switches tabs, Fenix should use GeckoView's containsFormData API (bug 1777506) to check if the current GeckoSession has existing form data and set the tab's GeckoSession appropriately with setPriorityHint API: either PRIORITY_HIGH if there is form data or default if there isn't. This will tell Android's OOM killer to not kill processes and tabs that have form data the user is filling out. Fenix should also have a timeout of a few minutes in case the user does not intend to return to the tab with form data.

Do we need to fix Focus, too?

I think we can observe Fenix first to see if the fix is a significant improvement.

Whiteboard: [geckoview:m109] → [geckoview:m109][geckoview:m110]
Blocks: 1809937
Whiteboard: [geckoview:m109][geckoview:m110] → [geckoview:m109][geckoview:m110][geckoview:m110]
Whiteboard: [geckoview:m109][geckoview:m110][geckoview:m110] → [geckoview:m109][geckoview:m110][geckoview:m111]
Rank: 109
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED

Comment on attachment 9306959 [details] [review]
[mozilla-mobile/firefox-android] Bug 1800146 - Set tab's GeckoSession priority based on form data (#264)

GitHub pull request attachment was moved to bug 1811859. Setting attachment 9306959 [details] [review] to obsolete.

Attachment #9306959 - Attachment is obsolete: true
Blocks: 1820211
Blocks: 1820263
See Also: → 2092809
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: