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

Dragging text to search not working with POST #56

Open account00001 opened 1 year ago

account00001 commented 1 year ago

Select some text, drag it up to the tab bar and release to create a new tab. Normally this will search the selected text in the given search engine without the need to copy and paste, however when the search engine is set to POST, the selected text is not sent properly.

https://html.duckduckgo.com/html/

evilpie commented 1 year ago

That sounds more like a Firefox problem to me. Please post your search engine config.

account00001 commented 1 year ago
{
    "version": 6,
    "engines": [
        {
            "_name": "DuckDuckGo HTML",
            "_loadPath": "[https]paste.mozilla.org/duckduckgo-html.xml",
            "description": "",
            "_iconURL": "",
            "_iconMapObj": null,
            "_metaData": {
                "loadPathHash": "QrBh6jgRPkOIXo3v7OlpOF0OPssSgTpzOVef1mTGU78=",
                "order": 7
            },
            "_urls": [
                {
                    "params": [
                        {
                            "name": "q",
                            "value": "{searchTerms}"
                        }
                    ],
                    "rels": [],
                    "template": "https://html.duckduckgo.com/html/",
                    "method": "POST"
                }
            ],
            "_orderHint": null,
            "_telemetryId": null,
            "_updateInterval": null,
            "_updateURL": null,
            "_iconUpdateURL": null,
            "_filePath": null,
            "_extensionID": null,
            "_locale": null,
            "_definedAliases": [],
            "__searchForm": "https://html.duckduckgo.com"
        }
    ],
    "metaData": {
        "current": "DuckDuckGo HTML",
        "hash": "Z0eXugj4zOr1wikEb54tHxH8ztrZGuXm52s8savW/wk=",
        "useSavedOrder": true,
        "locale": "en-US",
        "region": "US",
        "channel": "release",
        "experiment": "",
        "distroID": "",
        "appDefaultEngine": "Google"
    }
}
evilpie commented 1 year ago

Thanks. What I actually meant was "Open SearchXML preview" button in the addon's advanced mode, which shows the OpenSearch XML.

Does the search work correctly when using the search bar in Firefox? It's possible that for some reason Firefox doesn't support POST requests for that specific case.