miroljub1995
3 months agoNew Contributor
Memory leak with Chrome extension
We noticed that we have memory leak when using 1password extension in Chrome. Here is a minimal repro code.
<!doctype html>
<html lang="en">
<body>
<button id="btn">Test the click and wait for removal</button>
<script>
class EasierToFindInShapshot {}
(() => {
const button = document.getElementById("btn");
button.testInstance = new EasierToFindInShapshot();
setTimeout(() => {
document.body.removeChild(button);
}, 10_000);
})();
</script>
</body>
</html>
Steps:
- Clicking to button until it is removed
- Take a snapshot and find that EasierToFindInShapshot is not collected
- Try without extension and EasierToFindInShapshot should be collected.
Extension version: 8.10.60.27
Chrome version: 133.0.6943.99 (Official Build) (arm64)
OS version: macOS Sequoia Version 15.3
Chip: Apple M3 Pro