Automatic update from web-platform-tests
[wptrunner] Do not include `testharness{,report}.js` twice (#43984)
Injecting `<script src="/resources/testharness{,report}.js">` is an
implicit behavior of `wptserve` for `.js` files [0].
Including `testharnessreport.js` twice for `content_shell` appears
benign, but causes issues for the default WebDriver testharness
implementation. Exporting this change will enable useful coverage for
such browsers.
A follow-up PR upstream will have `wpt lint` ban such duplicate scripts.
[0]: https://github.com/web-platform-tests/wpt/blob/9e0d5be/tools/serve/serve.py#L273-L451
Bug: 1518022
Change-Id: I7a6e344c82bbaa33adfa578feeb966fa92f08040
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5195267
Commit-Queue: Jonathan Lee <[email protected]>
Reviewed-by: Weizhong Xia <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1247652}
Co-authored-by: Jonathan Lee <[email protected]>
--
wpt-commits: f66439a5ca42e416c30740cb25a7a72f3dda6d54
wpt-pr: 43984
Automatic update from web-platform-tests
[keepalive-migration] Add basic in-browser redirect logic
## Context
When a renderer is alive, a keepalive redirect request goes through a
series of checks & modifications scattering around 7 methods [1] before
calling `mojom::URLLoader::FollowRedirect()`. When the renderer dies,
redirect needs to be handled in browser.
## Changes
This CL adds logic to directly follow redirect in browser. It also
adds checks to verify safe target & Content-Security-Policy (CSP).
For CSP: `KeepAliveURLLoader` and
`KeepAliveURLLoaderFactory::FactoryContext` both maintain a refptr to
`content::PolicyContainerHost` to let `PolicyCcontainerHost` outlives
its RFHI.
[1]: https://docs.google.com/document/d/1ZzxMMBvpqn8VZBZKnb7Go8TWjnrGcXuLS_USwVVRUvY/edit#heading=h.6uwqtijf7dvd
Bug: 1356128
Change-Id: I16c42a3174379c03f80286499d893e40142f1857
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4383884
Code-Coverage: Findit <[email protected]>
Commit-Queue: Ming-Ying Chung <[email protected]>
Reviewed-by: Takashi Toyoshima <[email protected]>
Reviewed-by: Rakina Zata Amni <[email protected]>
Reviewed-by: Arthur Sonzogni <[email protected]>
Reviewed-by: Kenichi Ishibashi <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1131056}
--
wpt-commits: b651a8812595c7c90354cf0e1fe916388c1f1e49
wpt-pr: 39364