diff options
17 files changed, 92 insertions, 70 deletions
diff --git a/components/script/network_listener.rs b/components/script/network_listener.rs index 3a116711472..699a8e70f72 100644 --- a/components/script/network_listener.rs +++ b/components/script/network_listener.rs @@ -62,7 +62,7 @@ pub fn submit_timing_data( PerformanceResourceTiming::new(global, url, initiator_type, None, resource_timing); global .performance() - .queue_entry(performance_entry.upcast::<PerformanceEntry>(), false); + .queue_entry(performance_entry.upcast::<PerformanceEntry>(), true); } impl<Listener: PreInvoke + Send + 'static> NetworkListener<Listener> { diff --git a/tests/wpt/metadata/html/semantics/embedded-content/the-img-element/srcset/avoid-reload-on-resize.html.ini b/tests/wpt/metadata/html/semantics/embedded-content/the-img-element/srcset/avoid-reload-on-resize.html.ini new file mode 100644 index 00000000000..317900a024d --- /dev/null +++ b/tests/wpt/metadata/html/semantics/embedded-content/the-img-element/srcset/avoid-reload-on-resize.html.ini @@ -0,0 +1,4 @@ +[avoid-reload-on-resize.html] + [Avoid srcset image reloads when viewport resizes] + expected: FAIL + diff --git a/tests/wpt/metadata/performance-timeline/case-sensitivity.any.js.ini b/tests/wpt/metadata/performance-timeline/case-sensitivity.any.js.ini index 66792a7732c..16ce3366eb4 100644 --- a/tests/wpt/metadata/performance-timeline/case-sensitivity.any.js.ini +++ b/tests/wpt/metadata/performance-timeline/case-sensitivity.any.js.ini @@ -9,6 +9,3 @@ [case-sensitivity.any.html] type: testharness - [getEntriesByName values are case sensitive] - expected: FAIL - diff --git a/tests/wpt/metadata/resource-timing/idlharness.any.js.ini b/tests/wpt/metadata/resource-timing/idlharness.any.js.ini index 1938b2ca3ff..9a66523e3e4 100644 --- a/tests/wpt/metadata/resource-timing/idlharness.any.js.ini +++ b/tests/wpt/metadata/resource-timing/idlharness.any.js.ini @@ -70,9 +70,6 @@ [PerformanceResourceTiming interface: resource must inherit property "workerStart" with the proper type] expected: FAIL - [PerformanceResourceTiming interface: resource must inherit property "initiatorType" with the proper type] - expected: FAIL - [PerformanceResourceTiming interface: attribute transferSize] expected: FAIL @@ -82,66 +79,36 @@ [PerformanceResourceTiming interface: resource must inherit property "secureConnectionStart" with the proper type] expected: FAIL - [PerformanceResourceTiming interface: resource must inherit property "requestStart" with the proper type] - expected: FAIL - [PerformanceResourceTiming interface: resource must inherit property "transferSize" with the proper type] expected: FAIL [PerformanceResourceTiming interface: resource must inherit property "domainLookupStart" with the proper type] expected: FAIL - [PerformanceResourceTiming interface: resource must inherit property "connectStart" with the proper type] - expected: FAIL - [PerformanceResourceTiming interface: attribute decodedBodySize] expected: FAIL - [Stringification of resource] - expected: FAIL - - [PerformanceResourceTiming interface: resource must inherit property "redirectStart" with the proper type] - expected: FAIL - [PerformanceResourceTiming interface: resource must inherit property "toJSON()" with the proper type] expected: FAIL - [PerformanceResourceTiming interface: resource must inherit property "responseEnd" with the proper type] - expected: FAIL - [PerformanceResourceTiming interface: resource must inherit property "redirectEnd" with the proper type] expected: FAIL - [PerformanceResourceTiming interface: resource must inherit property "nextHopProtocol" with the proper type] - expected: FAIL - [PerformanceResourceTiming interface: resource must inherit property "domainLookupEnd" with the proper type] expected: FAIL [PerformanceResourceTiming interface: resource must inherit property "decodedBodySize" with the proper type] expected: FAIL - [PerformanceResourceTiming interface: resource must inherit property "fetchStart" with the proper type] - expected: FAIL - [PerformanceResourceTiming interface: attribute encodedBodySize] expected: FAIL - [PerformanceResourceTiming interface: resource must inherit property "connectEnd" with the proper type] - expected: FAIL - [PerformanceResourceTiming interface: resource must inherit property "encodedBodySize" with the proper type] expected: FAIL [PerformanceResourceTiming interface: operation toJSON()] expected: FAIL - [PerformanceResourceTiming interface: resource must inherit property "responseStart" with the proper type] - expected: FAIL - - [PerformanceResourceTiming must be primary interface of resource] - expected: FAIL - [PerformanceResourceTiming interface: attribute secureConnectionStart] expected: FAIL diff --git a/tests/wpt/metadata/resource-timing/no-entries-for-cross-origin-css-fetched.sub.html.ini b/tests/wpt/metadata/resource-timing/no-entries-for-cross-origin-css-fetched.sub.html.ini new file mode 100644 index 00000000000..246ce01389f --- /dev/null +++ b/tests/wpt/metadata/resource-timing/no-entries-for-cross-origin-css-fetched.sub.html.ini @@ -0,0 +1,4 @@ +[no-entries-for-cross-origin-css-fetched.sub.html] + [Make sure that resources fetched by cross origin CSS are not in the timeline.] + expected: FAIL + diff --git a/tests/wpt/metadata/resource-timing/resource_TAO_origin.htm.ini b/tests/wpt/metadata/resource-timing/resource_TAO_origin.htm.ini index 9b69baa0593..a223c9b3c2e 100644 --- a/tests/wpt/metadata/resource-timing/resource_TAO_origin.htm.ini +++ b/tests/wpt/metadata/resource-timing/resource_TAO_origin.htm.ini @@ -5,27 +5,15 @@ [domainLookupEnd should not be 0 in timing-allow cross-origin request.] expected: FAIL - [connectStart should not be 0 in timing-allow cross-origin request.] - expected: FAIL - - [connectEnd should not be 0 in timing-allow cross-origin request.] - expected: FAIL - - [requestStart should not be 0 in timing-allow cross-origin request.] - expected: FAIL - [responseStart should not be 0 in timing-allow cross-origin request.] expected: FAIL - [fetchStart should not be 0 in timing-allow cross-origin request.] - expected: FAIL - - [responseEnd should not be 0 in timing-allow cross-origin request.] - expected: FAIL - [redirectEnd should be 0 in cross-origin request since no redirect.] expected: FAIL [secureConnectionStart should be 0 in cross-origin request since no ssl!] expected: FAIL + [The iframe should have one resource timing entry.] + expected: FAIL + diff --git a/tests/wpt/metadata/resource-timing/resource_TAO_zero.htm.ini b/tests/wpt/metadata/resource-timing/resource_TAO_zero.htm.ini index 902701a7399..3877c566dd4 100644 --- a/tests/wpt/metadata/resource-timing/resource_TAO_zero.htm.ini +++ b/tests/wpt/metadata/resource-timing/resource_TAO_zero.htm.ini @@ -1,10 +1,4 @@ [resource_TAO_zero.htm] - [fetchStart should be greater than 0 in cross-origin request.] - expected: FAIL - - [responseEnd should be greater than 0 in cross-origin request.] - expected: FAIL - [secureConnectionStart should be 0 in cross-origin request.] expected: FAIL @@ -17,3 +11,15 @@ [redirectEnd should be 0 in cross-origin request.] expected: FAIL + [connectEnd should be 0 in cross-origin request.] + expected: FAIL + + [connectStart should be 0 in cross-origin request.] + expected: FAIL + + [There should be one resource timing entry.] + expected: FAIL + + [requestStart should be 0 in cross-origin request.] + expected: FAIL + diff --git a/tests/wpt/metadata/resource-timing/resource_connection_reuse.html.ini b/tests/wpt/metadata/resource-timing/resource_connection_reuse.html.ini index 1fe5956c6a0..575076c1db5 100644 --- a/tests/wpt/metadata/resource-timing/resource_connection_reuse.html.ini +++ b/tests/wpt/metadata/resource-timing/resource_connection_reuse.html.ini @@ -2,3 +2,18 @@ [There should be 2 PerformanceEntries] expected: FAIL + [domainLookupEnd and fetchStart should be the same] + expected: FAIL + + [connectStart and fetchStart should be the same] + expected: FAIL + + [domainLookupStart and fetchStart should be the same] + expected: FAIL + + [secureConnectionStart should be zero] + expected: FAIL + + [connectEnd and fetchStart should be the same] + expected: FAIL + diff --git a/tests/wpt/metadata/resource-timing/resource_connection_reuse.https.html.ini b/tests/wpt/metadata/resource-timing/resource_connection_reuse.https.html.ini index a891f97d483..0c3861d5f41 100644 --- a/tests/wpt/metadata/resource-timing/resource_connection_reuse.https.html.ini +++ b/tests/wpt/metadata/resource-timing/resource_connection_reuse.https.html.ini @@ -2,3 +2,18 @@ [There should be 2 PerformanceEntries] expected: FAIL + [secureConnectionStart and fetchStart should be the same] + expected: FAIL + + [domainLookupEnd and fetchStart should be the same] + expected: FAIL + + [connectStart and fetchStart should be the same] + expected: FAIL + + [domainLookupStart and fetchStart should be the same] + expected: FAIL + + [connectEnd and fetchStart should be the same] + expected: FAIL + diff --git a/tests/wpt/metadata/resource-timing/resource_connection_reuse_mixed_content.html.ini b/tests/wpt/metadata/resource-timing/resource_connection_reuse_mixed_content.html.ini index 795699ea487..27b591a81d4 100644 --- a/tests/wpt/metadata/resource-timing/resource_connection_reuse_mixed_content.html.ini +++ b/tests/wpt/metadata/resource-timing/resource_connection_reuse_mixed_content.html.ini @@ -2,3 +2,18 @@ [There should be 2 PerformanceEntries] expected: FAIL + [secureConnectionStart and fetchStart should be the same] + expected: FAIL + + [domainLookupEnd and fetchStart should be the same] + expected: FAIL + + [connectStart and fetchStart should be the same] + expected: FAIL + + [domainLookupStart and fetchStart should be the same] + expected: FAIL + + [connectEnd and fetchStart should be the same] + expected: FAIL + diff --git a/tests/wpt/metadata/resource-timing/resource_connection_reuse_mixed_content_redirect.html.ini b/tests/wpt/metadata/resource-timing/resource_connection_reuse_mixed_content_redirect.html.ini index e08f6fd4943..27a131b19bd 100644 --- a/tests/wpt/metadata/resource-timing/resource_connection_reuse_mixed_content_redirect.html.ini +++ b/tests/wpt/metadata/resource-timing/resource_connection_reuse_mixed_content_redirect.html.ini @@ -2,3 +2,18 @@ [There should be 2 PerformanceEntries] expected: FAIL + [secureConnectionStart and fetchStart should be the same] + expected: FAIL + + [domainLookupEnd and fetchStart should be the same] + expected: FAIL + + [connectStart and fetchStart should be the same] + expected: FAIL + + [domainLookupStart and fetchStart should be the same] + expected: FAIL + + [connectEnd and fetchStart should be the same] + expected: FAIL + diff --git a/tests/wpt/metadata/resource-timing/resource_dedicated_worker.html.ini b/tests/wpt/metadata/resource-timing/resource_dedicated_worker.html.ini deleted file mode 100644 index a0318fd5935..00000000000 --- a/tests/wpt/metadata/resource-timing/resource_dedicated_worker.html.ini +++ /dev/null @@ -1,4 +0,0 @@ -[resource_dedicated_worker.html] - [There should be six entries: 4 scripts, 1 stylesheet, and the worker itself] - expected: FAIL - diff --git a/tests/wpt/metadata/resource-timing/test_resource_timing.html.ini b/tests/wpt/metadata/resource-timing/test_resource_timing.html.ini index e52d422b64d..32bb07949a1 100644 --- a/tests/wpt/metadata/resource-timing/test_resource_timing.html.ini +++ b/tests/wpt/metadata/resource-timing/test_resource_timing.html.ini @@ -15,9 +15,6 @@ [PerformanceEntry has correct protocol attribute (iframe)] expected: FAIL - [window.performance.getEntriesByName() and window.performance.getEntriesByNameType() return same data (img)] - expected: FAIL - [PerformanceEntry has correct name, initiatorType, startTime, and duration (img)] expected: FAIL diff --git a/tests/wpt/metadata/resource-timing/test_resource_timing.https.html.ini b/tests/wpt/metadata/resource-timing/test_resource_timing.https.html.ini index 8c33dc1df3e..59f26282158 100644 --- a/tests/wpt/metadata/resource-timing/test_resource_timing.https.html.ini +++ b/tests/wpt/metadata/resource-timing/test_resource_timing.https.html.ini @@ -51,9 +51,6 @@ [PerformanceEntry has correct protocol attribute (xmlhttprequest)] expected: FAIL - [window.performance.getEntriesByName() and window.performance.getEntriesByNameType() return same data (img)] - expected: FAIL - [PerformanceEntry has correct order of timing attributes (script)] expected: FAIL diff --git a/tests/wpt/metadata/workers/worker-performance.worker.js.ini b/tests/wpt/metadata/workers/worker-performance.worker.js.ini index dfbd1fa7f58..0f144978136 100644 --- a/tests/wpt/metadata/workers/worker-performance.worker.js.ini +++ b/tests/wpt/metadata/workers/worker-performance.worker.js.ini @@ -18,3 +18,9 @@ [performance.toJSON is available in workers] expected: FAIL + [performance.clearResourceTimings in workers] + expected: FAIL + + [performance.setResourceTimingBufferSize in workers] + expected: FAIL + diff --git a/tests/wpt/mozilla/meta/MANIFEST.json b/tests/wpt/mozilla/meta/MANIFEST.json index 98b4ea7bf8b..dd1cb8bd996 100644 --- a/tests/wpt/mozilla/meta/MANIFEST.json +++ b/tests/wpt/mozilla/meta/MANIFEST.json @@ -19679,7 +19679,7 @@ "support" ], "mozilla/xmlhttprequest_url.html": [ - "e5d10f27c06e1febd3bb70f8f128194fc3f63861", + "3a765c1e45b0ff25d9161e70f2ad0718769a4cdb", "testharness" ], "webxr/create_session.html": [ diff --git a/tests/wpt/mozilla/tests/mozilla/xmlhttprequest_url.html b/tests/wpt/mozilla/tests/mozilla/xmlhttprequest_url.html index e5d10f27c06..3a765c1e45b 100644 --- a/tests/wpt/mozilla/tests/mozilla/xmlhttprequest_url.html +++ b/tests/wpt/mozilla/tests/mozilla/xmlhttprequest_url.html @@ -19,7 +19,7 @@ async_test(function(t) { request.onload = t.step_func_done(function() { let entries = window.performance.getEntriesByType("resource"); - assert_equals(entries.length, 1); + assert_equals(entries.length, 3); assert_equals(entries[0].name, href); }); }, "Performance entries should contain the URL where the XMLHttpRequest originated"); |