"View Background Image" doesn't work for inlined SVG images
Categories
(Core :: DOM: Security, defect, P1)
Tracking
()
People
(Reporter: glob, Assigned: ckerschb)
References
(Regression)
Details
(Keywords: regression, Whiteboard: [domsecurity-active])
Attachments
(2 files)
STR:
- create content that has an inline SVG as a background image (see attached)
- right click on background --> "View Background Image"
Expected:
- Navigated to the background's
data:
URL
Actual:
- Nothing, not even an error message
Comment 1•5 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
More:
- on BMO you'll see CSP warnings when trying to view the background image, this doesn't happen on the site where I found this issue so they are unrelated
- command-clicking on "View Background Image" opens the
data:
url in a new tab, however the content is blank. Interestingly enough the "Refresh" button is disabled on this tab - focusing the address bar and hitting Return to navigate to the url results in SVG being correctly shown
Oops, forgot to describe my Firefox version: I see this in the release channel (currently on 79) as well as nightly (81). fission is not enabled in either environment.
Comment 4•5 years ago
|
||
mozregression points me to this range:
Looks like it's bug 1380959, which disallowed top-level data: URL navigations. We should probably allow it when it was triggered by View Source. Sounds similar to bug 1407891, too. Christian, do you know what we need to do here?
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Comment 5•5 years ago
|
||
I really can't tell why we are not logging to either the browser console, or the web console in that particular case.
Good news is, I have a patch which fixes the problem - will upload in a minute.
Assignee | ||
Comment 6•5 years ago
|
||
Comment 8•5 years ago
|
||
bugherder |
Updated•5 years ago
|
Description
•