Open Bug 2075150 Opened 2 months ago Updated 2 months ago

Remove the unused NAVIGATE_AND_RESTORE reason from tab restore

Categories

(Firefox :: Session Restore, task)

task

Tracking

()

People

(Reporter: dao, Unassigned)

References

(Blocks 1 open bug)

Details

Since bug 2074358 removed isRemotenessUpdate, nothing passes restoreContentReason to #restoreTabContent, so the restore data's reason is always RESTORE_TAB_CONTENT_REASON.SET_STATE. Two checks for NAVIGATE_AND_RESTORE can never pass:

  • #restoreTab deleting userTypedValue and userTypedClear
  • isNavigateAndRestore in #restoreTabContentStarted, with its two search-mode branches

With one value left, RESTORE_TAB_CONTENT_REASON, the restoreContentReason option and the reason field can go as well.

See Also: → sessionstore-docs
See Also: sessionstore-docs →
You need to log in before you can comment on or make changes to this bug.