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 upImplement performance interface extension for PerformanceResourceTiming #22307
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 |
|
@highfive: assign me |
|
Hey @aditj! Thanks for your interest in working on this issue. It's now assigned to you! |
|
@avadacatavra little help please, where do I implement the functions exactly ? Inside /servo/components/script/dom/performanceresourcetiming.rs ? |
|
According to the spec, these methods are an extension of the Performance interface. You will need to modify that file to add the new methods and the new event. The implementation for this interface lives in components/script/dom/performance.rs. The two methods and the event modify, depend or check the list of stored |
|
@ferjm Thanks for the help ! Btw will my adding a Field to the Performance structure be a problem elsewhere? |
|
That I can't tell for sure. It will likely have some side effects (hopefully good ones :)). For example, it may cause new Web Platform Tests to pass or fail. |
|
@ferjm Where is the crate for PerformanceBinding written at? |
|
That code is generated from the WebIDL file by the DOM bindings generator at build time. You can see the resulting code in your |
|
@ferjm Help Please! I have implemented the methods , can you guide me on how to write tests for the same ,also do I mention these methods elsewhere? |
Implement performance interface extension for PerformanceResourceTiming <!-- Please describe your changes on the following line: --> (There is a previous closed pull for this #22431) Implemented the following : a) Added the maxSize Field to the PerformanceEntryList structure. b) Implemented the clearResourceTimings, setResourceTimingBufferSize, onresourcetimingbufferfull fuctions for the Performance Structure according to the Interface Specification given at : https://w3c.github.io/resource-timing/#sec-extensions-performance-interface --- <!-- 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 #22307 (GitHub issue number if applicable) <!-- Either: --> - [X] 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/22599) <!-- Reviewable:end -->
Implement performance interface extension for PerformanceResourceTiming <!-- Please describe your changes on the following line: --> (There is a previous closed pull for this #22431) Implemented the following : a) Added the maxSize Field to the PerformanceEntryList structure. b) Implemented the clearResourceTimings, setResourceTimingBufferSize, onresourcetimingbufferfull fuctions for the Performance Structure according to the Interface Specification given at : https://w3c.github.io/resource-timing/#sec-extensions-performance-interface --- <!-- 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 #22307 (GitHub issue number if applicable) <!-- Either: --> - [X] 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/22599) <!-- Reviewable:end -->
Implement performance interface extension for PerformanceResourceTiming <!-- Please describe your changes on the following line: --> (There is a previous closed pull for this #22431) Implemented the following : a) Added the maxSize Field to the PerformanceEntryList structure. b) Implemented the clearResourceTimings, setResourceTimingBufferSize, onresourcetimingbufferfull fuctions for the Performance Structure according to the Interface Specification given at : https://w3c.github.io/resource-timing/#sec-extensions-performance-interface --- <!-- 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 #22307 (GitHub issue number if applicable) <!-- Either: --> - [X] 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/22599) <!-- Reviewable:end -->
Implement performance interface extension for PerformanceResourceTiming <!-- Please describe your changes on the following line: --> (There is a previous closed pull for this #22431) Implemented the following : a) Added the maxSize Field to the PerformanceEntryList structure. b) Implemented the clearResourceTimings, setResourceTimingBufferSize, onresourcetimingbufferfull fuctions for the Performance Structure according to the Interface Specification given at : https://w3c.github.io/resource-timing/#sec-extensions-performance-interface --- <!-- 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 #22307 (GitHub issue number if applicable) <!-- Either: --> - [X] 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/22599) <!-- Reviewable:end -->
|
Please add a tick here , if it is complete #21253 |
Specification
Implement