Don't sync `localhost` URLs
Categories
(Firefox :: Sync, enhancement)
Tracking
()
People
(Reporter: xidorn, Unassigned)
References
Details
Steps to reproduce
- setup syncing between a Firefox on desktop and one on Android
- host something on the desktop behind domains like
foo.localhost - visit that domain on desktop and have the history synced to Android
- type the prefix of the domain like "foo" on Android address bar
Expected behavior
It should not include foo.localhost in the autocomplete and address bar suggestion, because .localhost domains resolve to loopback address which generally doesn't make sense when using a different device.
Actual behavior
It includes the .localhost address in suggestion and autocomplete.
Comment 1•1 year ago
|
||
I wonder if we should exclude loopback hostnames from syncing at all.
Comment 2•1 year ago
|
||
I made this comment in bug 1924747 but it applies equally here. We exclude some schemes for synced tabs via the pref https://searchfox.org/mozilla-central/source/modules/libpref/init/all.js#3882. Sadly though, syncing of history does not use that, and instead appears to exclude only file:// urls (https://searchfox.org/mozilla-central/source/services/sync/modules/engines/history.sys.mjs#99).
I thought we consolidated this some time ago, but apparently not :(
Description
•