Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upDisabled tinyfiledialogs when running headless #15967
Conversation
highfive
commented
Mar 15, 2017
highfive
commented
Mar 15, 2017
|
cc @jdm |
| @@ -557,7 +558,8 @@ impl FileManagerStore { | |||
|
|
|||
| fn select_files_pref_enabled() -> bool { | |||
| PREFS.get("dom.testing.htmlinputelement.select_files.enabled") | |||
| .as_boolean().unwrap_or(false) | |||
| .as_boolean().unwrap_or(false) && | |||
| !opts::get().headless | |||
This comment has been minimized.
This comment has been minimized.
jdm
Mar 15, 2017
Member
Why is this change necessary? Wont' this make us use TFD when we're in headless mode, since the callers invoke the UI when it returns false?
This comment has been minimized.
This comment has been minimized.
|
The unit tests were failing because the UI provider wasn't being called in headless mode. The fix is to move the headless check inside the UI provider. |
|
Looks good to merge after squashing. |
f714b22
to
f05577c
|
Squashed. @bors-servo r=jdm |
|
|
Disabled tinyfiledialogs when running headless <!-- Please describe your changes on the following line: --> Disable tinyfiledialogs when running in headless mode. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #15965 and #15962. - [X] These changes do not require tests because we don't test tinyfiledialog pop-ups. <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/15967) <!-- Reviewable:end -->
|
|
asajeffrey commentedMar 15, 2017
•
edited by larsbergstrom
Disable tinyfiledialogs when running in headless mode.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is