Bug 1074703 - [ValueSelector] Ensure window listener is removed on destroy

https://bugzilla.mozilla.org/show_bug.cgi?id=1074703
same above