Closed Bug 1123809 Opened 9 years ago Closed 9 years ago

Record history as visits

Categories

(Firefox for iOS :: Data Storage, defect)

All
iOS 8
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: wesj, Unassigned)

References

Details

Attachments

(1 file, 1 obsolete file)

47 bytes, text/x-github-pull-request
st3fan
: review+
Details | Review
We want to record history visits individually on iOS. Probably with a date, and a transition type (i.e. did you click a link, type the url, was this a redirect, etc)
Attached file Pull request (obsolete) —
Asking for feedback/review (i.e. you pick! :) )
Attachment #8551926 - Flags: review?(rnewman)
Status: NEW → ASSIGNED
Component: General → Data Storage
OS: Mac OS X → iOS 8
Hardware: x86 → All
Attached file Pull request. v2
Attachment #8551926 - Attachment is obsolete: true
Attachment #8551926 - Flags: review?(rnewman)
Attachment #8556099 - Flags: review?(sarentz)
Attachment #8556099 - Flags: review?(rnewman)
Comment on attachment 8556099 [details] [review]
Pull request. v2

Comments left on pull req; needs one more iteration on the visits schema, I think.

Please file a follow-up to think about expiration!
Attachment #8556099 - Flags: review?(rnewman) → feedback+
Comment on attachment 8556099 [details] [review]
Pull request. v2

Updated the PR. Using int for site ids. I'm not sure the best way to handle dates here, so I'm happy to get advice. NSTimerInterval's on iOS are doubles (in units of seconds), so that's what I'm storing now. There are plenty of other options if you want something different...
Attachment #8556099 - Flags: feedback+ → review?(rnewman)
Comment on attachment 8556099 [details] [review]
Pull request. v2

This looks good. My only big question is if we should turn the FavIcon detection into a UserScript and a BrowserHelper. (ReaderMode is a good example of something that runs on every page). I think that will speed things up since the script will be in the webview, ready to go, and it will also make the messaging nicer.
Attachment #8556099 - Flags: review?(sarentz) → review+
Argh. I was trying to remove the favicon code from this. It should be a separate PR I think. But if it slips in here and we're happy, I'm not going to force another review :)

I also added an explicit ID column to the visits table now (but no guids!). I think at somepoint it would be nice to track a session of visits: Site A -> Site B -> Site C. We'll need IDs for something like that. Best to do it now I guess.
I landed this. Lets use follow ups for any cleanup we need.
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Attachment #8556099 - Flags: review?(rnewman)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: