Skip to content

PerformanceResourceTiming transferSize getter steps does not consider cross origin resources. #423

Description

@colelao

The PerformanceResourceTiming transferSize attribute's getter steps do not account for all conditions. There are no steps for cross origin resources. In section 4.5 Cross-origin Resources, it notes that transferSize can be zero for opaque entries, which is in conflict with the getter steps previously stated.

The getter steps for the PerformanceResourceTiming transferSize should include the cross origin resource case to match with the statement in section 4.5 Cross-origin Resources. I suggest something similar to:

  1. If the timing allow check algorithm fails for a cross-origin resource, then return 0.

  2. If this's cache mode is "local", then return 0.

  3. If this's cache mode is "validated", then return 300.

  4. Return this's response body info's encoded size plus 300.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions