disable-html5-autoplay icon indicating copy to clipboard operation
disable-html5-autoplay copied to clipboard

Chrome tab freezes on some Unity3D sites

Open artizzan opened this issue 8 years ago • 6 comments

When opening certain sites belonging to Unity3D, this extension often freezes the tab in Chrome. This happens only if 'disable autoplay' is enabled. The tab content becomes largely unresponsive and does not react (or reacts with large delay) to the closing attempt. Chrome debugging tools are also affected. Occasionally, the freezing efect may cause close button of other tabs to also become unresponsive.

An example site is here: https://forum.unity3d.com/threads/testing-multiplayer-without-building.344556/

I have also noticed that the tab doesn't freeze, if above link is the first opened tab on a freshly started Chrome.

Update: Tested on Firefox. Extension works without any issues on the above link.

artizzan avatar Jan 28 '17 09:01 artizzan

Might be similar to #109. This needs to be checked.

Eloston avatar Jan 28 '17 18:01 Eloston

@Eloston Any ideas on this? What's weird is that pausing execution of your extension's background page in DevTools doesn't stop Chrome from gobbling up memory -- wondering if this is a Chrome bug.

mgiuffrida avatar Mar 23 '17 09:03 mgiuffrida

@mgiuffrida I'm not certain what it is but it happens on other sites too. I'm fairly certain that the injected content script causing the site to misbehave, so the tab process starts eating up CPU and memory resources.

Eloston avatar Mar 23 '17 09:03 Eloston

On http://knowyourmeme.com/memes/me-gusta there seems to be an interaction with a "trends-widget-1" iframe where it repeatedly handles and posts a message, which also triggers this extension's content script's message listener.

https://ssl.gstatic.com/trends_nrtr/962_RC10/embed_fe_line_chart_v1_js_bin.js (listener setup is at the very end of the script)

mgiuffrida avatar Mar 23 '17 09:03 mgiuffrida

Hm, interesting. If you want, you can send in a pull request to fix the issue. I haven't touched this project in a while so I forgot most of everything.

Eloston avatar Mar 23 '17 10:03 Eloston

Haven't found a solution yet -- somehow it seems like window.removeEventListener isn't working. I'm trying to reproduce it in a simpler case.

mgiuffrida avatar Mar 23 '17 20:03 mgiuffrida