Closed Bug 1172524 Opened 9 years ago Closed 9 years ago

Remote Tabs Home Panel should not hit the network every time

Categories

(Firefox for iOS :: Home screen, defect)

Other
iOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
fxios + ---

People

(Reporter: st3fan, Assigned: sleroux)

References

(Depends on 1 open bug)

Details

Attachments

(1 file)

Currently we always reload your tabs by hitting the network. Instead we should implement some simple heuristic that shows the already synced tabs if the last sync time was within a specific time period.
Depends on: 1170597
Duped bug is tracking, so carrying over flag and assignee.
Assignee: nobody → sleroux
Status: NEW → ASSIGNED
Component: General → Home screen
I remember you mentioned you had an idea around this bug. I took a look through the sync code and found the TabSynchronizer's lastFetched Timestamp we're using to store the last fetch time. What are you thoughts on exposing this in the SyncManager vs. keeping the re-download heuristic internal to the sync framework?
Flags: needinfo?(rnewman)
lastFetched is a server timestamp, so we can't use that. (Which is one reason why it's not exposed.)

We should be just saving some local clock timestamp in a successful refresh(), like barbarians.
Flags: needinfo?(rnewman)
This patch adds some throttling behind refreshing of the client/tabs on the RemoteTabsPanel so we're not hitting the network every time. Instead, a one minute delay is used since the last sync time.
Attachment #8627185 - Flags: review?(rnewman)
Comment on attachment 8627185 [details] [review]
PR https://github.com/mozilla/firefox-ios/pull/649

Comments on the PR.
Attachment #8627185 - Flags: review?(rnewman) → review+
Merged.
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: