Closed Bug 988506 Opened 11 years ago Closed 11 years ago

toolbox.js - focusConsoleInput() - TypeError: hud.jsterm is null

Categories

(DevTools :: Console, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 31

People

(Reporter: msucan, Assigned: bgrins)

References

Details

Attachments

(1 file, 1 obsolete file)

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"}]
This appears to have been caused by Bug 612253
Blocks: 612253
OS: Linux → All
Hardware: x86_64 → All
Assignee: nobody → bgrinstead
Status: NEW → ASSIGNED
Attached patch hud-jsterm.patch (obsolete) — Splinter Review
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)
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+
Attached patch hud-jsterm.patchSplinter Review
Added extra check for hud in conditional
Attachment #8397356 - Attachment is obsolete: true
Attachment #8397801 - Flags: review+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 31
QA Whiteboard: [qa-]
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: