From 5364165d97a0fd119d5bd7d62ef71e593bc09d52 Mon Sep 17 00:00:00 2001 From: jhou-pro Date: Tue, 31 Jan 2023 00:44:57 +0200 Subject: [PATCH] #1451 Fixed memory leak in web-component-tester, that is used for web tests running. --- .../src/main/resources/polymer/wct-browser-legacy/browser.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform-web-ui/src/main/resources/polymer/wct-browser-legacy/browser.js b/platform-web-ui/src/main/resources/polymer/wct-browser-legacy/browser.js index 63a9ecd665..c232d542e1 100644 --- a/platform-web-ui/src/main/resources/polymer/wct-browser-legacy/browser.js +++ b/platform-web-ui/src/main/resources/polymer/wct-browser-legacy/browser.js @@ -663,6 +663,7 @@ listener = _a.listener; return target.removeEventListener(type, listener); }); + delete ChildRunner.byUrl[this.url]; }; /** * @return {ChildRunner} The `ChildRunner` that was registered for this @@ -728,6 +729,7 @@ var url = this.url = iframe.src; container.appendChild(iframe); + this.url = url; ChildRunner.byUrl[url] = this; this.timeoutId = setTimeout(function () { return _this.loaded(new Error('Timed out loading ' + url));