Closed
Bug 988506
Opened 11 years ago
Closed 11 years ago
toolbox.js - focusConsoleInput() - TypeError: hud.jsterm is null
Categories
(DevTools :: Console, defect)
DevTools
Console
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 31
People
(Reporter: msucan, Assigned: bgrins)
References
Details
Attachments
(1 file, 1 obsolete file)
1.07 KB,
patch
|
bgrins
:
review+
|
Details | Diff | Splinter Review |
When running webconsole tests we can see the following exception:
2:26.07 TEST-INFO | chrome://mochitests/content/browser/browser/devtools/webconsole/test/browser_webconsole_view_source.js | Console message: [JavaScript Error: "A promise chain failed to handle a rejection.
2:26.07
2:26.07 Date: Wed Mar 26 2014 14:13:07 GMT+0200 (EET)
2:26.07 Full Message: TypeError: hud.jsterm is null
2:26.07 Full Stack: Toolbox.prototype.focusConsoleInput@resource://gre/modules/commonjs/toolkit/loader.js -> resource:///modules/devtools/framework/toolbox.js:881:5
2:26.07 Toolbox.prototype.toggleSplitConsole/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource:///modules/devtools/framework/toolbox.js:899:11
2:26.07 Handler.prototype.process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:707:11
2:26.07 this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:586:7
2:26.07 " {file: "resource://gre/modules/commonjs/toolkit/loader.js -> resource:///modules/devtools/framework/toolbox.js" line: 881 column: 0 source: "881"}]
Assignee | ||
Comment 1•11 years ago
|
||
This appears to have been caused by Bug 612253
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → bgrinstead
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•11 years ago
|
||
I actually don't see the exception locally when running the test (even without patch applied), so I've pushed this patch to try to make sure it fixes it there: https://tbpl.mozilla.org/?tree=Try&rev=85cb267e88b4
Attachment #8397356 -
Flags: review?(mihai.sucan)
Reporter | ||
Comment 3•11 years ago
|
||
Comment on attachment 8397356 [details] [diff] [review]
hud-jsterm.patch
Review of attachment 8397356 [details] [diff] [review]:
-----------------------------------------------------------------
LGTM. This is fixing the problem locally. No more TypeError hud.jsterm is null.
Thanks!
::: browser/devtools/framework/toolbox.js
@@ +877,5 @@
> * Focus split console's input line
> */
> focusConsoleInput: function() {
> let hud = this.getPanel("webconsole").hud;
> + if (hud.jsterm) {
maybe hud && hud.jsterm ?
Attachment #8397356 -
Flags: review?(mihai.sucan) → review+
Assignee | ||
Comment 4•11 years ago
|
||
Added extra check for hud in conditional
Attachment #8397356 -
Attachment is obsolete: true
Attachment #8397801 -
Flags: review+
Assignee | ||
Comment 5•11 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/34babb974209
https://tbpl.mozilla.org/?tree=Fx-Team&rev=34babb974209
Whiteboard: [fixed-in-fx-team]
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 31
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•