Closed Bug 2042292 Opened 6 months ago Closed 6 months ago

[wpt-sync] Sync PR 60164 - Added WPTs for compression dictionary edge cases

Categories

(Core :: DOM: Networking, task, P4)

task

Tracking

()

RESOLVED FIXED
153 Branch
Tracking Status
firefox153 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

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

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

Patrick Meenan <pmeenan@chromium.org> wrote:

Added WPTs for compression dictionary edge cases

Bug Fix:

  • Fixed an issue in SharedDictionaryStorage where a match-dest list
    containing only unrecognized request destinations previously collapsed
    into an empty set and was treated as a wildcard. Per spec, an
    explicitly empty list match-dest=() acts as a wildcard, whereas a
    populated list with unknown destinations correctly errors and fails
    registration.

Added a bunch of WPTs to cover edge-cases:

  • Invalid and out-of-scope match properties (syntax failures and
    cross-origin patterns).
  • Invalid/unsupported dictionary type tokens.
  • Comprehensive match-dest parsing (unknown destinations,
    matching/non-matching destinations, and explicit wildcards).
  • Dictionary id maximum length validation (exactly 1024 characters vs
    exceeding 1025 characters).
  • Robustness against unknown additional dictionary parameters.
  • Rejection of entirely malformed structured headers
    (Use-As-Dictionary: ?0) and non-cacheable responses (max-age=0).
  • Opaque response tainting resulting from cross-origin redirects under
    no-cors mode correctly ignoring registration.
  • Evaluation of Available-Dictionary on matching redirect targets across
    redirect chains.
  • Precedence evaluation when matching overlapping pattern scopes.
  • Decoding failures resulting from dictionary hash mismatches throwing
    clean network errors for both dcb and dcz.

Bug: 40255884
Change-Id: I2254ebf6139d928e48f32952b2a9a08ab9d968a9
Reviewed-on: https://chromium-review.googlesource.com/7873199
WPT-Export-Revision: dd3b2570b2ce43d8ac69aa024642aa4470c80b73

Component: web-platform-tests → DOM: Networking
Product: Testing → Core

CI Results

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

Total 168 tests and 1 subtests

Status Summary

Firefox

OK : 11[GitHub] 160[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-windows11-64-25h2-debug] 161[Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug] 162[Gecko-windows11-32-25h2-debug] 163[Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-opt]
PASS : 41[GitHub] 973[Gecko-android-em-14-x86_64-debug-geckoview] 975[Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 988[Gecko-windows11-64-25h2-debug] 994[Gecko-windows11-32-25h2-debug] 995[Gecko-linux2404-64-debug] 997[Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-opt]
FAIL : 7[GitHub] 189[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-linux2404-64-debug, Gecko-windows11-32-25h2-debug, Gecko-windows11-64-25h2-debug] 190[Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-opt]
ERROR: 2

Chrome

OK : 11
PASS : 47
FAIL : 1

Safari

OK : 11
PASS : 6
FAIL : 42

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: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 153 Branch
You need to log in before you can comment on or make changes to this bug.