evilpie/add-custom-search-engine

Dragging text to search not working with POST

account00001 opened this issue · 3 comments

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/

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

{
    "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"
    }
}

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.