console.log doesn't show objects at the time of logging if console is closed
Categories
(DevTools :: Console, defect, P2)
Tracking
(Not tracked)
People
(Reporter: BenWa, Unassigned)
References
(Depends on 1 open bug, Blocks 1 open bug)
Details
(Whiteboard: [console-papercuts][polish-backlog])
Comment 1•13 years ago
|
||
Reporter | ||
Comment 2•13 years ago
|
||
Comment 3•13 years ago
|
||
Comment 4•13 years ago
|
||
Comment 5•13 years ago
|
||
Comment 6•13 years ago
|
||
Comment 7•12 years ago
|
||
Comment 8•12 years ago
|
||
Comment 9•11 years ago
|
||
Comment 10•11 years ago
|
||
Comment 11•11 years ago
|
||
Comment 12•11 years ago
|
||
Comment 13•11 years ago
|
||
Comment 14•11 years ago
|
||
Comment 18•10 years ago
|
||
Comment 19•10 years ago
|
||
Comment 21•10 years ago
|
||
Comment 22•10 years ago
|
||
Comment 24•10 years ago
|
||
Comment 25•10 years ago
|
||
Comment 26•10 years ago
|
||
Updated•10 years ago
|
Updated•10 years ago
|
Comment 28•10 years ago
|
||
Comment 29•10 years ago
|
||
Comment 30•10 years ago
|
||
Comment 31•10 years ago
|
||
Comment 32•10 years ago
|
||
Comment 33•10 years ago
|
||
Comment 34•10 years ago
|
||
Comment 35•10 years ago
|
||
Comment 36•10 years ago
|
||
Updated•10 years ago
|
Comment 37•10 years ago
|
||
Updated•10 years ago
|
Comment 38•10 years ago
|
||
Comment 40•10 years ago
|
||
Comment 41•9 years ago
|
||
Updated•9 years ago
|
Comment 42•7 years ago
|
||
Updated•6 years ago
|
Updated•2 years ago
|
Comment 44•2 years ago
|
||
The severity field for this bug is relatively low, S3. However, the bug has 7 duplicates.
:nchevobbe, could you consider increasing the bug severity?
For more information, please visit auto_nag documentation.
Updated•2 years ago
|
Comment 48•1 year ago
|
||
Bug 1519618 would be a first step. We could at least acknowledge in the UI that:
- the object may not be the right one, when coming console cache
- The object is the live one when expending properties
Comment 49•11 months ago
|
||
Chrome seems to also have a distinct behavior between console API call happening before DevTools are opened, versus while they are opened.
It also surface similar issue when it comes around logging DOM Element.
On the following example:
data:text/html,<a class="foo">link</a><script>const o = {foo:true}; console.log(o, document.querySelector("a")); o.bar=true;document.querySelector("a").className = "foo bar";</script>
We should only see foo
attribute/class name on both objects, and we should especially not see the bar
ones.
When logging before the DevTools are opened:
Chrome: Object <a class="foo bar">link</a>
Firefox: Object { foo: true, bar: true } <a class="foo bar">
Here Firefox is wrong on both cases, while chrome is only wrong for DOM Elements.
Chrome special case the logging of objects that happens without DevTools opened and disable their preview.
When logging after the DevTools are opened:
Chrome: {foo: true} <a class="foo bar">link</a>
Firefox: Object { foo: true } <a class="foo">
Here Firefox is all correct, but Chrome is still wrong on DOM Elements. It looks like DOM Elements are always considered as live preview and are never cached at the time of console api call.
Description
•