Closed Bug 2086910 Opened 1 month ago Closed 18 days ago

[wpt-sync] Sync PR 64114 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=328637

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 64114 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/64114
Details from upstream follow.

Anne van Kesteren <annevk@annevk.nl> wrote:

WebKit export of https://bugs.webkit.org/show_bug.cgi?id=328637

WebKit export from bug: Queue Document-<!---->Isolation-<!---->Policy CORP violation reports for cached and service worker responses

<pre>
Queue Document-Isolation-Policy CORP violation reports for cached and service worker responses

The cross-origin resource policy check of a memory cache hit and of a service
worker's response now queues reports too, for Document-Isolation-Policy and
Cross-Origin-Embedder-Policy alike. Before, both checks only blocked. The check
the network process does for network loads moves to WebCore as
performCrossOriginResourcePolicyCheck(), so all three share it.

The reports for a response from the network process's HTTP cache had an empty
blockedURL, as nothing recorded the first URL of its URL list. That affected
Cross-Origin-Embedder-Policy too, whose reports to a ReportingObserver also kept
the blocked URL's credentials and fragment.

A document doesn't report a memory cache hit again for an image it already uses
or for a preload it consumes, with the same mode and origin, as the
specification doesn't fetch those again. A memory cache hit that the request
loads again, such as one that is still loading for a request of another mode, is
left to that load, so that it doesn't report twice.

Not covered yet, also for Cross-Origin-Embedder-Policy:

  • The loads of a dedicated worker report to its owner document rather than to
    the worker, and their memory cache hits don't report.
  • The Cache API queues no reports.
  • A document that joins a load another document of its origin has in flight gets
    neither the check nor a report.
  • A service worker's response is reported with the requested URL. That isn't the
    first URL of the response's URL list if the worker fetched another URL, but
    the response only has its last URL.

WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=328637">https://bugs.webkit.org/show_bug.cgi?id=328637</a>
</pre>

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 149 tests and 8 subtests

Status Summary

Firefox

OK : 128[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-windows11-32-25h2-debug] 129[Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS : 547[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-windows11-32-25h2-debug] 551[Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL : 112
TIMEOUT: 4
NOTRUN : 16

Chrome

TIMEOUT: 4
NOTRUN : 16

Safari

TIMEOUT: 4
NOTRUN : 16

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Tests Disabled in Gecko Infrastructure

Status: NEW → RESOLVED
Closed: 18 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.