Closed
Bug 1317819
Opened 8 years ago
Closed 8 years ago
Webconsole logging no longer works after opening the debugger
Categories
(DevTools :: Debugger, defect)
Tracking
(firefox50 unaffected, firefox51 unaffected, firefox52 fixed, firefox53 fixed)
RESOLVED
FIXED
Firefox 53
Tracking | Status | |
---|---|---|
firefox50 | --- | unaffected |
firefox51 | --- | unaffected |
firefox52 | --- | fixed |
firefox53 | --- | fixed |
People
(Reporter: jdescottes, Assigned: jdescottes)
References
Details
(Keywords: regression)
Attachments
(2 files)
(deleted),
text/x-review-board-request
|
jlast
:
review+
jcristau
:
approval-mozilla-aurora+
|
Details |
(deleted),
text/x-review-board-request
|
jdescottes
:
review+
|
Details |
Regression from the last debugger update (Bug 1316413).
STRs:
- open devtools
- go to debugger (with new debugger frontend)
- go to console (either old or new frontend)
- send "console.log(1)"
ER: should log 1 in the console
AR: input is not cleared, 1 is not logged etc ...
In the Browser console we can see "TypeError frames is null" errors from debugger/new/panel.js (:53)
Looks like the breaking change was introduced by the following PR:
https://github.com/devtools-html/debugger.html/pull/1094
I suppose we should update the check done in panel.js from `!frames.toJS` to `!frames || !frames.toJS`, which is why I am logging this one in Bugzilla rather than on Github.
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Comment 3•8 years ago
|
||
If I understand correctly, getFrames() is always returning either a Seq (ie. with toJS() available) or null. Updated the check in panel.js accordingly. Adding a test would be nice though, I'll try to come up with one.
Updated•8 years ago
|
status-firefox50:
--- → unaffected
status-firefox51:
--- → unaffected
status-firefox52:
--- → affected
status-firefox53:
--- → affected
Comment 4•8 years ago
|
||
Comment on attachment 8811048 [details]
Bug 1317819 - avoid typeerror when getting debugger frames from webconsole;
Looks good
Attachment #8811048 -
Flags: review?(jlaster) → review+
Comment 5•8 years ago
|
||
Comment on attachment 8811049 [details]
Bug 1317819 - eslint cleanup of /debugger/new/panel.js;
Thanks
Attachment #8811049 -
Flags: review?(jlaster) → review+
Comment 6•8 years ago
|
||
I'd be happy to add a test later when I work on this bug:
https://github.com/devtools-html/debugger.html/issues/717
Assignee | ||
Comment 7•8 years ago
|
||
Thanks for the reviews!
Assignee: nobody → jdescottes
Status: NEW → ASSIGNED
Assignee | ||
Comment 8•8 years ago
|
||
Comment hidden (mozreview-request) |
Assignee | ||
Comment 10•8 years ago
|
||
Comment on attachment 8811049 [details]
Bug 1317819 - eslint cleanup of /debugger/new/panel.js;
updated the commit message, not sure why the r+ was not forwarded to the new patch.
Attachment #8811049 -
Flags: review?(jlaster) → review+
Comment 11•8 years ago
|
||
Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/0f1a12e87f4b
avoid typeerror when getting debugger frames from webconsole;r=jlast
https://hg.mozilla.org/integration/mozilla-inbound/rev/8df90c97d9e8
eslint cleanup of /debugger/new/panel.js;r=jlast
Comment 13•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/0f1a12e87f4b
https://hg.mozilla.org/mozilla-central/rev/8df90c97d9e8
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 53
Comment 14•8 years ago
|
||
Assignee | ||
Comment 15•8 years ago
|
||
Comment on attachment 8811048 [details]
Bug 1317819 - avoid typeerror when getting debugger frames from webconsole;
This has been on mc for a few days, I think we should uplift now.
Approval Request Comment
[Feature/regressing bug #]:1316413
[User impact if declined]: webconsole can not be used after opening the debugger
[Describe test coverage new/current, TreeHerder]: no tests at the moment (being added in https://github.com/devtools-html/debugger.html/pull/1238)
[Risks and why]: simple JavaScript one liner
[String/UUID change made/needed]: N/A
Attachment #8811048 -
Flags: approval-mozilla-aurora?
Comment 16•8 years ago
|
||
I have reproduced this bug on Firefox nightly according to (2016-11-15)
Fixing bug is verified on latest Nightly-- Build ID:(20161121030224), User Agent: Mozilla/5.0 (Windows NT 10.0; rv:53.0) Gecko/20100101 Firefox/53.0
Testes OS-- Windows10 32bit
QA Whiteboard: [bugday-20161123]
Comment 17•8 years ago
|
||
Comment on attachment 8811048 [details]
Bug 1317819 - avoid typeerror when getting debugger frames from webconsole;
fix debugger regression in aurora52
Attachment #8811048 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 18•8 years ago
|
||
bugherder uplift |
Comment 19•8 years ago
|
||
I have reproduced this bug with Nightly 53.0a1 (2016-11-15) (32-bit) on Windows 8.1 (64-bit).
This bug's fix is verified on Aurora 52.0a2 (2017-01-03) (32-bit).
Build ID : 20170103004005
User Agent : Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0
[bugday-20170104]
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•