el1t / uBlock-Safari

uBlock Origin - An efficient blocker for Chromium, Firefox, and Safari. Fast and lean.
GNU General Public License v3.0
2.74k stars 97 forks source link

Problem with search bar autocompletion #78

Open mu-arch opened 7 years ago

mu-arch commented 7 years ago

Describe the issue

When I am trying to get work done I create a custom filter to block reddit.com and news.ycombinator.com.

When I start typing the letter"r" or "n" in the search bar safari suggests Reddit or Hacker News respectively because I visit those sites frequently. The problem is: Ublock Origin notices these URLs and clears the search bar text back to empty. This means when I start typing anything with those letters it keeps clearing the bar and I can never type anything even when I have no intention of visiting the sites I mentioned.

One or more specific URLs where the issue occurs

[URL(s) for issue on a specific site are mandatory]

Screenshot in which the issue can be seen

[Screenshot(s) for visual issues are mandatory]

Steps for anyone to reproduce the issue

  1. Choose a website you visit frequently enough that Safari suggests that website as soon as you type the first letter of it's domain (for example reddit.com would be letter "r".

  2. In Ublock Origin settings go to the "My FIlters" tab and enable a filter for the TLD (for example "reddit.com"

  3. If you declared a filter for "reddit.com" start typing a word like "rednation". Before you can complete the word Ublock will delete the entire text of the search bar and it will be blank again.

Your settings

[If you fail to provide this info, I will mark the issue as invalid. Lists all settings which differs from default settings]

Your filter lists

[Example: "Default filter lists + FRA", or "Default filter lists minus uBlock -- Badware risks"]

Your custom filters (if any)

reddit.com news.ycombinator.com

mu-arch commented 7 years ago

Oddly after reinstalling uBlock Origin I'm not getting the issue any more. However by flipping my filters on and off before I reinstalled it was toggling my problem so I believe it had to have been uBlock causing the issue. I will leave the Github issue open for others to comment.

mu-arch commented 7 years ago

Okay I have begun to have the problem again. It seems to be related to Safari's "Preload Top Hits in the background" feature.