add-custom-search-engine icon indicating copy to clipboard operation
add-custom-search-engine copied to clipboard

Dragging text to search not working with POST

Open account00001 opened this issue 2 years ago • 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/

account00001 avatar May 25 '23 00:05 account00001

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

evilpie avatar May 25 '23 08:05 evilpie

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

account00001 avatar May 26 '23 17:05 account00001

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.

evilpie avatar Jun 07 '23 18:06 evilpie