3 <p>Test that using mutation observers from the non-main world doesn't leak the document.
</p>
4 <p>Expected output of this test is LEAK:
28 WebCoreNode
</p>
9 testRunner
.dumpAsText();
10 testRunner
.waitUntilDone();
12 var iframe
= document
.querySelector('iframe');
16 iframe
.onload = function() {
17 if (count
++ < totalRuns
) {
18 testRunner
.evaluateScriptInIsolatedWorld(1, 'new MutationObserver(function(){}).observe(document, {childList: true, subtree: true});');
19 iframe
.srcdoc
= "<body><input autofocus></body>";
20 GCController
.collect();
22 GCController
.collect();
23 testRunner
.notifyDone();
27 // Need autofocus since evaluateScriptInIsolatedWorld runs in the focused frame.
28 iframe
.srcdoc
= "<body><input autofocus></body>";