sailfishos / sailfish-browser

Sailfish Browser
https://github.com/sailfishos/sailfish-browser/wiki/Sailfish-Browser-wiki
Mozilla Public License 2.0
305 stars 86 forks source link

JavaScript Error: TypeError: Services.search.addEngine is not a function #1046

Closed llewelld closed 8 months ago

llewelld commented 9 months ago

Running the browser the following error can be seen in the debug output when running with EMBED_CONSOLE=1:

JavaScript Error: "TypeError: Services.search.addEngine is not a function"
    {file: "file:///usr/lib64/mozembedlite/components/EmbedLiteSearchEngine.js" line: 53}
llewelld commented 8 months ago

This is fixed by https://github.com/llewelld/embedlite-components/commit/ff5053bc44f621bca8b9017bee96c2c60449620e. In combination with the following commits, this should also get address-bar search working again:

  1. https://github.com/llewelld/gecko-dev-mirror/commit/5ae7644719f8632ddd7930c2988ff3ddcfe5bebd
  2. https://github.com/llewelld/gecko-dev/commit/2a121aa8e75978193a0edac4c9cd7721466ba54f