send_report.html (589B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>Clear-Site-Data</title> 5 <script src="test_utils.sub.js"></script> 6 </head> 7 <body> 8 <script> 9 /** 10 * A map between a datatype name and whether it is empty. 11 * @property Object.<string, boolean> 12 */ 13 var report = {}; 14 15 Promise.all(TestUtils.DATATYPES.map(function(datatype) { 16 return datatype.isEmpty().then(function(isEmpty) { 17 report[datatype.name] = isEmpty; 18 }); 19 })).then(function() { 20 window.top.postMessage(report, "*"); 21 }); 22 </script> 23 </body> 24 </html>