<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>153743</bug_id>
          
          <creation_ts>2016-02-01 08:43:40 -0800</creation_ts>
          <short_desc>Content Blocker rules are not applied to Google when you use address bar to search</short_desc>
          <delta_ts>2017-01-25 10:07:56 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.11</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andrey Meshkov">am</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>benjamin</cc>
    
    <cc>mateen110</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1160855</commentid>
    <comment_count>0</comment_count>
    <who name="Andrey Meshkov">am</who>
    <bug_when>2016-02-01 08:43:40 -0800</bug_when>
    <thetext>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):
[
    {
        &quot;trigger&quot;: {
            &quot;url-filter&quot;: &quot;.*&quot;
        },
		&quot;action&quot;: {
		    &quot;type&quot;: &quot;css-display-none&quot;,
		    &quot;selector&quot;: &quot;#taw, #rhs_block &gt; #mbEnd, #tads.c, #tads, #mbEnd, .ads-ad&quot;
		}
    }
]

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 (&quot;buy iphone 6s gold&quot; for instance).
5. Press &quot;Enter&quot;.

#### 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).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1161602</commentid>
    <comment_count>1</comment_count>
    <who name="Andrey Meshkov">am</who>
    <bug_when>2016-02-03 00:49:22 -0800</bug_when>
    <thetext>Here is an easier way to see what&apos;s going on. Instead of hiding ads, let&apos;s hide the whole page.

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

Expected result:
Whole page is hidden

In fact:
Page is not hidden.
It is not hidden even after you refresh the page.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1166788</commentid>
    <comment_count>2</comment_count>
    <who name="ttam110">mateen110</who>
    <bug_when>2016-02-20 15:21:46 -0800</bug_when>
    <thetext>+1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1269867</commentid>
    <comment_count>3</comment_count>
    <who name="Andrey Meshkov">am</who>
    <bug_when>2017-01-25 10:07:56 -0800</bug_when>
    <thetext>Seems to be fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>