<?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>146884</bug_id>
          
          <creation_ts>2015-07-11 15:20:16 -0700</creation_ts>
          <short_desc>iOS 9 Beta 3 Content Blocker Extension - Enable CSS Display Inline</short_desc>
          <delta_ts>2022-07-14 16:11:14 -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>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>Other</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dean Murphy">deano.uk</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>benjamin</cc>
    
    <cc>bfulgham</cc>
    
    <cc>deano.uk</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1108983</commentid>
    <comment_count>0</comment_count>
    <who name="Dean Murphy">deano.uk</who>
    <bug_when>2015-07-11 15:20:16 -0700</bug_when>
    <thetext>Hi team,

I have been working to create a content blocker but have found that some websites hide content when they detect particular elements have been blocked by using &quot;display: none&quot; within the CSS on particular elements.

We have access to the selector css-display-none to hide our own elements, but it would be great if we can also have access to css-display-inline and/or css-display-block to un-hide elements.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1109118</commentid>
    <comment_count>1</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2015-07-13 10:00:50 -0700</bug_when>
    <thetext>(In reply to comment #0)
&gt; Hi team,
&gt; 
&gt; I have been working to create a content blocker but have found that some
&gt; websites hide content when they detect particular elements have been blocked
&gt; by using &quot;display: none&quot; within the CSS on particular elements.
Could you post or at least send me an example of this? Couldn&apos;t you just add rules to skip hiding those particular elements?
&gt; 
&gt; We have access to the selector css-display-none to hide our own elements,
&gt; but it would be great if we can also have access to css-display-inline
&gt; and/or css-display-block to un-hide elements.
I do think this might be useful, but I don&apos;t think that this would prevent websites from detecting if content has been blocked.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1109185</commentid>
    <comment_count>2</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2015-07-13 13:02:22 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; &gt; We have access to the selector css-display-none to hide our own elements,
&gt; &gt; but it would be great if we can also have access to css-display-inline
&gt; &gt; and/or css-display-block to un-hide elements.
&gt; I do think this might be useful, but I don&apos;t think that this would prevent
&gt; websites from detecting if content has been blocked.

We could also make CSSOM lie about the element. Reporting the display as if the user stylesheet was not installed.

But I don&apos;t think that would work either. There are many visible side effects to content blocker, they would just move on to the next one.

Dean, can you give us your example of website that break with your content blocker? If it cannot be shared publicly here, feel free to email it to Alex and myself.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1109311</commentid>
    <comment_count>3</comment_count>
    <who name="Dean Murphy">deano.uk</who>
    <bug_when>2015-07-13 19:35:47 -0700</bug_when>
    <thetext>&gt; Could you post or at least send me an example of this? Couldn&apos;t you just add
&gt; rules to skip hiding those particular elements?

&gt; &gt; We have access to the selector css-display-none to hide our own elements,
&gt; &gt; but it would be great if we can also have access to css-display-inline
&gt; &gt; and/or css-display-block to un-hide elements.
&gt; I do think this might be useful, but I don&apos;t think that this would prevent
&gt; websites from detecting if content has been blocked.

Hi, I have emailed an example to both of you (Alex &amp; Ben).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1883808</commentid>
    <comment_count>4</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-07-14 14:31:42 -0700</bug_when>
    <thetext>@Alex: Was there further action needed here?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1883887</commentid>
    <comment_count>5</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2022-07-14 16:11:14 -0700</bug_when>
    <thetext>I don&apos;t recall.  I haven&apos;t seen other requests similar to this, though.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>