diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-08-04 16:13:45 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-04 16:13:45 -0500 |
commit | 3dce4c62ca55409dfac9dea6ecc674c0020eab6c (patch) | |
tree | a69b039df9697baffd5fd717f8cc4373ada822b5 /python/servo/package_commands.py | |
parent | 04ac84d2aa24bcfc8cd43bbc540c8bc2ab66f9cb (diff) | |
parent | 663f8530cfc1464e11ece49131949c7e798ef7f2 (diff) | |
download | servo-3dce4c62ca55409dfac9dea6ecc674c0020eab6c.tar.gz servo-3dce4c62ca55409dfac9dea6ecc674c0020eab6c.zip |
Auto merge of #12708 - paulrouget:multiprocessAndSandboxForBhtml, r=metajack
Enable multiprocess and sandbox
<!-- Please describe your changes on the following line: -->
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [ ] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #12705 (github issue number if applicable).
<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____
<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
Enable multiprocess and sandbox for Mac and Linux when running
browserhtml.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12708)
<!-- Reviewable:end -->
Diffstat (limited to 'python/servo/package_commands.py')
-rw-r--r-- | python/servo/package_commands.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/servo/package_commands.py b/python/servo/package_commands.py index 1bd91e6eae1..2513b2b5ad1 100644 --- a/python/servo/package_commands.py +++ b/python/servo/package_commands.py @@ -146,7 +146,7 @@ class PackageCommands(CommandBase): print("Writing run-servo") bhtml_path = path.join('${0%/*}/../Resources', browserhtml_path.split('/')[-1], 'out', 'index.html') runservo = os.open(dir_to_app + '/Contents/MacOS/run-servo', os.O_WRONLY | os.O_CREAT, int("0755", 8)) - os.write(runservo, '#!/bin/bash\nexec ${0%/*}/servo ' + bhtml_path) + os.write(runservo, '#!/bin/bash\nexec ${0%/*}/servo -M -S ' + bhtml_path) os.close(runservo) print("Creating dmg") @@ -220,7 +220,7 @@ class PackageCommands(CommandBase): delete(dir_to_package + '/build/' + f) print("Writing runservo.sh") # TODO: deduplicate this arg list from post_build_commands - servo_args = ['-w', '-b', + servo_args = ['-w', '-b', '-M', '-S' '--pref', 'dom.mozbrowser.enabled', '--pref', 'dom.forcetouch.enabled', '--pref', 'shell.builtin-key-shortcuts.enabled=false', |