[Webkit-unassigned] [Bug 146868] New: unless-domain and if-domain in Content Blocker don't appear to work

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 10 19:29:46 PDT 2015


https://bugs.webkit.org/show_bug.cgi?id=146868

            Bug ID: 146868
           Summary: unless-domain and if-domain in Content Blocker don't
                    appear to work
    Classification: Unclassified
           Product: WebKit
           Version: 525.x (Safari 3.2)
          Hardware: iOS
                OS: Other
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: bugzilla at laccheo.com

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150711/3b4b0d79/attachment.html>


More information about the webkit-unassigned mailing list