Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Happy face is missing #17963

Closed
jdm opened this issue Aug 3, 2017 · 7 comments
Closed

Happy face is missing #17963

jdm opened this issue Aug 3, 2017 · 7 comments

Comments

@jdm
Copy link
Member

@jdm jdm commented Aug 3, 2017

@jdm
Copy link
Member Author

@jdm jdm commented Aug 3, 2017

This may be an effect of this error from the terminal:
ERROR:script::dom::bindings::error: Error at https://www.surveygizmo.com/2017.08.02.01/runtimejs/dist/survey/js/survey.js:114:4069 e.fillText is not a function

@BrunoBernardino
Copy link
Contributor

@BrunoBernardino BrunoBernardino commented Aug 5, 2017

I've confirmed that is coming from this line: https://github.com/Valve/fingerprintjs/blob/master/fingerprint.js#L283 so this is related to the canvas implementation in servo, I believe. I'm still investigating further, but it's the first time I'm looking at servo's source code, so if someone has thoughts or pointers, it'll probably help 😄

@jdm
Copy link
Member Author

@jdm jdm commented Aug 6, 2017

Servo does not implement the canvas text APIs yet: #11681.

bors-servo added a commit that referenced this issue Aug 23, 2017
Implement CanvasRenderingContext2d.fillText's "unimplemented" message

Basic skeleton for implementing CanvasRenderingContext2d.fillText,  only adding methods and parameters in the right place, and a basic test, with some `println!()`.

<!-- Please describe your changes on the following line: -->

This is only the beginning. It were my first couple of hours looking at Rust and Servo.

However, I have _no clue_ how to get the text to render now (basically go from the `println!()` to something else).

It's also possible I messed something up with the `DOMString.parse()` but not entirely sure.

I'm doing this PR as a starting point to get help and learn more about this, _or_ at least maybe save someone some time while implementing this, if no one's able to take the time and show me where/how.

Because it's still a work-in-progress, I'm leaving the boxes below unchecked (even though there are no errors).

---
<!-- 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
- [ ] These changes fix #11681 and #17963

<!-- Either: -->
- [x] There are tests for these changes

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- 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/18020)
<!-- Reviewable:end -->
@atouchet
Copy link
Contributor

@atouchet atouchet commented Aug 29, 2017

Was this supposed to have been fixed in #18020? I am still able to reproduce the issue.

@BrunoBernardino
Copy link
Contributor

@BrunoBernardino BrunoBernardino commented Aug 29, 2017

It was not @atouchet , it's only not throwing a JS exception anymore with that, which fixes other kinds of problems that weren't in issues, I believe.

@atouchet
Copy link
Contributor

@atouchet atouchet commented Dec 18, 2019

The happy face appears to show up now:

Happy face

@jdm
Copy link
Member Author

@jdm jdm commented Dec 18, 2019

Delightful!

@jdm jdm closed this Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.