Closed Bug 1893846 Opened 1 year ago Closed 11 months ago

Potential bug in SessionPrioritizationMiddleware.kt

Categories

(Firefox for Android :: General, defect)

All
Android
defect

Tracking

()

RESOLVED FIXED
128 Branch
Tracking Status
firefox128 --- fixed

People

(Reporter: jackyzy823, Assigned: jackyzy823)

Details

Attachments

(1 file)

  1. Since the introduction of telemetry in bug 1820211, the session priority would be reset to DEFAULT when the activity is paused (like switching to background) , because checkForFormData will cause UpdateHasFormDataAction to be dispatched when getting result from GeckoView side.

  2. There is a chance that previousHighestPriorityTabId is equivalent to selectedTabId , but selectedTabId's current session priority is DEFAULT. If previousHighestPriorityTabId not changed after, then this tab will never be set to HIGH again.

    So after everytime updateSessionPriority(DEFAULT) is called , we should reset previousHighestPriorityTabId to "" if previousHighestPriorityTabId == selectedTabId

Assignee: nobody → jackyzy823
Status: NEW → ASSIGNED

The severity field is not set for this bug.
:boek, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(jboek)
Pushed by tthibaud@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8a73209fffee Don't dispatch UpdateHasFormDataAction after PauseAction and reset previousHighestPriorityTabId when UnlinkEngineSessionAction. r=android-reviewers,boek
Status: ASSIGNED → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 128 Branch
Flags: needinfo?(jboek)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: