<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 - unless-domain and if-domain in Content Blocker don't appear to work"
href="https://bugs.webkit.org/show_bug.cgi?id=146868">146868</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>unless-domain and if-domain in Content Blocker don't appear to work
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>Product</th>
<td>WebKit
</td>
</tr>
<tr>
<th>Version</th>
<td>525.x (Safari 3.2)
</td>
</tr>
<tr>
<th>Hardware</th>
<td>iOS
</td>
</tr>
<tr>
<th>OS</th>
<td>Other
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>Normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P2
</td>
</tr>
<tr>
<th>Component</th>
<td>WebCore Misc.
</td>
</tr>
<tr>
<th>Assignee</th>
<td>webkit-unassigned@lists.webkit.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>bugzilla@laccheo.com
</td>
</tr></table>
<p>
<div>
<pre>I am playing with the new Content Blocker extensions on iOS 9 beta 2/3 using Xcode 7.0 beta 2/3 and an iPhone 6.
I was trying to block all webpages except those of white-listed domains. I thought this should do it:
[
{
"action": {
"type": "block"
},
"trigger": {
"url-filter": ".*",
"unless-domain": ["apple.com"]
}
}
]
I would expect this to block all domains except Apple from loading, but instead all domains are blocked.
If I change it to:
[
{
"action": {
"type": "block"
},
"trigger": {
"url-filter": ".*",
"if-domain": ["apple.com"]
}
}
]
I would expect only Apple to be blocked while all other domains load correctly, but instead all domains including Apple load.
My apologies if I'm missing something obvious; I'm brand new to programming.</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>