Changes between Version 6 and Version 12 of Ticket #7236


Ignore:
Timestamp:
03/20/2019 05:22:36 PM (11 months ago)
Author:
hfiguiere
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7236

    • Property Ready set
    • Property Cc amr added
    • Property Priority changed from Unknown to P2
  • Ticket #7236 – Description

    v6 v12  
    77 
    88=== Hint to testers === 
    9 TBD 
     9 
     10==== Read ==== 
     11 
     12Adapted from issue #6969 
     13 
     14{{{ 
     15<!-- test.html --> 
     16<div> 
     17  Lorem ipsum dolor sit amet, consectetur 
     18  adipiscing elit, sed do eiusmod tempor 
     19  incididunt ut labore et dolore magna aliqua. 
     20</div> 
     21<script src="script.js"></script> 
     22}}} 
     23 
     24{{{ 
     25/* script.js */ 
     26adsOptions = {shown: false}; 
     27 
     28setTimeout(() => 
     29 
     30  if (!adsOptions.shown) 
     31  { 
     32    let ad = document.createElement("div"); 
     33    ad.id = Math.random().toString(36).substring(2); 
     34    ad.innerHTML = "<div><span>Check this!</span><span class='label'>Ad</span></div>"; 
     35    document.body.appendChild(ad); 
     36 
     37    adsOptions.shown = true; 
     38  } 
     39}, 
     40500); 
     41}}} 
     42 
     43When you load this page, it should show the "Check this!" ad. If you then add the filter `localhost#$#abort-on-property-read adsOptions.shown` and reload the page, the ad should no longer be shown. Also there should be no error in the tab's console. 
     44 
     45==== Write ==== 
     46 
     47Adapted from issue #7207 
     48 
     49Use the same HTML as above. 
     50 
     51{{{ 
     52/* script.js */ 
     53setTimeout(() => 
     54 
     55  if (!window.adsOptions || !window.adsOptions.showing) 
     56  { 
     57    if (!window.adsOptions || typeof window.adsOptions != "object") 
     58      window.adsOptions = {}; 
     59    window.adsOptions.showing = true; 
     60    let ad = document.createElement("div"); 
     61    ad.id = Math.random().toString(36).substring(2); 
     62    ad.innerHTML = "<div><span>Check this!</span><span class='label'>Ad</span></div>"; 
     63    document.body.appendChild(ad); 
     64  } 
     65}, 
     66500); 
     67}}} 
     68 
     69When you load this page, it should show the "Check this!" ad. If you then add the filter `localhost#$#abort-on-property-write adsOptions.showing` and reload the page, the ad should no longer be shown. Also there should be no error in the tab's console.