Closed Bug 2075795 Opened 2 months ago Closed 1 month ago

[wpt-sync] Sync PR 62986 - [HiC] Disallow external SVG content referenced by href

Categories

(Core :: Graphics: Canvas2D, task, P4)

task

Tracking

()

RESOLVED FIXED
159 Branch
Tracking Status
firefox159 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Stephen Chenney <schenney@chromium.org> wrote:

[HiC] Disallow external SVG content referenced by href

Several SVG elements support href attributes to obtain the
implementation of the element from a template. When the
referencing element is inside the canvas subtree, and the
referenced element is outside we must disallow the outer
element because it does not have privacy protections in
place for style-based privacy control, such as visited link
color.

Fix the problem for \<pattern>, \<linearGradient> and \<radialGradient>
and add tests. Other elements that support this form of referencing
have been audited. A test has been added for chained \<use> elements,
which is not a problem due to the implementation of \<use> cloning
the external content into the subtree. The \<set> element uses the
attribute changed pathway so changes to href through that mechanism
are also protected.

Finally, the number of SVG privacy tests is large enough to justify
moving them to a sub-directory.

Fixed: 553147154
Change-Id: I91d780134a32454ef4fb1adf7c03548a3a54dc23
Reviewed-on: https://chromium-review.googlesource.com/8455562
WPT-Export-Revision: 2e74f01ca8e74ba4757e1cfcecba8bdd211b093b

Component: web-platform-tests → Graphics: Canvas2D
Product: Testing → Core

Try push failed to land: Lando job 97783 for the try push is FAILED:
Aborting, could not apply patch buffer for None.
hg error in cmd: hg import -s 95 --no-commit /tmp/tmps4efij0_diff: applying /tmp/tmps4efij0_diff

abort: /tmp/tmps4efij0_diff: no diffs found

Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

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

Total 17 tests and 1 subtests

Status Summary

Firefox

OK : 17
FAIL: 17

Chrome

OK : 17
PASS: 14
FAIL: 3

Safari

OK : 17
FAIL: 17

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

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