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
An observer disconnected after a mark must receive the mark #18284
Comments
Hi! If you have any questions regarding this issue, feel free to make a comment here, or ask it in the If you intend to work on this issue, then add |
Run the test with |
I'd like to get my hands dirty on this. As I'm completely new to Servo and contributing at all, are there any resources where I can read up on performance observers, like what they are and what they have to do with the DOM? I guess this document from #18285 may be relevant? |
That is the specification that defines the PerformanceObserver API, yes. https://developer.mozilla.org/en-US/docs/Web/API/Performance_Timeline may also be useful. |
Thank you for your interest on this task @pylbrecht :). You may want to work on top of #18283 as |
Alright, let's do this. Thanks for the hints! |
Hey @pylbrecht! Thanks for your interest in working on this issue. It's now assigned to you! |
Unfortunately I'm somehow unable to run the test.
Any ideas what I'm doing wrong? |
I am not sure how to run the test individually in this case. Running What I do is to run the entire suite for performance-timeline with the same command that you mentioned: ❯ ./mach test-wpt tests/wpt/web-platform-tests/performance-timeline/
Running 13 tests in web-platform-tests
▶ TIMEOUT [expected PASS] /performance-timeline/po-disconnect.any.html
│
│ VMware, Inc.
│ Gallium 0.4 on softpipe
└ 3.3 (Core Profile) Mesa 17.2.0-devel
▶ Unexpected subtest result in /performance-timeline/po-disconnect.any.html:
│ TIMEOUT [expected PASS] An observer disconnected after a mark must receive the mark
└ → Test timed out
Ran 13 tests finished in 12.0 seconds.
• 12 ran as expected. 0 tests skipped.
• 1 tests timed out unexpectedly
• 1 tests had unexpected subtest results |
Just to be clear: the test is expected to PASS after resolving this issue and is just expected to TIMEOUT right now, because the required module(s) are not fully implemented yet (i.e. test driven approach)? |
Correct. The tests are shared between multiple web browsers, so other browsers end up writing tests for features that aren't yet implemented in Servo. |
An observer disconnected after a mark must receive the mark <!-- Please describe your changes on the following line: --> I worked on top of #18283 as suggested [here](#18284 (comment)). r? @ferjm <!-- 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 #18284 (github issue number if applicable). <!-- 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/18370) <!-- Reviewable:end -->
…ive the mark (from pylbrecht:observer); r=ferjm <!-- Please describe your changes on the following line: --> I worked on top of #18283 as suggested [here](servo/servo#18284 (comment)). r? @ferjm <!-- 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 #18284 (github issue number if applicable). <!-- 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. --> Source-Repo: https://github.com/servo/servo Source-Revision: 867d542261336d918177f8780ef915b7ec84e3ba --HG-- extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear extra : subtree_revision : 79691b6f8e710beeab4ca8ba260f4ee0869914a7
…ive the mark (from pylbrecht:observer); r=ferjm <!-- Please describe your changes on the following line: --> I worked on top of #18283 as suggested [here](servo/servo#18284 (comment)). r? @ferjm <!-- 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 #18284 (github issue number if applicable). <!-- 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. --> Source-Repo: https://github.com/servo/servo Source-Revision: 867d542261336d918177f8780ef915b7ec84e3ba
…ive the mark (from pylbrecht:observer); r=ferjm <!-- Please describe your changes on the following line: --> I worked on top of #18283 as suggested [here](servo/servo#18284 (comment)). r? @ferjm <!-- 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 #18284 (github issue number if applicable). <!-- 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. --> Source-Repo: https://github.com/servo/servo Source-Revision: 867d542261336d918177f8780ef915b7ec84e3ba
…ive the mark (from pylbrecht:observer); r=ferjm <!-- Please describe your changes on the following line: --> I worked on top of #18283 as suggested [here](servo/servo#18284 (comment)). r? ferjm <!-- 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 #18284 (github issue number if applicable). <!-- 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. --> Source-Repo: https://github.com/servo/servo Source-Revision: 867d542261336d918177f8780ef915b7ec84e3ba UltraBlame original commit: b0d2e384b6e0842e523b1922659c3a8f0c2d8ee4
…ive the mark (from pylbrecht:observer); r=ferjm <!-- Please describe your changes on the following line: --> I worked on top of #18283 as suggested [here](servo/servo#18284 (comment)). r? ferjm <!-- 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 #18284 (github issue number if applicable). <!-- 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. --> Source-Repo: https://github.com/servo/servo Source-Revision: 867d542261336d918177f8780ef915b7ec84e3ba UltraBlame original commit: b0d2e384b6e0842e523b1922659c3a8f0c2d8ee4
…ive the mark (from pylbrecht:observer); r=ferjm <!-- Please describe your changes on the following line: --> I worked on top of #18283 as suggested [here](servo/servo#18284 (comment)). r? ferjm <!-- 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 #18284 (github issue number if applicable). <!-- 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. --> Source-Repo: https://github.com/servo/servo Source-Revision: 867d542261336d918177f8780ef915b7ec84e3ba UltraBlame original commit: b0d2e384b6e0842e523b1922659c3a8f0c2d8ee4
The following test from web-platform-tests/performance-timeline is failing:
We should probably not remove the observer from the list while the pending_notification_observers_task flag is set.
The text was updated successfully, but these errors were encountered: