diff options
author | Paul Rouget <me@paulrouget.com> | 2018-02-07 09:59:30 +0100 |
---|---|---|
committer | Paul Rouget <me@paulrouget.com> | 2018-02-11 08:02:39 +0100 |
commit | 019fdaa1bd57c150547c02641fac621e41d0b9e2 (patch) | |
tree | 4abb317244d8d3b87dceba6a5c9120bb5765193c /python/servo/post_build_commands.py | |
parent | 2f4362e0c1371c9ae45f1a71a406578eadc94a8b (diff) | |
download | servo-019fdaa1bd57c150547c02641fac621e41d0b9e2.tar.gz servo-019fdaa1bd57c150547c02641fac621e41d0b9e2.zip |
remove bhtml
Diffstat (limited to 'python/servo/post_build_commands.py')
-rw-r--r-- | python/servo/post_build_commands.py | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/python/servo/post_build_commands.py b/python/servo/post_build_commands.py index 30d1eed9bc0..115c03f30b5 100644 --- a/python/servo/post_build_commands.py +++ b/python/servo/post_build_commands.py @@ -23,8 +23,7 @@ from mach.decorators import ( from servo.command_base import ( CommandBase, check_call, check_output, BIN_SUFFIX, - is_linux, is_windows, is_macosx, set_osmesa_env, - get_browserhtml_path, + is_linux, set_osmesa_env, ) @@ -53,8 +52,6 @@ class PostBuildCommands(CommandBase): 'have no effect without this.') @CommandArgument('--debugger', default=None, type=str, help='Name of debugger to use.') - @CommandArgument('--browserhtml', '-b', action='store_true', - help='Launch with Browser.html') @CommandArgument('--headless', '-z', action='store_true', help='Launch in headless mode') @CommandArgument('--software', '-s', action='store_true', @@ -64,7 +61,7 @@ class PostBuildCommands(CommandBase): @CommandArgument( 'params', nargs='...', help="Command-line arguments to be passed through to Servo") - def run(self, params, release=False, dev=False, android=None, debug=False, debugger=None, browserhtml=False, + def run(self, params, release=False, dev=False, android=None, debug=False, debugger=None, headless=False, software=False, bin=None): env = self.build_env() env["RUST_BACKTRACE"] = "1" @@ -100,20 +97,6 @@ class PostBuildCommands(CommandBase): args = [bin or self.get_binary_path(release, dev)] - if browserhtml: - browserhtml_path = get_browserhtml_path(args[0]) - if is_macosx(): - # Enable borderless on OSX - args = args + ['-b'] - elif is_windows(): - # Convert to a relative path to avoid mingw -> Windows path conversions - browserhtml_path = path.relpath(browserhtml_path, os.getcwd()) - - args = args + ['--pref', 'dom.mozbrowser.enabled', - '--pref', 'dom.forcetouch.enabled', - '--pref', 'shell.builtin-key-shortcuts.enabled=false', - path.join(browserhtml_path, 'index.html')] - if headless: set_osmesa_env(args[0], env) args.append('-z') |