We are going to use these functions in gfx/layers/apz/tests/mochitest/ for fission. Differential Revision: https://phabricator.services.mozilla.com/D44418 --HG-- extra : moz-landing-system : lando