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 upFix the panic when transform is non-invertible #15334
Conversation
highfive
commented
Feb 2, 2017
|
I don't know exactly if I should write a test for it or not. It fixes a panic but it doesn't bring any new functionality. |
|
There are existing tests that are expected CRASH due to this bug, so I would expect them to start passing and we'll have to update test expectations. You can test this locally by running:
|
|
@glennw I tested it but there is no passing test because it require other webrender PR to stop panicking entirely. I tried with both webrender and servo PR, there are some passing tests. But we need to wait for a wr update to mark them as passing. |
|
@glennw I tested without this patch against most recent WR update. It looks like, it's showing (e.g. |
|
It looks like it might be possible to trigger this from an automated test by using the Document.elementsFromPoint API, since that ends up doing a hit test on the display list. |
|
I tried to trigger this with |
|
Please file that as a separate issue with a testcase? |
|
Filed one: #15592 |
|
It should be possible to use elementsFromPoint from a setTimeout while #15592 is unfixed. |
|
Added a test for it. Thanks for the help! |
| <body> | ||
| <div id="test"></div> | ||
| <script> | ||
| test(function() { |
This comment has been minimized.
This comment has been minimized.
jdm
Feb 16, 2017
Member
This needs to be an async test, or it will complete before the setTimeout executes.
|
Updated code to use async_test. |
|
I've checked that the test panics without the fix. @bors-servo r+ |
|
|
Fix the panic when transform is non-invertible <!-- Please describe your changes on the following line: --> Fixes the panic when transform is non-invertible. Counterpart of servo/webrender#823 r? @glennw --- <!-- 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 #13266 (github issue number if applicable). <!-- Either: --> - [x] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- 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/15334) <!-- Reviewable:end -->
|
|
|
@canaltinova The manifest is still incorrect. diff --git a/tests/wpt/mozilla/meta/MANIFEST.json b/tests/wpt/mozilla/meta/MANIFEST.json
index e5cfd66..cd55f26 100644
--- a/tests/wpt/mozilla/meta/MANIFEST.json
+++ b/tests/wpt/mozilla/meta/MANIFEST.json
@@ -25905,7 +25905,7 @@
"testharness"
],
"mozilla/non-invertible-transform.html": [
- "c574749b1314922612fbd4ba46e1ef10a2c54074",
+ "6fa68fe08c9dd5d594e838da51617951193fee19",
"testharness"
],
"mozilla/out-of-order-stylesheet-loads-and-imports.html": [ |
|
@nox Updated, thanks. |
|
@bors-servo r+ |
|
|
Fix the panic when transform is non-invertible <!-- Please describe your changes on the following line: --> Fixes the panic when transform is non-invertible. Counterpart of servo/webrender#823 r? @glennw --- <!-- 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 #13266 (github issue number if applicable). <!-- Either: --> - [x] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- 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/15334) <!-- Reviewable:end -->
|
|
canova commentedFeb 2, 2017
•
edited
Fixes the panic when transform is non-invertible.
Counterpart of servo/webrender#823
r? @glennw
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is