Changes between Version 17 and Version 19 of Ticket #6841


Ignore:
Timestamp:
08/09/2018 12:04:33 PM (15 months ago)
Author:
mjethani
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6841 – Description

    v17 v19  
    4949You should see only ''one'' instance of the text "Hello from the main frame" printed to the console. Likewise, changing the filter to `example.com#$#log 'Hello from example.com'` should print "Hello from example.com" only ''once''. But changing the filter to `127.0.0.1,example.com#$#log 'Hello'` should print "Hello" ''twice''. 
    5050 
     51Make sure that snippets intended for a subframe are not injected into the top frame. To do this, use this document: 
     52 
     53{{{ 
     54<html> 
     55  <head> 
     56    <script>window.console = null;</script> 
     57  </head> 
     58  <body> 
     59    <h1>Main Frame</h1> 
     60    <iframe src="http://example.com"></iframe> 
     61  </body> 
     62</html> 
     63}}} 
     64 
     65The filter `example.com#$#trace 'Hello from example.com'` should print "Hello from example.com"; if an error is printed to the console (because the inline script assigns the `console` object to `null`), it means the snippet is being injected into the top frame. 
     66 
    5167Please test this on both Chrome and Firefox.