Bug 905382 - register callbacks in workers. r=bent a=lsblakk