evilpie / add-custom-search-engine

Add a custom search engine to the list of available search engines in Firefox
https://addons.mozilla.org/en-US/firefox/addon/add-custom-search-engine/
Mozilla Public License 2.0
173 stars 13 forks source link

Firefox could not download the search plugin from: https://paste.mozilla.org/... #64

Closed blueglyph closed 2 months ago

blueglyph commented 2 months ago

I cannot add a custom engine. When I complete the last but one step, I get an error (Firefox could not download the search plugin from: https://paste.mozilla.org/...)

Steps to reproduce

=> I got a page telling me "Almost done just two more steps" [sic]

=> I got an error in a popup, saying

Firefox could not download the search plugin from: https://paste.mozilla.org/DmDjpMMK/raw

image

What I tried

=> no change

=> I got the following page:

<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>Google&#95;en</ShortName>

<InputEncoding>UTF-8</InputEncoding>

<Url type="text/html" method="GET" template="google.co.uk/search?q={searchTerms}&amp;{google:RLZ}{google:originalQueryForSuggestion}{google:assistedQueryStats}{google:searchFieldtrialParameter}{google:language}{google:prefetchSource}{google:searchClient}{google:sourceId}{google:contextualSearchVersion}ie={inputEncoding}"/>

</OpenSearchDescription>

Environment

Windows 10, 64-bit Firefox version 127.0.1

blueglyph commented 2 months ago

After trying many things, it seems to work without an underscore or a space in the name... See below. The problem was in the URL: it was missing https:// in front. So maybe it's not as much a problem of downloading the paste content than applying it as search engine.

evilpie commented 2 months ago

I've seen a lot of problems when using built-in engine names before, but it's still surprising that Google_en doesn't work.

blueglyph commented 2 months ago

I've seen a lot of problems when using built-in engine names before, but it's still surprising that Google_en doesn't work.

My mistake: there were two changes. I've tried again, and Google_en is fine, but not prefixing the URL with https:// isn't.

It's not a very intuitive error message, though.