mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 07:48:38 +09:00
Write out serialized search engine files when rebuilding cache.
This makes sure that any in-browser edits of search engines (searchplugins) are made permanent on disk. Ref: https://forum.palemoon.org/viewtopic.php?f=13&t=20296 (Ketmar)
This commit is contained in:
parent
49fc92f4a1
commit
f99050d1d8
1 changed files with 5 additions and 0 deletions
|
|
@ -3058,6 +3058,11 @@ SearchService.prototype = {
|
|||
continue;
|
||||
}
|
||||
|
||||
// Write out serialized search engine files when rebuilding cache.
|
||||
if (!engine._readOnly && engine._file) {
|
||||
engine._serializeToFile();
|
||||
}
|
||||
|
||||
let cacheKey = parent.path;
|
||||
if (!cache.directories[cacheKey]) {
|
||||
let cacheEntry = {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue