[wpt-sync] Sync PR 62986 - [HiC] Disallow external SVG content referenced by href
Categories
(Core :: Graphics: Canvas2D, task, P4)
Tracking
()
| 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
| Assignee | ||
Updated•2 months ago
|
| Assignee | ||
Comment 1•2 months ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=97783
| Assignee | ||
Comment 2•2 months ago
|
||
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
| Assignee | ||
Comment 3•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=98155
| Assignee | ||
Comment 4•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=98234
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 5•1 month ago
|
||
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
Details
New Tests That Don't Pass
- /html/canvas/element/manual/draw-element-image/privacy/svg/svg-images-ignored.tentative.https.sub.html [wpt.fyi]
- drawElementImage does not draw cross-origin SVG images:
FAIL(Chrome:PASS, Safari:FAIL)
- drawElementImage does not draw cross-origin SVG images:
- /html/canvas/element/manual/draw-element-image/privacy/svg/svg-linear-gradient-href-outside-subtree-ignored.tentative.html [wpt.fyi]
- drawElementImage does not use SVG resources from outside the subtree:
FAIL(Chrome:FAIL, Safari:FAIL)
- drawElementImage does not use SVG resources from outside the subtree:
- /html/canvas/element/manual/draw-element-image/privacy/svg/svg-linear-gradient-outside-subtree-ignored.tentative.html [wpt.fyi]
- drawElementImage does not use SVG resources from outside the subtree:
FAIL(Chrome:PASS, Safari:FAIL)
- drawElementImage does not use SVG resources from outside the subtree:
- /html/canvas/element/manual/draw-element-image/privacy/svg/svg-marker-outside-subtree-ignored.tentative.html [wpt.fyi]
- drawElementImage does not use SVG markers outside the subtree:
FAIL(Chrome:PASS, Safari:FAIL)
- drawElementImage does not use SVG markers outside the subtree:
- /html/canvas/element/manual/draw-element-image/privacy/svg/svg-mask-filter.tentative.https.sub.html [wpt.fyi]
- drawElementImage does not use cross-origin feImages on filtered SVG text inside masks:
FAIL(Chrome:PASS, Safari:FAIL)
- drawElementImage does not use cross-origin feImages on filtered SVG text inside masks:
- /html/canvas/element/manual/draw-element-image/privacy/svg/svg-mask-nested-filter.tentative.https.sub.html [wpt.fyi]
- drawElementImage does not use cross-origin feImages on nested filtered SVG content inside masks:
FAIL(Chrome:PASS, Safari:FAIL)
- drawElementImage does not use cross-origin feImages on nested filtered SVG content inside masks:
- /html/canvas/element/manual/draw-element-image/privacy/svg/svg-mask-visited.tentative.https.sub.html [wpt.fyi]
- drawElementImage does not reveal visited links in external SVG masks:
FAIL(Chrome:PASS, Safari:FAIL)
- drawElementImage does not reveal visited links in external SVG masks:
- /html/canvas/element/manual/draw-element-image/privacy/svg/svg-pattern-cross-origin-image.tentative.https.sub.html [wpt.fyi]
- drawElementImage does not use cross-origin images in SVG patterns:
FAIL(Chrome:PASS, Safari:FAIL)
- drawElementImage does not use cross-origin images in SVG patterns:
- /html/canvas/element/manual/draw-element-image/privacy/svg/svg-pattern-href-outside-subtree-ignored.tentative.html [wpt.fyi]
- drawElementImage does not use SVG patterns outside the subtree:
FAIL(Chrome:FAIL, Safari:FAIL)
- drawElementImage does not use SVG patterns outside the subtree:
- /html/canvas/element/manual/draw-element-image/privacy/svg/svg-pattern-outside-subtree-ignored.tentative.html [wpt.fyi]
- drawElementImage does not use SVG patterns outside the subtree:
FAIL(Chrome:PASS, Safari:FAIL)
- drawElementImage does not use SVG patterns outside the subtree:
- /html/canvas/element/manual/draw-element-image/privacy/svg/svg-pattern-with-feImage-cross-origin-image.tentative.https.sub.html [wpt.fyi]
- drawElementImage does not use cross-origin feImages in SVG patterns:
FAIL(Chrome:PASS, Safari:FAIL)
- drawElementImage does not use cross-origin feImages in SVG patterns:
- /html/canvas/element/manual/draw-element-image/privacy/svg/svg-radial-gradient-href-outside-subtree-ignored.tentative.html [wpt.fyi]
- drawElementImage does not use SVG resources from outside the subtree:
FAIL(Chrome:FAIL, Safari:FAIL)
- drawElementImage does not use SVG resources from outside the subtree:
- /html/canvas/element/manual/draw-element-image/privacy/svg/svg-radial-gradient-outside-subtree-ignored.tentative.html [wpt.fyi]
- drawElementImage does not use SVG resources from outside the subtree:
FAIL(Chrome:PASS, Safari:FAIL)
- drawElementImage does not use SVG resources from outside the subtree:
- /html/canvas/element/manual/draw-element-image/privacy/svg/svg-use-chained-outside-subtree-images-ignored.tentative.https.sub.html [wpt.fyi]
- drawElementImage does not use cross-origin SVG use content from outside the subtree:
FAIL(Chrome:PASS, Safari:FAIL)
- drawElementImage does not use cross-origin SVG use content from outside the subtree:
- /html/canvas/element/manual/draw-element-image/privacy/svg/svg-use-ignored.tentative.https.sub.html [wpt.fyi]
- drawElementImage does not use cross-origin SVG use content:
FAIL(Chrome:PASS, Safari:FAIL)
- drawElementImage does not use cross-origin SVG use content:
- /html/canvas/element/manual/draw-element-image/privacy/svg/svg-use-outside-subtree-images-ignored.tentative.https.sub.html [wpt.fyi]
- drawElementImage does not use cross-origin SVG use content from outside the subtree:
FAIL(Chrome:PASS, Safari:FAIL)
- drawElementImage does not use cross-origin SVG use content from outside the subtree:
- /html/canvas/element/manual/draw-element-image/privacy/visited-link/visited-link-svg-use-chained-outside-subtree-ignored.tentative.html [wpt.fyi]
- drawElementImage does not leak visited colors in SVG use content from outside the subtree:
FAIL(Chrome:PASS, Safari:FAIL)
- drawElementImage does not leak visited colors in SVG use content from outside the subtree:
Comment 7•1 month ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/40f4cb26dfe3
https://hg.mozilla.org/mozilla-central/rev/c750c8619a79
Description
•