Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 76c97ee4 authored by Steve Block's avatar Steve Block
Browse files

Fix DumpRenderTree2 to serve HTTP tests on http://127.0.0.1:8000

Currently DumpRenderTree2 serves HTTP tests on http://localhost:8080.
Some of the tests hardcode 'http://127.0.0.1:8000' for resources, so
we must use this scheme and port for the requests to be same-origin.

This fixes LayoutTest http/tests/appcache/credential-url.html

Change-Id: I2a9c402fc7b0e0b62eb4a278d67ac0e63ef96e8b
parent 062c0c98
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -75,6 +75,10 @@ def main(options, args):
  apache2_restart_template = "apache2 -k %s"
  directives  = " -c \"ServerRoot " + android_tree_root + "\""

  # The default config in apache2-debian-httpd.conf listens on ports 8080 and
  # 8443. We also need to listen on port 8000 for HTTP tests.
  directives += " -c \"Listen 8000\""

  # We use http/tests as the document root as the HTTP tests use hardcoded
  # resources at the server root. We then use aliases to make available the
  # complete set of tests and the required scripts.
+3 −5
Original line number Diff line number Diff line
@@ -40,11 +40,9 @@ public class ForwarderManager {
     * We use these ports because other webkit platforms do. They are set up in
     * external/webkit/LayoutTests/http/conf/apache2-debian-httpd.conf
     */
    public static final int HTTP_PORT = 8080;
    public static final int HTTP_PORT = 8000;
    public static final int HTTPS_PORT = 8443;

    public static final String HOST = "localhost";

    private static ForwarderManager forwarderManager;

    private Set<Forwarder> mForwarders;
@@ -75,7 +73,7 @@ public class ForwarderManager {

        URL url = null;
        try {
            url = new URL(protocol, HOST, port, "/");
            url = new URL(protocol, HOST_IP, port, "/");
        } catch (MalformedURLException e) {
            assert false : "isHttps=" + isHttps;
        }