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)
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.
Comment 2•9 years ago
|
||
Duped bug is tracking, so carrying over flag and assignee.
Assignee: nobody → sleroux
Status: NEW → ASSIGNED
Component: General → Home screen
Assignee | ||
Comment 3•9 years ago
|
||
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)
Comment 4•9 years ago
|
||
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)
Assignee | ||
Comment 5•9 years ago
|
||
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 6•9 years ago
|
||
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+
Assignee | ||
Comment 7•9 years ago
|
||
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.
Description
•