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

Expose a mechanism for hiding internal timing info #1309

Merged
merged 3 commits into from
Sep 30, 2021

Conversation

noamr
Copy link
Contributor

@noamr noamr commented Sep 23, 2021

This is needed for whatwg/html#7104
and later on for #1215.

Navigation timing reports the timing info from the HTML spec,
so it needs a mechanism to obfuscate the internals. So far that
obfuscation was internal to fetch and was done upon reporting.


Preview | Diff

This is needed for whatwg/html#7104
and later on for whatwg#1215.

Navigation timing reports the timing info from the HTML spec,
so it needs a mechanism to obfuscate the internals. So far that
obfuscation was internal to fetch and was done upon reporting.
Copy link
Member

@annevk annevk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good modulo nits. If we end up creating fetch timing info instances in more places, we should perhaps consider an abstraction for that too. In the two places where we do that today in Fetch we always set start time and post-redirect start time to the same value and adjust nothing else.

fetch.bs Outdated Show resolved Hide resolved
fetch.bs Outdated
opaque timing info</dfn>, given a <a for=/>fetch timing info</a> <var>timingInfo</var>,
create a new <a for=/>fetch timing info</a> whose <a for="fetch timing info">start time</a> and
<a for="fetch timing info">post-redirect start time</a> are <var>timingInfo</var>'s
<a for="fetch timing info">start time</a>.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation is wrong in this block. Also has newlines inside phrasing elements.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

noamr and others added 2 commits September 28, 2021 17:29
Co-authored-by: Anne van Kesteren <annevk@annevk.nl>
@annevk annevk merged commit 8659a25 into whatwg:main Sep 30, 2021
@noamr noamr deleted the expose-opaque-timing branch September 30, 2021 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants