Closed Bug 1044365 Opened 10 years ago Closed 8 years ago

return value of console evaluation should be shown after any console logs from the code executed

Categories

(DevTools :: Console, defect)

31 Branch
defect
Not set
normal

Tracking

(firefox46 verified)

VERIFIED FIXED
Firefox 46
Tracking Status
firefox46 --- verified

People

(Reporter: colouredchalkmelky, Assigned: bgrins)

References

(Blocks 1 open bug)

Details

(Whiteboard: [console-spec])

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0 (Beta/Release)
Build ID: 20140716183446

Steps to reproduce:

Just try to log simple stuff:

JS code to execute in console:

var a = 10; console.log(a); a = 20; a;




Actual results:

It displays return value at first. 

Result is: 

20
10


Expected results:

should show console.log. 


Result is: 

10
20
Expected result - should show logging stuff in right order (just like execution order). Result should be "10, 20"
Component: Untriaged → Developer Tools: Console
OS: Windows 8.1 → All
Hardware: x86_64 → All
Summary: Wrong log order → return value of console evaluation should be shown after any console logs from the code executed
Blocks: 1111089
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee: nobody → bgrinstead
Status: NEW → ASSIGNED
Comment on attachment 8698762 [details]
MozReview Request: Bug 1044365 - Do not force webconsole evaluation result to show up immediately after the input;r=vporof

https://reviewboard.mozilla.org/r/28109/#review25471

This looks good to me, but I'm not entirely confident reviewing webconsole frontend code, so you might want to pass this by panos as well.
Attachment #8698762 - Flags: review?(vporof) → review+
Comment on attachment 8698762 [details]
MozReview Request: Bug 1044365 - Do not force webconsole evaluation result to show up immediately after the input;r=vporof

Additional request from Comment 3
Attachment #8698762 - Flags: review?(past)
Comment on attachment 8698762 [details]
MozReview Request: Bug 1044365 - Do not force webconsole evaluation result to show up immediately after the input;r=vporof

https://reviewboard.mozilla.org/r/28109/#review25637

Since this behavior appears to exist since ancient times and I can't find any rationale for it, let's avoid all these complications and do the simple thing.
Attachment #8698762 - Flags: review?(past) → review+
https://hg.mozilla.org/mozilla-central/rev/2903b0280572
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 46
Whiteboard: [console-spec]
I have reproduced the bug in Nightly 34.0a1 (2014-07-25) on windows 7 32 bit comment 0

Bug is fixed now on Latest Developer Edition 46.0a2 (2016-03-05)(Build ID:20160305004010)

User Agent: Mozilla/5.0 (Windows NT 6.1; rv:46.0) Gecko/20100101 Firefox/46.0


[testday-20160304]
Successfully Reproduced this bug with Firefox Nightly 34.0a1 (2014-07-25) on Linux, 64 Bit with the instructions from comment 0 

This Bug is now verified as fixed Latest Firefox Developer Edition 46.0a2 (2016-03-05)

Build ID: 20160305004010
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0
QA Whiteboard: [testday-20160304]
Status: RESOLVED → VERIFIED
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: