<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Content Blocker 'css-display-none' rules aren't applied when you open a website first time (from the address bar)"
href="https://bugs.webkit.org/show_bug.cgi?id=162057">162057</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Content Blocker 'css-display-none' rules aren't applied when you open a website first time (from the address bar)
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>Product</th>
<td>WebKit
</td>
</tr>
<tr>
<th>Version</th>
<td>Other
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Macintosh
</td>
</tr>
<tr>
<th>OS</th>
<td>Other
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>Major
</td>
</tr>
<tr>
<th>Priority</th>
<td>P2
</td>
</tr>
<tr>
<th>Component</th>
<td>WebKit Misc.
</td>
</tr>
<tr>
<th>Assignee</th>
<td>webkit-unassigned@lists.webkit.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>am@adguard.com
</td>
</tr></table>
<p>
<div>
<pre>#### My configuration:
Safari Version 10.0 (12602.1.50.0.10)
macOS Sierra 10.12 (16A323)
#### Steps to reproduce
1. Register a simple content blocker:
```
[{ "trigger": { "url-filter": ".*" }, "action": { "type": "css-display-none", "selector": "body" } }]
```
2. Open a new tab
3. Enter "google.com" (or any other website) and press Enter
#### Expected result
Page is empty
#### Actual result
Page is not empty. The rule will be applied after you refresh the page.
Relevant bug reports:
<a href="https://github.com/AdguardTeam/AdguardBrowserExtension/issues/153">https://github.com/AdguardTeam/AdguardBrowserExtension/issues/153</a>
<a href="https://github.com/AdguardTeam/AdguardBrowserExtension/issues/359">https://github.com/AdguardTeam/AdguardBrowserExtension/issues/359</a>
Also there was a similar issue with searching from the address bar:
<a class="bz_bug_link
bz_status_NEW "
title="NEW - Content Blocker rules are not applied to Google when you use address bar to search"
href="show_bug.cgi?id=153743">https://bugs.webkit.org/show_bug.cgi?id=153743</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>