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 upBrowser::new() changes CEF follow up #17273
Comments
|
@paulrouget I'm on it |
|
@paulrouget Hey, just had a quick inquiry. |
|
CEF strings are UTF-16, while Rust strings are UTF-8. You will need to convert it into a String then obtain the &str from that. |
|
@jdm That's what I was going for. Thanks for the confirmation! |
Fix cef to follow new Browser::new() interface Changes the call to `Browser::new()` in cef to contain the target_url. cc @paulrouget <!-- 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: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #17273. <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- 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/17548) <!-- Reviewable:end -->
Since #16477, we need to make some changes in CEF:
shell.homepageprefframe.set_urlinServoCefBrowser::new/cc @sadmansk