| OLD | NEW |
| 1 <script type="text/javascript"> | 1 <script type="text/javascript"> |
| 2 function loadAbort(evt) { | 2 function loadAbort(evt) { |
| 3 document.title = evt.type; | 3 document.title = evt.type; |
| 4 } | 4 } |
| 5 function loadStart(evt) { | 5 function loadStart(evt) { |
| 6 document.title = evt.url; | 6 document.title = evt.url; |
| 7 } | 7 } |
| 8 function loadStop(evt) { |
| 9 document.title = "loadStop"; |
| 10 } |
| 11 |
| 12 var commitIsTopLevel; |
| 13 function loadCommit(evt) { |
| 14 document.title = "loadCommit:" + evt.url; |
| 15 commitIsTopLevel = evt.isTopLevel; |
| 16 } |
| 17 |
| 8 var redirectOldUrl; | 18 var redirectOldUrl; |
| 9 var redirectNewUrl; | 19 var redirectNewUrl; |
| 10 function loadRedirect(event) { | 20 function loadRedirect(event) { |
| 11 document.title = "redirected"; | 21 document.title = "redirected"; |
| 12 if (event.isTopLevel) { | 22 if (event.isTopLevel) { |
| 13 redirectOldUrl = event.oldUrl; | 23 redirectOldUrl = event.oldUrl; |
| 14 redirectNewUrl = event.newUrl; | 24 redirectNewUrl = event.newUrl; |
| 15 } | 25 } |
| 16 } | 26 } |
| 17 function SetSrc(src) { | 27 function SetSrc(src) { |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 } else { | 92 } else { |
| 83 window.document.title = 'main guest'; | 93 window.document.title = 'main guest'; |
| 84 } | 94 } |
| 85 } | 95 } |
| 86 } | 96 } |
| 87 var plugin = document.getElementById('plugin'); | 97 var plugin = document.getElementById('plugin'); |
| 88 plugin.addEventListener('loadStart', loadStart); | 98 plugin.addEventListener('loadStart', loadStart); |
| 89 plugin.addEventListener('loadAbort', loadAbort); | 99 plugin.addEventListener('loadAbort', loadAbort); |
| 90 plugin.addEventListener('loadRedirect', loadRedirect); | 100 plugin.addEventListener('loadRedirect', loadRedirect); |
| 91 window.addEventListener('message', receiveMessage, false); | 101 window.addEventListener('message', receiveMessage, false); |
| 102 plugin.addEventListener('loadStop', loadStop); |
| 103 plugin.addEventListener('loadCommit', loadCommit); |
| 92 </script> | 104 </script> |
| OLD | NEW |