Skip to content
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

PerformanceResourceTiming: RedirectEnd #21257

Closed
avadacatavra opened this issue Jul 27, 2018 · 9 comments
Closed

PerformanceResourceTiming: RedirectEnd #21257

avadacatavra opened this issue Jul 27, 2018 · 9 comments

Comments

@avadacatavra
Copy link
Contributor

@avadacatavra avadacatavra commented Jul 27, 2018

In components/net/http_loader.rs::http_fetch we need to set redirect_end.

On getting, the redirectEnd attribute MUST return as follows:

  1. The time immediately after receiving the last byte of the response of the last redirect, if there are HTTP redirects or equivalent when fetching the resource and all the redirects or equivalent pass the timing allow check algorithm.
  2. zero, otherwise.

https://w3c.github.io/resource-timing/#dom-performanceresourcetiming-redirectend

@verma-varsha
Copy link

@verma-varsha verma-varsha commented Dec 26, 2018

@highfive: assign me

@highfive
Copy link

@highfive highfive commented Dec 26, 2018

Hey @verma-varsha! Thanks for your interest in working on this issue. It's now assigned to you!

@jdm
Copy link
Member

@jdm jdm commented Feb 27, 2019

#22561 was a good start but was incomplete.

@jdm jdm added the E-easy label Feb 27, 2019
@highfive
Copy link

@highfive highfive commented Feb 27, 2019

Hi! If you have any questions regarding this issue, feel free to make a comment here, or ask it in the #servo channel in IRC.

If you intend to work on this issue, then add @highfive: assign me to your comment, and I'll assign this to you. 😄

@stmobo
Copy link

@stmobo stmobo commented May 14, 2019

@highfive: assign me

Hi! I'm pretty new to open-source contribution, all things considered, but I look forward to working with everyone!

@highfive
Copy link

@highfive highfive commented May 14, 2019

Hey @stmobo! Thanks for your interest in working on this issue. It's now assigned to you!

@highfive highfive added the C-assigned label May 14, 2019
@jdm jdm removed the C-assigned label Jul 12, 2019
@jdm
Copy link
Member

@jdm jdm commented Jul 12, 2019

Unassigning due to lack of activity.

@tdelacour
Copy link
Contributor

@tdelacour tdelacour commented Jul 15, 2019

@highfive assign me

@highfive highfive added the C-assigned label Jul 15, 2019
@highfive
Copy link

@highfive highfive commented Jul 15, 2019

Hey @tdelacour! Thanks for your interest in working on this issue. It's now assigned to you!

bors-servo added a commit that referenced this issue Jul 20, 2019
ISSUE-21257: set redirectEnd on PerformanceResourceTiming

<!-- Please describe your changes on the following line: -->
Added the appropriate attribute and setters. Included a Timer struct with a `Drop` function to set this value to zero in error cases. Set the value to `responseEnd` on success. Eliminated tests that now pass.

---
<!-- 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 #21257 (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/23812)
<!-- Reviewable:end -->
bors-servo added a commit that referenced this issue Jul 20, 2019
ISSUE-21257: set redirectEnd on PerformanceResourceTiming

<!-- Please describe your changes on the following line: -->
Added the appropriate attribute and setters. Included a Timer struct with a `Drop` function to set this value to zero in error cases. Set the value to `responseEnd` on success. Eliminated tests that now pass.

---
<!-- 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 #21257 (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/23812)
<!-- Reviewable:end -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

6 participants
You can’t perform that action at this time.