Closed Bug 1979060 Opened 22 days ago Closed 17 days ago

[wpt-sync] Sync PR 53956 - Initial patchsrc support

Categories

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

task

Tracking

()

RESOLVED FIXED
143 Branch
Tracking Status
firefox143 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Noam Rosenthal <nrosenthal@chromium.org> wrote:

Initial patchsrc support

\<template patchfor=id patchsrc=url> fetches the resource from the url
(with CORS), and applies the content as a patch. The inline content of
the element is applied while fetching.

Also fixed some exception code to use the correct constructors.

Bug: 431374376
Change-Id: I84efb9d3c6948c10403ff985c19388360ec13243
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6781096
Reviewed-by: Philip Jägenstedt \<foolip@chromium.org>
Commit-Queue: Noam Rosenthal \<nrosenthal@google.com>
Cr-Commit-Position: refs/heads/main@{#1491392}

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

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

Total 1 tests and 5 subtests

Status Summary

Firefox

OK : 1
FAIL: 5

Chrome

OK : 1
FAIL: 5

Safari

OK : 1
FAIL: 5

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /html/dom/partial-updates/tentative/patchsrc.html [wpt.fyi]
    • patchsrc should load external content: FAIL (Chrome: FAIL, Safari: FAIL)
    • patchsrc should reject with NotFound when external content is not found: FAIL (Chrome: FAIL, Safari: FAIL)
    • patchsrc should fail when loading a cross-origin patch without CORS headers: FAIL (Chrome: FAIL, Safari: FAIL)
    • patchsrc should work with the appropriate CORS headers: FAIL (Chrome: FAIL, Safari: FAIL)
    • patchsrc should apply the inline content before the response arrives: FAIL (Chrome: FAIL, Safari: FAIL)
Status: NEW → RESOLVED
Closed: 17 days ago
Resolution: --- → FIXED
Target Milestone: --- → 143 Branch
You need to log in before you can comment on or make changes to this bug.