* Installs a mutation observer in a window to look for iframes. * @param {!Element} node * @param {!Window} parent * @param {!Window} win
(node, parent, win)
| 131 | * @param {!Window} win |
| 132 | */ |
| 133 | function instrumentIframeWindow(node, parent, win) { |
| 134 | if (win.ampSeen) { |
| 135 | return; |
| 136 | } |
| 137 | const doc = win.document; |
| 138 | instrumentDocWrite(parent, win); |
| 139 | if (doc.body && doc.body.childNodes.length) { |
| 140 | manageWin(win); |
| 141 | } |
| 142 | } |
| 143 | |
| 144 | /** |
| 145 | * Installs a mutation observer in a window to look for iframes. |
no test coverage detected