Closed Bug 1388368 Opened 7 years ago Closed 7 years ago

The Console panel is broken in Launchpad

Categories

(DevTools :: Console, defect)

defect
Not set
normal

Tracking

(firefox57 fixed)

RESOLVED FIXED
Firefox 57
Tracking Status
firefox57 --- fixed

People

(Reporter: Honza, Assigned: Honza)

Details

Attachments

(1 file)

It isn't possible to load the Console panel on top of the Launchpad. And there are following error messages when `yarn start` is executed.

We might need some new shims for the Launchpad.

Honza

---

ERROR in ./local-dev/index.js
Module not found: Error: Cannot resolve 'file' or 'directory' ../../themes/new-w
ebconsole.css in C:\src\mozilla.org\mozilla-central\devtools\client\webconsole\l
ocal-dev
 @ ./local-dev/index.js 24:0-42

ERROR in ./new-webconsole.js
Module not found: Error: Cannot resolve module 'devtools/client/shared/key-short
cuts' in C:\src\mozilla.org\mozilla-central\devtools\client\webconsole
 @ ./new-webconsole.js 17:21-68

ERROR in ./new-webconsole.js
Module not found: Error: Cannot resolve module 'devtools/shared/system' in C:\sr
c\mozilla.org\mozilla-central\devtools\client\webconsole
 @ ./new-webconsole.js 19:15-48

ERROR in ./new-webconsole.js
Module not found: Error: Cannot resolve module 'devtools/client/shared/zoom-keys
' in C:\src\mozilla.org\mozilla-central\devtools\client\webconsole
 @ ./new-webconsole.js 20:21-64
Assignee: nobody → odvarko
Status: NEW → ASSIGNED
@Nicolas: can you please check out the attached patch?
I am seeing some problems with Launchpad CSS

Honza
Flags: needinfo?(nchevobbe)
I do see the CSS issue in the launchpad as well.
It seems to be missing the css variables file
Flags: needinfo?(nchevobbe)
Fixed.

Not sure how much work it is to load webconsole.xhtml directly, but it could be a follow up perhaps.

Honza
Comment on attachment 8895311 [details]
Bug 1388368 - Fix the Console panel in Launchpad;

https://reviewboard.mozilla.org/r/166514/#review171686

Looks good to me, one small comment but this does not prevent the launchpad from working.
Thanks for taking care of this Honza

::: devtools/client/webconsole/local-dev/jsterm-stub.js:175
(Diff revision 3)
> +  focus() {
> +  },

This is fine now, but I think this could simply be `this.inputNode.focus()` doesn't it ?
Attachment #8895311 - Flags: review?(nchevobbe) → review+
(In reply to Nicolas Chevobbe [:nchevobbe] from comment #8)
> This is fine now, but I think this could simply be `this.inputNode.focus()`
Good point, done.

Honza
I've yet changed the way how KeyShortcuts object is exported
Related PR: https://github.com/devtools-html/devtools-core/pull/577

Honza
Pushed by jodvarko@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d2e76a2d8794
Fix the Console panel in Launchpad; r=nchevobbe
Pushed by jodvarko@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6a4bcb6c0d16
Fix the Console panel in Launchpad; r=nchevobbe
https://hg.mozilla.org/mozilla-central/rev/6a4bcb6c0d16
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 57
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: