There might have been another way to do it later but we'll never know.
https://github.com/mozilla/addon-wr/blob/master/addon/backgr...