firefox resets default search engine on i686
On i686 systems, firefox resets the search engine to the default one at every start.
I see this bug as well. Rebuilding the firefox xbps package did not eliminate it. However, the Firefox linux 32 bit binary downloaded directly from Mozilla does not have this bug.
Thanks for reporting and testing with the Mozilla binary.
If you want to debug this further, I think it would be interesting to compare search.json.mozlz4 from the profile between the version from the void repos and the Mozilla binary.
Here is a tool to decode the mozlz4 file.
The file search.json.mozlz4 updates appropriately the current search engine, if it is changed from default. This change persists after Firefox is closed. However, the next time Firefox starts, it overwrites search.json.mozlz4, removing the "current" search engine. This file is overwritten even if ownership is changed to "root", with no write permissions. Other customization, at least the addition of a separate search box to the Toolbar, seems to be preserved. Very confusing.
Additional clues from jsconsole. I suspect the "invalid array length" is important.
SearchService.init
_init start
SearchService.init
_readCacheFile: Error reading cache file: RangeError: invalid array length
Then later:
_loadEngines: Absent or outdated cache. Loading engines from disk.
and
batchTask: Invalidating engine cache
_buildCache: Writing to cache file.
_buildCache: cache file written to disk.
_readCacheFile: Error reading cache file: RangeError: invalid array length
I suspect the "invalid array length" is important
I looked a bit into further.
It seems, that the lz4 decoding in OS.File.read() fails on i686.
It works for the same file on x86_64.
Correction: it's not the lz4 decoding but OS.File.stat().size which is off by 2^44