]> git.gir.st - VimFx.git/commit
Fix memory leak in non-multi-process Firefox
authorSimon Lydell <simon.lydell@gmail.com>
Mon, 11 Jan 2016 18:32:02 +0000 (19:32 +0100)
committerSimon Lydell <simon.lydell@gmail.com>
Mon, 11 Jan 2016 18:32:02 +0000 (19:32 +0100)
commit75f833afc2064325277590a27ac411d975ffd3ee
tree2249161177e1bcca1e74f7e15c8dafadc2079c13
parent0b2c8310d83d20bfb15e8ad42a17a292d873e2da
Fix memory leak in non-multi-process Firefox

Apparently, 'overflow' and 'underflow' events in web page content can be caught
in UI listeners in non-multi-process. `event.target` of 'overflow' events in the
browser UI are saved as scrollable elements, which accidentaly included web page
elements as well. Holding on to such elements after their owner tab is closed
caused a memory leak (ghost windows). This commit checks that the overflown
elements really are UI elements before saving them.

Fixes #664.
extension/lib/events.coffee
Imprint / Impressum