Repository navigation
Sanitize web fonts - #11649
Sanitize web fonts#11649talklittle wants to merge 1 commit into
Conversation
|
Wow, neat that you rebased that! @bors-servo r+ |
|
📌 Commit c9576bb has been approved by |
|
It would be useful to have a test verifying that this behaves as expected. What sort of fonts does fontsan reject? |
Want to r-, or should I file a followup about grabbing an invalid font from OTS itself and making a test with it? |
|
⌛ Testing commit c9576bb with merge b3ccbd2... |
Sanitize web fonts <!-- Please describe your changes on the following line: --> Use https://github.com/servo/fontsan to sanitize web fonts. This is essentially a rebase of #7634 --- <!-- 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 #3030 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because original PR #7634 didn't require tests <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Original author was @kmcallister in 2015 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11649) <!-- Reviewable:end -->
|
💔 Test failed - mac-rel-wpt |
|
I think it would make sense to add the test before merging this. |
|
Ok. Anyway there seems to be some build issues. |
Install freetype on OSX To fix this broken Mac build: servo/servo#11649 (comment) <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/saltfs/393) <!-- Reviewable:end -->
|
Difficult to Google for malicious fonts for testing.
Any Servo members have contacts on the chromium-security team? If hypothetically we added a test for this, I also don't know of a way of packaging the test (especially the malicious font file) into the Servo repo that would make sense. Anyway, the OSX build issue is fixed. |
|
That's pretty reasonable! Let's go ahead and merge this :) |
|
@bors-servo: r=nox |
|
💡 This pull request was already approved, no need to approve it again.
|
|
📌 Commit c9576bb has been approved by |
c9576bb to
df927fb
Compare
|
@nox I believe this should be good to try again |
|
@bors-servo r=nox |
|
📌 Commit df927fb has been approved by |
Sanitize web fonts <!-- Please describe your changes on the following line: --> Use https://github.com/servo/fontsan to sanitize web fonts. This is essentially a rebase of #7634 --- <!-- 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 #3030 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because original PR #7634 didn't require tests <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Original author was @kmcallister in 2015 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11649) <!-- Reviewable:end -->
|
💔 Test failed - mac-rel-wpt |
|
Beyond the same freetype error as before: This also failed on Windows: and build-cef on mac and linux: |
|
☔ The latest upstream changes (presumably #12432) made this pull request unmergeable. Please resolve the merge conflicts. |
Original author was Keegan McAllister <[email protected]> in stale May 2015 branch (servoGH-7634). This commit is rebased to current servo master and accounts for the async loading of web fonts.
df927fb to
49ebfe9
Compare
|
@larsbergstrom Think you could take a look at the Windows failure? |
Build OTS with CMake This is a crude attempt to use CMake to build OTS, which should hopefully help unbreak servo/servo#11649. I appreciate any feedback since I’m neither familiar with rust build system nor CMake. I also took the opportunity to update OTS to the latest version (which made it easier to just copy the file lists from upstream Makefile.am). <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/fontsan/11) <!-- Reviewable:end -->
|
@nox The fontsan PR is merged, so we should be able to publish and retry this one. |
|
Superseded by #12938, thanks for your contribution! |
Build OTS with CMake This is a crude attempt to use CMake to build OTS, which should hopefully help unbreak servo/servo#11649. I appreciate any feedback since I’m neither familiar with rust build system nor CMake. I also took the opportunity to update OTS to the latest version (which made it easier to just copy the file lists from upstream Makefile.am). <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/fontsan/11) <!-- Reviewable:end -->
Use https://github.com/servo/fontsan to sanitize web fonts. This is essentially a rebase of #7634
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsOriginal author was @kmcallister in 2015
This change is