Take down shared worker context connection less aggressively when it becomes idle. Give it 5 seconds before shutting it down in case it ends up being used again in the near future. This is similar to what we do for service workers.
Created attachment 453135 [details] Patch
Comment on attachment 453135 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=453135&action=review > Source/WebKit/NetworkProcess/SharedWorker/WebSharedWorkerServerToContextConnection.cpp:146 > + // Terminate context connection after a little while if it is no longer used by any SharedWorker objects. If I was doing this change, I’d put this comment on the constant rather than the code that uses it. Not sure that’s better, though.
Committed r290477 (247775@trunk): <https://commits.webkit.org/247775@trunk>
<rdar://problem/89447191>