Closed Bug 1440385 Opened 4 years ago Closed 4 years ago

Warning: "Removed unsafe attribute. Element: svg. Attribute: xmlns" when evaluating 'window' in the new console frontend

Categories

(DevTools :: Console, defect)

defect
Not set
normal

Tracking

(firefox60 affected)

RESOLVED WORKSFORME
Tracking Status
firefox60 --- affected

People

(Reporter: bgrins, Assigned: nchevobbe)

References

Details

STR:
1. Open the browser console (with devtools.browserconsole.new-frontend-enabled=true)
2. Evaluate `window`

The evaluation works, but below the window object I see: "Removed unsafe attribute. Element: svg. Attribute: xmlns. react-dom.js:11623:4"
I see this on any object preview.  For example: `window.foo = {}` shows the warning as well. Maybe this has to do with the expander arrow.
yes, I removed every xmlns attributes from the reps.js bundle and I don't see warnings after that.
I'll file an issue on Reps to fix this.
Depends on: 1440388
Blocks: 1439616
Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Priority: P2 → P1
Turns out those are needed when the svg is inlined in a non-HTML document, which is the case of the layout panel in the inspector, where Reps are used.

IMO, there shouldn't be a warning if removing the attribute prevents the element to work :/
Filed bug 1445258 to see if there's an issue on the platform side
Depends on: 1445258
Fixed in 1440388 ( and on Github, see https://github.com/devtools-html/devtools-core/issues/988)
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → WORKSFORME
Priority: P1 → --
Whiteboard: [newconsole-mvp]
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.