Commit Graph
4 Commits
Author SHA1 Message Date
Blink WPT Bot 2bd70d5047 Bug 1874526 [wpt PR 43984] - [wptrunner] Do not include testharness{,report}.js twice, a=testonly
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
2024-01-20 10:35:41 +00:00
Ming-Ying Chung 595b3f7495 Bug 1836427 [wpt PR 40355] - [keepalive-migration] Add more WPTs to cover CORS-related fetch keepalive behaviors, a=testonly
Automatic update from web-platform-tests
[keepalive-migration] Add more WPTs to cover CORS-related fetch keepalive behaviors

Bug: 1356128
Change-Id: I99fc85c78a629585b8bb6e40469ade58111ecea8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4583750
Reviewed-by: Kenichi Ishibashi <[email protected]>
Commit-Queue: Ming-Ying Chung <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1154273}

--

wpt-commits: b19fbfd70cf403c5a71a7cb7465b652c00d780c2
wpt-pr: 40355
2023-06-13 07:15:54 +00:00
Ming-Ying Chung 40a4810c91 Bug 1826349 [wpt PR 39364] - [keepalive-migration] Add basic in-browser redirect logic, a=testonly
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
2023-04-18 09:11:07 +00:00
Ming-Ying Chung 6cdf66424f Bug 1822543 [wpt PR 39012] - Refactor fetch keepalive-related WPT tests and add a basic one., a=testonly
Automatic update from web-platform-tests
Refactor fetch keepalive-related WPT tests and add a basic one.

Bug: 1356128
Change-Id: I279af0c91db27158f3836eb554853e853a5e5d06
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4340429
Commit-Queue: Ming-Ying Chung <[email protected]>
Reviewed-by: Kenichi Ishibashi <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1118488}

--

wpt-commits: 37bb8d987c28d9e435e5f1e2f24df1d42eeb6f62
wpt-pr: 39012
2023-03-29 12:51:58 +00:00