Bug 892341 sdk/console/plain-text leaks, use a weak ref instead of a strong ref