Cleanup policy not applied after Hiding/Disabling "Web View/HTML Item"

Describe the bug
I have a Web View component that communicates with a local web server. My business logic needs to toggle the visibility of this component.

However, it seems that even after toggling the visibility (or disabling/enabling) the Web View, the new page runs, but the old one continues to communicate with the web server. It appears that the cleanup policy for unused Web View isn’t being applied.


Affected input device (e.g. MacBook Trackpad, Magic Mouse/Trackpad, Touch Bar, etc.):
n/a


Screenshots


Device information:

  • Type of Mac: MacBook Pro 2020, 13, Intel

  • macOS version: 15.4.1

  • BetterTouchTool version: 5.444


Additional information (e.g. crash logs, related issues, etc.):
Steps to produce:

  • Create a WebView item and use this HTML:
index.html
<!DOCTYPE html>
<html lang="en"><head></head>
<body style="font-size: 30px; text-align: center;"><script>
(function(){
  const userAgent = 'client_'+(''+Math.floor(10+Math.random()*90));
  document.querySelector('body').innerText = userAgent;
  setInterval(() => {
    fetch('http://localhost:80', {
      headers: { 'User-Agent': userAgent }
     });
  }, 1000);
})();
</script></body>
</html>
  • Run a local server on localhost:80
  • Toggle the visibility of the Web View, or disable/enable it
  • Observe the logs from multiple clients

could you check whether 5.448 alpha solves this for you?

Toggling visibility now works!
The issue still occurs when disabling (command+D) and enabling (command+D) the Web View. But it’s not critical — I can manage by toggling the visibility.