Bug 736592 - Use getWeakReference instead of actual references to elements, r=jgriffin, a=test-only