<?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>153559</bug_id>
          
          <creation_ts>2016-01-27 14:26:19 -0800</creation_ts>
          <short_desc>Feature request: add &quot;subdocument&quot; resource type for content blockers</short_desc>
          <delta_ts>2021-05-19 14:20:08 -0700</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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>219001</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</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>aitte</cc>
    
    <cc>benjamin</cc>
    
    <cc>mjs</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1159426</commentid>
    <comment_count>0</comment_count>
    <who name="Andrey Meshkov">am</who>
    <bug_when>2016-01-27 14:26:19 -0800</bug_when>
    <thetext>Currently there is no way to distinguish frames from top windows.
Meanwhile this can be really useful for ad blocking.

Please read this github issue comments to find out why it may be useful:
https://github.com/AdguardTeam/AdguardBrowserExtension/issues/145</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1198601</commentid>
    <comment_count>1</comment_count>
    <who name="">aitte</who>
    <bug_when>2016-06-02 12:02:13 -0700</bug_when>
    <thetext>Dear Webkit developers, improving the Content Blocker API is very important! It is so close to being great but its limitations hold it back.

The #1 source of Content Blocker rules in Safari is via the Adblock Plus formatted lists, and people converting them into Content Blocker rules.

All of those lists contain &quot;subdocument&quot; blockers to remove ad-iframes, but to allow direct visits to those pages.

Since Safari doesn&apos;t distinguish between iframes and direct visits, those rules cannot be written in Safari&apos;s Content Blocker. Leading to bugs like this:

https://github.com/AdguardTeam/AdguardBrowserExtension/issues/262

Please, improve the Content Blocker API. It&apos;s very close to being superb, it just needs more features to uncripple it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1526649</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-04-11 22:54:12 -0700</bug_when>
    <thetext>&lt;rdar://problem/49841407&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1761705</commentid>
    <comment_count>3</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2021-05-19 14:20:08 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 219001 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>