OLD | NEW |
---|---|
(Empty) | |
1 <!doctype html> | |
2 <html> | |
3 <body> | |
4 <iframe id="frame" src="chrome-extension://ficgdghpakbhhkmdjamiedmcoobamkoo/publ ic.html"></iframe> | |
5 <script> | |
Devlin
2016/07/14 16:46:35
due to the semi-ambiguous ordering of when blink c
asargent_no_longer_on_chrome
2016/07/20 21:36:47
Done. Also added tests of existent/nonexisting pag
| |
6 var didRun = false; | |
7 var id; | |
8 var frame = document.getElementById("frame"); | |
9 try { | |
10 id = frame.contentWindow.eval("chrome.runtime.id"); | |
11 frame.contentWindow.eval("chrome.runtime.sendMessage(" + | |
12 "'mlmdejkkkhmhchpmepehbcncoalclded', 'evil')"); | |
13 } catch (e) {} | |
14 didRun = true; | |
15 | |
16 function getResult() { | |
17 window.domAutomationController.send(didRun && typeof(id) == "undefined"); | |
Devlin
2016/07/14 16:46:35
typeof is an operator, not a function, so this sho
asargent_no_longer_on_chrome
2016/07/20 21:36:47
Done.
| |
18 } | |
19 | |
20 </script> | |
21 </body> | |
22 </html> | |
OLD | NEW |