Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show warning/hint when search keyword triggers even when option is disabled #80

Open
mlissner opened this issue Mar 1, 2020 · 6 comments
Labels
enhancement New feature or request

Comments

@mlissner
Copy link

mlissner commented Mar 1, 2020

Bug description

STR:

  1. Disable search bar interaction
  2. Press CTRL+L to put your cursor in the URL bar (clicking would work too)
  3. Search for "emoji slapping forehead" (without quotes)
  4. Press enter
  5. You're at the settings for the emoji picker!

Weird!

Expected behavior

This should just do the query, since before now I knew nothing about the search bar feature (and it's off)

System

Browser and version: Firefox
Add-on version: 1.2

@mlissner mlissner added the bug Something isn't working label Mar 1, 2020
@rugk
Copy link
Owner

rugk commented Mar 1, 2020

Yes, this is expected, because I can only statically define the keyword search. I cannot enable or disable it. Thus, I either can ignore that and no search will trigger.
So to not do nothing, I at least do show the error page.

Thus I cannot really solve that.

@mlissner
Copy link
Author

mlissner commented Mar 2, 2020

Makes sense. It doesn't really go to an error page though so much as a settings page. Maybe just tweak that?

(I'll say from a privacy perspective I was pretty surprised when my search got sent to you. I have an extension I manage with a search bar feature too though, so perhaps that's just par for the course. The difference though is that my search keyword is more specific — it's a more uncommon word — so it's pretty unlikely people would stumble upon the error like I did here. OTOH, sending you this query about emojis doesn't tell you much.)

Anyway, a simple fix might be a better error page?

@rugk
Copy link
Owner

rugk commented Mar 3, 2020

Okay, I can see the issue with privacy. I deliberately choose a common (and short) word, so it is easy to search for.

The idea behind opening the options page was that you see the feature at the bottom there and can enable it. And do know what triggered that mhh...

But showing an additional error may not be a bad idea. (as it is not that obvious) Anyway on the options page, IMHO, then.

@rugk rugk changed the title Search keyword triggers on Firefox even when option is off Show warning/hint when search keyword triggers even when option is disabled Mar 3, 2020
@rugk rugk added enhancement New feature or request and removed bug Something isn't working labels Mar 3, 2020
@rugk
Copy link
Owner

rugk commented Mar 3, 2020

Another workaround would be to trigger the default search. That, is actually already implemented, and you only need to grant the add-on the "search" permission for that. (I need that, because I otherwise cannot know/read your default search engine.) I've complained about this before.
However, I did not want to request that permission, because I don't need it for anything else. Also, given it cannot be requested at runtime, because it is not an optional permission, that would even trigger at the next add-on update and make it the only permission to be explicitly shown at runtime.

Edit: I just saw I thought about this issue before, see this forum thread.

@mlissner
Copy link
Author

mlissner commented Mar 4, 2020

What's worse is that when the upgrade rolled out, all your current users would have to agree to it. When we've done that in the past we load hoards of users overnight. Maybe they weren't our top users, but still, it hurt.

The idea behind opening the options page was that you see the feature at the bottom there and can enable it. And do know what triggered that mhh...

Yeah, I figured it out, but I'm a developer, FF fan, and am even familiar with extensions. Anyway, thanks for thinking about this. And thanks for the extension. I use it a lot.

@rugk
Copy link
Owner

rugk commented Mar 4, 2020

What's worse is that when the upgrade rolled out, all your current users would have to agree to it.

What do you mean. The "search" permission? Yes, that's what I've said and did not want to do.
One may always do so in a later update though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants