1 <html> 2 <head> 3 <script src="inspector-wrappers-test-utils.js"></script> 4 <script> 5 window.alert = function(consolePanel) { 6 var _addMessage = consolePanel.addMessage; 7 consolePanel.addMessage = function() { 8 doAttack(consolePanel.addMessage); 9 consolePanel.addMessage = _addMessage; 10 } 11 } 12 </script> 13 </head> 14 <body> 15 <script>instructions({console: true, trigger: "alert(this)"});</script> 16 </body> 17 </html> 18