Automatic update from web-platform-tests
Wrap event handlers in Client Hints tests in `t.step_func` (#17164)
Without this, any failed assert will cause a harness error instead of
failing the test.
Note that some problematic use like
`win.addEventListener('load', acceptChLifetimeLoaded, false)` remains,
but fixing these would require introducing new tests.
--
wp5At-commits: 8805e118d9d915a3bc72f6e18620243bb65ba20b
wpt-pr: 17164
Automatic update from web-platform-testsModify source path for wpt test of Accept-CH
This CL modifies source path that is used in wpt test of Accept-CH.
window.open() uses the base URL of the entry realm's window in order to
resolve a relative URL.
The entry realm should be main window on calling function
|acceptChLoaded| as a listener for load event of non-main window in this
test.
We want to open do_not_expect_client_hints_headers.html in resources/
so the relative URL in this test should start from "resources/".
Also, entry realm is not set correctly by current chromium
implementation, so fixed test is assumed to fail.
Change-Id: I973393e0a7ca74cac882eb58f5a58aa9a81556ff
Reviewed-on: https://chromium-review.googlesource.com/1179511
Commit-Queue: Yuki Yamada <[email protected]>
Reviewed-by: Tarun Bansal <[email protected]>
Reviewed-by: Yuki Shiino <[email protected]>
Reviewed-by: Kentaro Hara <[email protected]>
Reviewed-by: Hitoshi Yoshida <[email protected]>
Cr-Commit-Position: refs/heads/master@{#584958}
--
wpt-commits: cd356d332be2a1edb92ae8bb185d0ff3fb40a176
wpt-pr: 12542
Automatic update from web-platform-testsWPT tests for http-equiv Accept-CH-Lifetime
WPT tests are added for:
(i) When ACL http-equiv header is sent by a same-origin iframe.
(ii) When ACL http-equiv header is sent by a cross-origin iframe.
(iii) When ACL http-equiv header is sent by a subresource.
(iv) When ACL http-equiv header is sent on the main frame.
Change-Id: Ie4adce0c1b5983a66ce3dce7bb6b77e30f63c03a
Bug: 852484
Reviewed-on: https://chromium-review.googlesource.com/1125212
Reviewed-by: Yoav Weiss <[email protected]>
Commit-Queue: Tarun Bansal <[email protected]>
Cr-Commit-Position: refs/heads/master@{#572706}
--
wpt-commits: f2fdea2d681d3618c7215e9333535c9585ec7171
wpt-pr: 11778
Automatic update from web-platform-testsAdd more WPT tests for client hints
The WPT tests check the Accept-CH-Lifetime (ACL) header functionality.
Add tests for:
(i) When ACL header is sent by a same-origin iframe.
(ii) When ACL header is sent by a cross-origin iframe.
(iii) When ACL header is sent by a subresource.
(iv) When ACL header is sent on the main frame.
Also, change the ACL persistence time-duration from 20
seconds to 5 seconds to make it easier to run multiple tests
quickly and without waiting too long.
Change-Id: I31047598bbb1e7c64cadf3e6845bf850c29aca8b
Bug: 856700
Reviewed-on: https://chromium-review.googlesource.com/1119848
Commit-Queue: Tarun Bansal <[email protected]>
Reviewed-by: Yoav Weiss <[email protected]>
Cr-Commit-Position: refs/heads/master@{#572273}
--
wpt-commits: 59d4a411a8ead528f17b124b03c07387a3d43d07
wpt-pr: 11735