mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Bug 1165263 - Part 4: Update reftest runners to support new moz_hosts schema, r=dbaron
This commit is contained in:
parent
5b365a72da
commit
72b02534d8
@ -1177,6 +1177,9 @@ function ServeFiles(manifestPrincipal, depth, aURL, files)
|
||||
var testbase = gIOService.newURI("http://localhost:" + gHttpServerPort +
|
||||
path + dirPath, null, null);
|
||||
|
||||
// Give the testbase URI access to XUL and XBL
|
||||
Services.perms.add(testbase, "allowXULXBL", Services.perms.ALLOW_ACTION);
|
||||
|
||||
function FileToURI(file)
|
||||
{
|
||||
// Only serve relative URIs via the HTTP server, not absolute
|
||||
|
@ -342,7 +342,7 @@ class RemoteReftest(RefTest):
|
||||
self.server.stop()
|
||||
|
||||
def createReftestProfile(self, options, reftestlist):
|
||||
profile = RefTest.createReftestProfile(self, options, reftestlist, server=options.remoteWebServer)
|
||||
profile = RefTest.createReftestProfile(self, options, reftestlist, server=options.remoteWebServer, port=options.httpPort)
|
||||
profileDir = profile.profile
|
||||
|
||||
prefs = {}
|
||||
|
@ -187,7 +187,8 @@ class RefTest(object):
|
||||
"""
|
||||
|
||||
locations = mozprofile.permissions.ServerLocations()
|
||||
locations.add_host(server, port=0)
|
||||
locations.add_host(server, scheme='http', port=0)
|
||||
locations.add_host(server, scheme='https', port=0)
|
||||
|
||||
# Set preferences for communication between our command line arguments
|
||||
# and the reftest harness. Preferences that are required for reftest
|
||||
|
Loading…
Reference in New Issue
Block a user