Shadow is turned on by default. Run this code which generates and closes 50 windows. In Chrome, go into developer tools, >Profiles >Take Heap Snapshot >Take Snapshot. Notice the object count for "Detached DOM tree" is 50. It should be 0. Workaround: set each window's shadow to false, or use my patch (which worked for me).