Changes between Version 7 and Version 14 of Ticket #6969


Ignore:
Timestamp:
11/08/2018 01:04:30 AM (16 months ago)
Author:
mjethani
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6969

    • Property Status changed from reviewing to closed
    • Property Resolution changed from to fixed
  • Ticket #6969 – Description

    v7 v14  
    44 
    55=== What to change === 
    6 Add a snippet abort-on-property-read snippet that prevent reading a property. 
     6Add a `snippet abort-on-property-read` snippet that prevent reading a property. 
    77 
    8 === Notes for testers === 
     8=== Hints for testers === 
    99 
    10 * visit chefkoch.de, pcwelt.de, vox.de or cinema.de 
    11   * take note of the ads 
    12 * Add the following filters: 
     10Try this: 
     11 
    1312{{{ 
    14 chefkoch.de,pcwelt.de,vox.de,cinema.de#$#abort-on-property-read trckd 
    15 chefkoch.de,pcwelt.de,vox.de,cinema.de#$#abort-on-property-read uabpd3 
     13<!-- test.html --> 
     14<div> 
     15  Lorem ipsum dolor sit amet, consectetur 
     16  adipiscing elit, sed do eiusmod tempor 
     17  incididunt ut labore et dolore magna aliqua. 
     18</div> 
     19<script src="script.js"></script> 
    1620}}} 
    17 * visit again. Ads should be gone. 
     21 
     22{{{ 
     23/* script.js */ 
     24adsShown = false; 
     25 
     26setTimeout(() => 
     27 
     28  if (!adsShown) 
     29  { 
     30    let ad = document.createElement("div"); 
     31    ad.id = Math.random().toString(36).substring(2); 
     32    ad.innerHTML = "<div><span>Check this!</span><span class='label'>Ad</span></div>"; 
     33    document.body.appendChild(ad); 
     34 
     35    adsShown = true; 
     36  } 
     37}, 
     38500); 
     39}}} 
     40 
     41When you load this page, it should show the "Check this!" ad. If you then add the filter `localhost#$#abort-on-property-read adsShown` and reload the page, the ad should no longer be shown. Also there should be no error in the tab's console.