blob: 6799d59812c31bc7fa0cc9aafef4e828ffe07d9f [file]
<!--
Copyright 2020 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<h1>Memory Panel (Heap profiler) Test</h1>
<script>
var frame = document.createElement('iframe');
frame.src = 'data:text/html,<script>class Retainer{}; var aUniqueName = new Retainer();<'+
'/script>';
document.body.appendChild(frame);
frame.addEventListener("load", function() {
var iframeWindow = this.contentWindow;
function retainingListener() {
// This is leaking the iframe.
console.log(iframeWindow);
}
document.body.addEventListener('click', retainingListener, true);
});
</script>