Omnibox 结果在 Opera 中按字母顺序排序

Omnibox results are sorted alphabetically in Opera

我目前正在尝试将我的 Chrome 扩展程序 Prime Player 移植到 Opera。 它使用 chrome.omnibox API which should work exactly the same way as in Chrome according to the spec.

但是,结果似乎是按字母顺序排序的(按 SuggestResult) in Opera. This is not intended because I would like the results to be presented in the order as they are provided to the suggest callback (provided to the onInputChanged 回调的 description)。由于只显示前 5 个结果(排序后),更重要的结果不仅可能会显示得更晚,甚至可能会完全丢失。

结论:结果不应该排序,扩展开发者应该(能够)自己按优先级排序他们的结果。

我知道,这不是一个真正的问题,但除了标记为 "opera-extension" 的问题之外,没有其他可能报告有关 Opera 扩展的错误。

要验证行为,您可以只下载 sample extension mentioned at the end of the tutorial,解压缩,将第二个结果的描述从 "Do a Stack Overflow Search" 编辑为 "Stack Overflow Search",将其作为解压扩展加载并查看Chrome 中的 "Stack Overflow Search" 是第二个建议,而 Opera 中是第三个建议(因为它排在 "Search on Google" 之后)。

您实际上可以直接报告错误:https://bugs.opera.com/wizarddesktop/

关于问题 - 在我看来,不应对扩展程序设置的顺序进行排序是完全合乎逻辑的。我相信设置字母顺序是地址栏建议的默认行为,内部实现的扩展也不例外。我报告了我们系统中的错误。