Bug 1441859 [wpt PR 9717] - Change navigation preload initiatorType to "navigation", a=testonly

Automatic update from web-platform-testsChange navigation preload initiatorType to "navigation"

As discussed at https://github.com/w3c/resource-timing/issues/110
the Resource Timing specification does not single out navigation
preload from other navigation types, and therefore the `initiatorType`
for it should be "navigation", rather than other.

This CL implements that change.

Intent-to-ship: https://groups.google.com/a/chromium.org/d/msg/blink-dev/W3InszDnV2k/AuJg4aAMDQAJ

Change-Id: Iba7fa038892936e164cd408355f1ac9f6592415b
Reviewed-on: https://chromium-review.googlesource.com/941342
Commit-Queue: Yoav Weiss <yoav@yoav.ws>
Reviewed-by: Tsuyoshi Horo <horo@chromium.org>
Reviewed-by: Marijn Kruisselbrink <mek@chromium.org>
Cr-Commit-Position: refs/heads/master@{#540483}

wpt-commits: 34c346b8485a2c77e14d4c6d188773fc5465b5b0
wpt-pr: 9717
wpt-commits: 34c346b8485a2c77e14d4c6d188773fc5465b5b0
wpt-pr: 9717
This commit is contained in:
Yoav Weiss 2018-03-26 14:56:22 +00:00 committed by James Graham
parent 57a97c46fc
commit 0a9858e300
2 changed files with 3 additions and 3 deletions

View File

@ -590892,7 +590892,7 @@
"testharness"
],
"service-workers/service-worker/navigation-preload/resource-timing.https.html": [
"837273105d7a1521feff32338cdef7185a6786e3",
"6d9bfe62e8bd342ed70696322967e8395b84756a",
"testharness"
],
"service-workers/service-worker/navigation-preload/resources/broken-chunked-encoding-scope.asis": [

View File

@ -14,9 +14,9 @@ function check_timing_entry(entry, url, decodedBodySize, encodedBodySize) {
'The entryType of preload response timing entry must be "resource' +
'" :' + url);
assert_equals(
entry.initiatorType, 'other',
entry.initiatorType, 'navigation',
'The initiatorType of preload response timing entry must be ' +
'"other":' + url);
'"navigation":' + url);
// If the server returns the redirect response, |decodedBodySize| is null and
// |entry.decodedBodySize| shuld be 0. Otherwise |entry.decodedBodySize| must