Bug 153743 - Content Blocker rules are not applied to Google when you use address bar to search
Summary: Content Blocker rules are not applied to Google when you use address bar to s...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Mac OS X 10.11
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-01 08:43 PST by Andrey Meshkov
Modified: 2017-01-25 10:07 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Meshkov 2016-02-01 08:43:40 PST
Original issue:
https://github.com/AdguardTeam/AdguardBrowserExtension/issues/153

#### Steps to reproduce:
1. Register the following content blocker (should be enough to block most of google search ads ads):
[
    {
        "trigger": {
            "url-filter": ".*"
        },
		"action": {
		    "type": "css-display-none",
		    "selector": "#taw, #rhs_block > #mbEnd, #tads.c, #tads, #mbEnd, .ads-ad"
		}
    }
]

2. First of all, navigate to google.com and check that ads are hidden.
3. Open a new tab.
4. Enter some popular commercial search query in the address bar ("buy iphone 6s gold" for instance).
5. Press "Enter".

#### Expected result:
Ads should be hidden

#### In fact:
Ads are not hidden.
More than this, ads are not hidden even if I refresh the page (or enter some other search query).
Comment 1 Andrey Meshkov 2016-02-03 00:49:22 PST
Here is an easier way to see what's going on. Instead of hiding ads, let's hide the whole page.

New steps for reproducing the issue:
1. Disable all ad filters
2. Add one rule: { action: { type: 'css-display-none', selector: 'body' } }
This rule hides the whole page.
3. Enter "https://www.google.com/" and press enter
4. The page is hidden (that's expected)
5. Now open new tab and enter "buy iphone 6s" in the address bar and press "Enter"

Expected result:
Whole page is hidden

In fact:
Page is not hidden.
It is not hidden even after you refresh the page.
Comment 2 ttam110 2016-02-20 15:21:46 PST
+1
Comment 3 Andrey Meshkov 2017-01-25 10:07:56 PST
Seems to be fixed.