<?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>151702</bug_id>
          
          <creation_ts>2015-12-01 02:57:12 -0800</creation_ts>
          <short_desc>Content Blocker does not apply &quot;css-display-none&quot; rules when page is loaded in non-active tab</short_desc>
          <delta_ts>2020-02-19 03:31:51 -0800</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>Safari 9</version>
          <rep_platform>All</rep_platform>
          <op_sys>iOS 9.0</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></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>benjamin</cc>
    
    <cc>krzysztof.modras</cc>
    
    <cc>mjs</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1145215</commentid>
    <comment_count>0</comment_count>
    <who name="Andrey Meshkov">am</who>
    <bug_when>2015-12-01 02:57:12 -0800</bug_when>
    <thetext>Steps to reproduce (tested on ipad mini 2):

1. Register a simple content blocker with one rule (hiding &quot;share&quot; buttons on macrumors.com)
[{trigger: {url-filter: &quot;.*&quot;, resource-type: [&quot;document&quot;], if-domain: [&quot;*macrumors.com&quot;]}, action: {type: &quot;css-display-none&quot;, selector: &quot;.social&quot;}}]
2. Open macrumors.com. Share buttons are hidden http://screencast.com/t/88mfI2UM
3. Tap on the article header and select &quot;Open in New Tab&quot;
4. Wait a bit then switch to that new tab

Expected result:
Share buttons should be hidden

Real result:
Share buttons block is visible
The block will be hidden if you refresh the page</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1612361</commentid>
    <comment_count>1</comment_count>
    <who name="Andrey Meshkov">am</who>
    <bug_when>2020-01-29 01:59:53 -0800</bug_when>
    <thetext>The issue is still there.

Here&apos;s an easier way to reproduce:

1. Register a simple content blocker with one rule (hiding &quot;share&quot; buttons on macrumors.com)
[{trigger: {url-filter: &quot;.*&quot;, if-domain: [&quot;*iana.org&quot;]}, action: {type: &quot;css-display-none&quot;, selector: &quot;body&quot;}}]
2. Open example.org
3. Cmd+Click on the &quot;More information...&quot; link
4. Wait a bit then switch to the IANA tab


Expected result:
The page content is hidden

Actual result:
Nothing is hidden, you need to refresh the page for the rules to be applied</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1620599</commentid>
    <comment_count>2</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2020-02-19 02:40:30 -0800</bug_when>
    <thetext>Strange that opening in a background tab would have an effect.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1620619</commentid>
    <comment_count>3</comment_count>
    <who name="Andrey Meshkov">am</who>
    <bug_when>2020-02-19 03:31:51 -0800</bug_when>
    <thetext>Huh, it seems that this issue is invalid after all.

Most likely I&apos;ve not waited enough for a content blocker to be compiled and applied.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>