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 transferSize, encodedBodySize, decodedBodySize #266

Merged
merged 3 commits into from
Apr 15, 2021

Conversation

noamr
Copy link
Contributor

@noamr noamr commented Apr 13, 2021

transferSize is based on the cache mode of the resource.
Closes #238


Preview | Diff

@noamr noamr requested a review from yoavweiss April 13, 2021 16:57
Copy link
Contributor

@yoavweiss yoavweiss left a comment

Choose a reason for hiding this comment

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

Thanks for pushing this!

index.html Outdated
<li><p>If <a>this</a>'s <a data-for="PerformanceResourceTiming">cache mode</a> is
"<code>local</code>", then return 0.
<li><p>Return <a>this</a>'s
<a data-for="PerformanceResourceTiming">timing info</a>'s [=fetch timing info/encoded body size=].
Copy link
Contributor

Choose a reason for hiding this comment

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

If we add a fixed size here for the headers, we can close #238 (comment)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, I can do that, what value should I add?

index.html Outdated
<li><a>Setup the resource timing entry</a> for |entry|, given |initiatorType|, |requestedURL| and
|timingInfo|.
<li><a>Setup the resource timing entry</a> for |entry|, given |initiatorType|, |requestedURL|,
|timingInfo|, and the empty string or "<code>local</code>" |cacheMode|.
Copy link
Contributor

Choose a reason for hiding this comment

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

If we're just passing |cacheMode|, I think you can drop the "empty string or local" part

index.html Show resolved Hide resolved
index.html Outdated Show resolved Hide resolved
Copy link
Contributor

@yoavweiss yoavweiss left a comment

Choose a reason for hiding this comment

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

LGTM % comments

index.html Outdated
<li><a>Setup the resource timing entry</a> for |entry|, given |initiatorType|, |requestedURL| and
|timingInfo|.
<li><a>Setup the resource timing entry</a> for |entry|, given |initiatorType|, |requestedURL|,
|timingInfo|, |cacheMode|.
Copy link
Contributor

Choose a reason for hiding this comment

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

s/,/, and/

index.html Show resolved Hide resolved
noamr added 3 commits April 15, 2021 08:57
transferSize is based on the cache mode of the resource.
@noamr
Copy link
Contributor Author

noamr commented Apr 15, 2021

PR requests addressed. Can merge?

Copy link
Contributor

@yoavweiss yoavweiss left a comment

Choose a reason for hiding this comment

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

LGTM

@yoavweiss yoavweiss merged commit 72ff2a0 into gh-pages Apr 15, 2021
@yoavweiss yoavweiss deleted the transfer-size branch April 15, 2021 06:08
annevk pushed a commit to whatwg/fetch that referenced this pull request Apr 21, 2021
And hand processResponseDone a response.

Resource Timing PR: w3c/resource-timing#266.

Closes #1201. Follow-up: #1215.
Copy link

@liuchengwei555 liuchengwei555 left a comment

Choose a reason for hiding this comment

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

C

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

transferSize might reveal HttpOnly cookies
3 participants