This forum is a discussion about improving the "Profiles - Where Firefox stores your bookmarks, passwords and other user data" article. If you'd like to participate, please register.

If you need help with Firefox, please ask a question.

[Fx45] Where user-installed search engines are stored

  • 5 Replies
  • Last reply by Chris Ilias
  1. AliceWyman 5067 posts
    Report Abuse

    This came up in #sumo : http://logs.glob.uno/?c=mozilla%23sumo&s=29+Mar+2016&e=29...

    15:28 Caspy7 this page reports that "The search.sqlite file and searchplugins folder store the search engines that are available in the Firefox Search bar." https://support.mozilla.org/en-US/kb/profiles-where-firefox-stores-user-data 15:28 Caspy7 bug I'm seeing reports that the searchplugins directory is no longer used 15:29 Caspy7 perhaps this page needs updated? 15:29 Caspy7 two people in #firefox confirm this behavior and I think I've seen the same behavior reported previously


    The information on search engines is outdated. AFAIK the search.sqlite file is no longer used since at least Firefox 38 and is replaced by search.json ... and, starting with Firefox 45, the searchplugins folder is no longer used, with user-installed search engine data being stored in the search.json.mozlz4 file. (The profile folder only stores user-installed search engine data. Default search engines are installed in the program.)

    References: https://developer.mozilla.org/en-US/Firefox/Releases/45#Search_plugins

    Bug 1203167 - Store user-installed search plugins in a JSON file and stop loading [profile]/searchplugins/*.xml

    Bug 1255605 - Search bar broken on upgrade from 44 to 45. ... see comment 12.

    We should make the following change (if I figured it out correctly... can someone check this?):

    {for not fx45}

    • Search engines: The {filepath search.json} file and {filepath searchplugins} folder store the user-installed search engines that are available in the Firefox Search bar.

    {/for} {for fx45}

    • Search engines: The {filepath search.json.mozlz4} file stores the user-installed search engines that are available in the Firefox Search bar.

    {/for}

    I set up a "Needs change" entry

    This came up in #sumo : [http://logs.glob.uno/?c=mozilla%23sumo&s=29+Mar+2016&e=29+Mar+2016] 15:28 Caspy7 this page reports that "The search.sqlite file and searchplugins folder store the search engines that are available in the Firefox Search bar." https://support.mozilla.org/en-US/kb/profiles-where-firefox-stores-user-data 15:28 Caspy7 bug I'm seeing reports that the searchplugins directory is no longer used 15:29 Caspy7 perhaps this page needs updated? 15:29 Caspy7 two people in #firefox confirm this behavior and I think I've seen the same behavior reported previously ----- The information on search engines is outdated. AFAIK the search.sqlite file is no longer used since at least Firefox 38 and is replaced by search.json ... and, starting with Firefox 45, the searchplugins folder is no longer used, with user-installed search engine data being stored in the search.json.mozlz4 file. (The profile folder only stores '''user-installed''' search engine data. Default search engines are installed in the program.) References: https://developer.mozilla.org/en-US/Firefox/Releases/45#Search_plugins [https://bugzilla.mozilla.org/show_bug.cgi?id=1203167 Bug 1203167] - Store user-installed search plugins in a JSON file and stop loading [profile]/searchplugins/*.xml [https://bugzilla.mozilla.org/show_bug.cgi?id=1255605 Bug 1255605] - Search bar broken on upgrade from 44 to 45. ... see [https://bugzilla.mozilla.org/show_bug.cgi?id=1255605#c12 comment 12]. We should make the following change (if I figured it out correctly... can someone check this?): {for not fx45} *'''Search engines:''' The {filepath search.json} file and {filepath searchplugins} folder store the user-installed search engines that are available in the Firefox [[Search bar - Easily choose your favorite search engine|Search bar]]. {/for} {for fx45} *'''Search engines:''' The {filepath search.json.mozlz4} file stores the user-installed search engines that are available in the Firefox [[Search bar - Easily choose your favorite search engine|Search bar]]. {/for} I set up a "Needs change" entry
    Modified by AliceWyman on
  2. AliceWyman 5067 posts
    Report Abuse

    AliceWyman said

    We should make the following change (if I figured it out correctly... can someone check this?): {for not fx45}
    • Search engines: The {filepath search.json} file and {filepath searchplugins} folder store the user-installed search engines that are available in the Firefox Search bar.
    {/for} {for fx45}
    • Search engines: The {filepath search.json.mozlz4} file stores the user-installed search engines that are available in the Firefox Search bar.
    {/for} I set up a "Needs change" entry

    I have an edit pending to make the search engines paragraph for not fx45 (plus a second edit to update the article title to Search the Web on Firefox).

    Still need to confirm the above for fx45.

    ''AliceWyman [[#post-13489|said]]'' <blockquote> We should make the following change (if I figured it out correctly... can someone check this?): {for not fx45} *'''Search engines:''' The {filepath search.json} file and {filepath searchplugins} folder store the user-installed search engines that are available in the Firefox [[Search bar - Easily choose your favorite search engine|Search bar]]. {/for} {for fx45} *'''Search engines:''' The {filepath search.json.mozlz4} file stores the user-installed search engines that are available in the Firefox [[Search bar - Easily choose your favorite search engine|Search bar]]. {/for} I set up a "Needs change" entry </blockquote> I have an edit pending to make the search engines paragraph for not fx45 (plus a second edit to update the article title to [[Use the Search bar in Firefox]]). Still need to confirm the above for fx45.
  3. AliceWyman 5067 posts
    Report Abuse

    P.S. There's also a search-metadata.json file. From what I can figure, this stores the order of search engines shown in the search bar as well as the default engine. Related bug:

    Bug 1029148 – store "current search engine" configuration outside of prefs


    We'll also need to update other articles that mention search engine data storage, like Recovering important data from an old profile.

    P.S. There's also a '''search-metadata.json''' file. From what I can figure, this stores the order of search engines shown in the search bar as well as the default engine. Related bug: [https://bugzilla.mozilla.org/show_bug.cgi?id=1029148 Bug 1029148] – store "current search engine" configuration outside of prefs ----- We'll also need to update other articles that mention search engine data storage, like [[Recovering important data from an old profile]].
  4. John99 3665 posts
    Report Abuse

    Alice, I will approve your revisions. I am not sure if you have unanswered questions, but this is well overdue for change. The information is also of course useful for browser hijack situations

    I can confirm FX38 has search.json not search.sqlite search-metadata.json also apparently enables search plugins.

    Of interest but no relevance to the article being written ! I note Fx38 ESR does not need a searchplugins folder but may generate one when a new search plugin is added. That will contain the new <searchname>.xml but there is no need to retain that in the profile. I am able to see the new search engine icon, data & url is incorporated in the newly modified search.json & the new search is added to search-metada.json

    Alice, I will approve your revisions. I am not sure if you have unanswered questions, but this is well overdue for change. The information is also of course useful for browser hijack situations I can confirm FX38 has search.json not search.sqlite search-metadata.json also apparently enables search plugins. Of interest but no relevance to the article being written ! I note Fx38 ESR does not need a searchplugins folder but may generate one when a new search plugin is added. That will contain the new <searchname>.xml but there is no need to retain that in the profile. I am able to see the new search engine icon, data & url is incorporated in the newly modified search.json & the new search is added to search-metada.json
  5. John99 3665 posts
    Report Abuse

    OK so now do we need to deal with user changes in FX 45 that will still be search-metadata.json AND it will be search.json.mozlz4

    I do not know if searchplugins has an effect. I am guessing if it is present it will incorporate changes in the above mentioned files, or will incorporate changes when installed or reinstalled. I will check what happens in practice on Fx45 but it may not be until Saturday when I get round to checking on Fx45.


    Update DE also creates searchplugins folders in Fx47.0a2

    Questions not answered yet from bugs, documents or experiment:

    • When is such a folder required ?
    • What happens on a reinstall or upgrade?
      For instance on a version upgrade; if someone has search plugins; is the searchplugins folder required or are the searchmetadata.json and search.json,mozlx4 sufficient
    OK so now do we need to deal with user changes in FX 45 that will still be ''search-metadata.json'' AND it will be ''search.json'''.mozlz4''''' I do not know if ''searchplugins'' has an effect. I am guessing if it is present it will incorporate changes in the above mentioned files, or will incorporate changes when installed or reinstalled. I will check what happens in practice on Fx45 but it may not be until Saturday when I get round to checking on Fx45. ------- Update DE also creates searchplugins folders in Fx47.0a2 Questions not answered yet from bugs, documents or experiment: *When is such a folder required ? * What happens on a reinstall or upgrade? <br>For instance on a version upgrade; if someone has search plugins; is the ''searchplugins'' folder required or are the searchmetadata.json and ''search.json,mozlx4'' sufficient
    Modified by John99 on
  6. Chris Ilias 2034 posts
    Report Abuse

    I just created a test profile on windows 10, added a search engine, and re-arranged them. The only corresponding file in my profile folder is search.json.mozlz4. No search-metadata.json file; no searchplugins folder.

    I've submitted an update to this article, adding search.json.mozlz4

    I just created a test profile on windows 10, added a search engine, and re-arranged them. The only corresponding file in my profile folder is search.json.mozlz4. No search-metadata.json file; no searchplugins folder. I've submitted an update to this article, adding search.json.mozlz4