Closed
Bug 1240357
Opened 8 years ago
Closed 8 months ago
Support crossOrigin attribute on image and feImage elements
Categories
(Core :: SVG, enhancement)
Core
SVG
Tracking
()
RESOLVED
FIXED
114 Branch
Tracking | Status | |
---|---|---|
firefox114 | --- | fixed |
People
(Reporter: longsonr, Assigned: longsonr)
References
(Blocks 1 open bug, Regressed 1 open bug)
Details
(Keywords: dev-doc-complete)
Attachments
(1 file, 3 obsolete files)
No description provided.
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → longsonr
Assignee | ||
Comment 1•8 years ago
|
||
Assignee | ||
Comment 2•8 years ago
|
||
Cam, is the SVG specification right? It says attribute DOMString crossOrigin; but the html DOM in gecko (and my WIP patch) has attribute DOMString? crossOrigin;
Assignee | ||
Updated•8 years ago
|
Flags: needinfo?(cam)
Comment 3•8 years ago
|
||
Checking the HTML spec, it looks like it should indeed be "DOMString?". I've updated the spec: https://svgwg.org/svg2-draft/embedded.html#ImageElementCrossoriginAttribute
Flags: needinfo?(cam)
Comment 4•8 years ago
|
||
(In fact the HTML spec changed underneath us.)
Assignee | ||
Comment 5•8 years ago
|
||
Attachment #8708824 -
Attachment is obsolete: true
Assignee | ||
Comment 6•8 years ago
|
||
This seems to work but I don't know how to write an automated test for it. Any suggestions?
Flags: needinfo?(dholbert)
Comment 7•8 years ago
|
||
I imagine the tricky part of the automated test is the cross-origin part, right? That's explained a bit here: https://developer.mozilla.org/en/docs/Mochitest#How_do_I_test_issues_which_only_show_up_when_tests_are_run_across_domains.3F I'd expect you want to write a mochitest which... * ...uses SVG in an iframe and snapshotWindow to see whether stuff rendered or not, like this test: http://mxr.mozilla.org/mozilla-central/source/dom/svg/test/test_use_with_hsts.html * ...uses an <image> & <feImage> that point to 'example.org', which the mochitest web server will recognize and map to your source tree, like in these tests: http://mxr.mozilla.org/mozilla-central/source/devtools/client/inspector/test/browser_inspector_navigation.js http://mxr.mozilla.org/mozilla-central/source/devtools/client/storage/test/storage-listings.html A few other thoughts: * Promises make the iframe load callbacks a bit easier to follow. If you're not too familiar with promises, feel free to crib from my test_use_with_hsts.html test and ping me with questions. Or, traditional async callbacks shouldn't be too complex either. * For robustness, your SVG file (or SVG files) should include both elements (<feImage> & <image>), with the crossOrigin attribute present & not-present.
Flags: needinfo?(dholbert)
Assignee | ||
Comment 9•5 years ago
|
||
Attachment #8709662 -
Attachment is obsolete: true
Comment hidden (off-topic) |
Comment 11•1 year ago
|
||
Sorry, there was a problem with the detection of inactive users. I'm reverting the change.
Assignee: nobody → longsonr
Updated•1 year ago
|
Severity: normal → S3
Assignee | ||
Comment 13•8 months ago
|
||
Assignee | ||
Updated•8 months ago
|
Attachment #9073146 -
Attachment is obsolete: true
Assignee | ||
Comment 14•8 months ago
|
||
Comment 15•8 months ago
|
||
Pushed by longsonr@gmail.com: https://hg.mozilla.org/integration/autoland/rev/21dbf1f0a49a Support crossOrigin attribute on image and feImage elements r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/39470 for changes under testing/web-platform/tests
Comment 17•8 months ago
|
||
Backed out changeset 21dbf1f0a49a (Bug 1240357) for causing wpt failures at svg-image.https.sub.html
Backout: https://hg.mozilla.org/integration/autoland/rev/7379f77af5bba946fe5a641fb8a90f220d68879f
Failure log: https://treeherder.mozilla.org/logviewer?job_id=411963582&repo=autoland&lineNumber=11654
Flags: needinfo?(longsonr)
Upstream PR was closed without merging
Comment 19•8 months ago
|
||
Pushed by longsonr@gmail.com: https://hg.mozilla.org/integration/autoland/rev/2b8d11d13743 Support crossOrigin attribute on image and feImage elements r=emilio
Assignee | ||
Updated•8 months ago
|
Flags: needinfo?(longsonr)
Comment 20•8 months ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 8 months ago
status-firefox114:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 114 Branch
Upstream PR merged by moz-wptsync-bot
Updated•8 months ago
|
Keywords: dev-doc-needed
Comment 22•6 months ago
|
||
Documentation changes can be tracked in the following GitHub issue: https://github.com/mdn/content/issues/26690
Updated•6 months ago
|
Keywords: dev-doc-needed → dev-doc-complete
You need to log in
before you can comment on or make changes to this bug.
Description
•