It seems throttled DOMTimers can prevent their document from being garbage collected. This is likely caused by DOMTimer::m_elementsCausingThrottling keeping a reference to the Elements that caused its throttling. It looks like we may need to use weak references to those Elements in DOMTimer. I realized this when trying to write a layout test for: https://bugs.webkit.org/show_bug.cgi?id=138914
Created attachment 241969 [details] Patch
Created attachment 242098 [details] Patch
Stop using a unique_ptr in ElementRareData as per Andreas' comments offline.
Comment on attachment 242098 [details] Patch Clearing flags on attachment: 242098 Committed r176496: <http://trac.webkit.org/changeset/176496>
All reviewed patches have been landed. Closing bug.