https://github.com/mozilla-b2g/gaia/blob/master/shared/test/unit/mocks/mock_dom_request.js