Closed Bug 1195133 Opened 10 years ago Closed 10 years ago

Domain extraction fails for file:/// URIs.

Categories

(Firefox for iOS :: General, defect)

All
Unspecified
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
fxios + ---

People

(Reporter: rnewman, Assigned: rnewman)

Details

Attachments

(2 files)

[Error] [HistorySynchronizer.swift:111] applyRecord: Record application failed: Could not get a domain for file:///var/folders/2b/aaaaaaaaaaaaaaaaaaaaaaa 80000gn/T/aaaaNvZbfz.html# After three of these fail, we'll abort the sync.
Attachment #8648515 - Flags: review?(sleroux)
Attachment #8648515 - Flags: review?(sarentz)
East-coasters for review.
Attachment #8648516 - Flags: review?(sleroux)
Attachment #8648516 - Flags: review?(sarentz)
The code for both look good. What does desktop do as far as keeping track of URIs with file://? Not storing them feels cleaner from the code side but I feel like as a user I'd want to see file URIs in my history. Would we have to rework the query for calculating frecency to ignore file:// urls?
Desktop stores file: URIs. (That's how downloads are stored, too, IIRC.) The top sites code already transparently drops history items that don't join against the domains table, I think. The confusion is that file: URIs that sync from Desktop aren't much use on your phone — the purpose of syncing them is for completeness, and to make stuff like file:///Users/sleroux/Dropbox/... work, but that falls down here.
Comment on attachment 8648516 [details] [review] Option 2: allow URLs with no domain. I like the second option because it is simpler.
Attachment #8648516 - Flags: review?(sarentz) → review+
Comment on attachment 8648515 [details] [review] Option 1: don't fail when a URL doesn't have a domain. This looks good but I prefer options #2 because it is simpler.
Attachment #8648515 - Flags: review?(sarentz) → review+
Comment on attachment 8648516 [details] [review] Option 2: allow URLs with no domain. Option 2 as well
Attachment #8648516 - Flags: review?(sleroux) → review+
Needs resolvin'.
Flags: needinfo?(rnewman)
We cherry-picked part 1 of option 1: https://github.com/mozilla/firefox-ios/commit/b55570b318854b0df63af13e4879291eeedb7536 and we'll leave part 2 until we need it.
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Flags: needinfo?(rnewman)
Resolution: --- → FIXED
Attachment #8648515 - Flags: review?(sleroux)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: