Closed Bug 2056838 Opened 4 months ago Closed 4 months ago

[wpt-sync] Sync PR 61478 - [Connection-Allowlist] Add connectionallowlist iframe attribute + IPC transport

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox155 fixed)

RESOLVED FIXED
155 Branch
Tracking Status
firefox155 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Giovanni Del Valle <gdelvalle@microsoft.com> wrote:

[Connection-Allowlist] Add connectionallowlist iframe attribute + IPC transport

This is one in a series of CLs:

  1. https://crrev.com/c/7926080 - Rename AllowCSPFromHeaderValue to OriginOrWildcardHeaderValue
  2. https://crrev.com/c/7925634 - Add Connection-Allowlist embedded enforcement primitives
  3. https://crrev.com/c/7925636 - [You are here.]
  4. https://crrev.com/c/7933938 - Enforce Connection-Allowlist embedded enforcement handshake

Second CL for Connection-Allowlist embedded enforcement (after the
network primitives; WICG/connection-allowlists#1). Adds the renderer
attribute and delivers it to the browser, with no enforcement yet:

  • New ConnectionAllowlistEmbeddedEnforcement runtime feature, kept
    separate from ConnectionAllowlist so this piece can iterate
    independently.
  • connectionallowlist iframe content attribute, with a reflecting
    connectionAllowlist IDL attribute (flag-gated). The renderer
    validates the value by parsing it -- the structured-field grammar
    rejects header injection and other malformed input -- and sends the
    raw structured-header value to the browser via IframeAttributes.
  • The browser receives it on FrameTreeNode
    (connection_allowlist_attribute()).

A browsertest verifies the attribute reaches the browser and that the
IDL attribute reflects it. Enforcement of the delivered value (the
navigation handshake) follows in the next CL.

Bug: 522111613
Change-Id: I3b12446776abc5c44bfef69b3249c4ea4771bc06
Reviewed-on: https://chromium-review.googlesource.com/7925636
WPT-Export-Revision: 897ec3a226cbf007161c8be6f4158fb195b3a6cc

CI Results

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

Total 74 tests and 5 subtests

Status Summary

Firefox

OK : 1[GitHub] 68[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 70[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS : 1[GitHub] 107[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 108[Gecko-android-em-14-x86_64-debug-geckoview] 112[Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview]
FAIL : 4[GitHub] 192[Gecko-android-em-14-x86_64-debug-geckoview] 193[Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 203[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
ERROR: 1

Chrome

OK : 1
PASS : 1
FAIL : 4

Safari

OK : 1
PASS : 1
FAIL : 4

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Tests Disabled in Gecko Infrastructure

You need to log in before you can comment on or make changes to this bug.