Repository navigation
Disabled tinyfiledialogs when running headless - #15967
Merged
Merged
Conversation
Contributor
Author
|
cc @jdm |
jdm
reviewed
Mar 15, 2017
| PREFS.get("dom.testing.htmlinputelement.select_files.enabled") | ||
| .as_boolean().unwrap_or(false) | ||
| .as_boolean().unwrap_or(false) && | ||
| !opts::get().headless |
Member
There was a problem hiding this comment.
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?
Contributor
Author
There was a problem hiding this comment.
Oops, got the semantics of this flag inverted.
Contributor
Author
|
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. |
Member
|
Looks good to merge after squashing. |
asajeffrey
force-pushed
the
headless-disable-tinyfd
branch
from
March 16, 2017 13:48
f714b22 to
f05577c
Compare
Contributor
Author
|
Squashed. @bors-servo r=jdm |
Contributor
|
📌 Commit f05577c has been approved by |
Contributor
bors-servo
pushed a commit
that referenced
this pull request
Mar 16, 2017
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 -->
Contributor
|
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css, mac-rel-wpt1, mac-rel-wpt2, windows-gnu-dev, windows-msvc-dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Disable tinyfiledialogs when running in headless mode.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is