Closed Bug 985425 Opened 11 years ago Closed 11 years ago

browser_webconsole_bug_601667_filter_buttons.js | A promise chain failed to handle a rejection - TypeError: this.webConsoleClient is null

Categories

(DevTools :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 31

People

(Reporter: Yoric, Assigned: msucan)

References

Details

Attachments

(1 file)

Once we land bug 976205, the following errors will cause oranges. 04:57:22 WARNING - TEST-UNEXPECTED-FAIL | chrome://mochitests/content/browser/browser/devtools/webconsole/test/browser_webconsole_bug_601667_filter_buttons.js | A promise chain failed to handle a rejection at resource://gre/modules/commonjs/toolkit/loader.js -> resource:///modules/devtools/webconsole/webconsole.js:411 - TypeError: this.webConsoleClient is null 04:57:22 INFO - Stack trace: 04:57:22 INFO - WCF_setSaveRequestAndResponseBodies@resource://gre/modules/commonjs/toolkit/loader.js -> resource:///modules/devtools/webconsole/webconsole.js:411:5 04:57:22 INFO - WCF__initUI/reverseSaveBodiesPref/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource:///modules/devtools/webconsole/webconsole.js:533:46 04:57:22 INFO - Handler.prototype.process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:809:11 04:57:22 INFO - this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:688:7 For testing, you may wish to import the patch of bug 976205.
Attached patch bug985425-1.diffSplinter Review
Changes: - the filter buttons test was clicking the 'log network request and response bodies' menu item for no reason. On test end the function responsible for that menuitem command was throwing, due to early disconnect. - changed the menuitem command handler to not fail in other similar situations. - the highlighter_console_helper test was failing locally, depending on window size. h1.scrollIntoView() fixed the problem. Thanks!
Assignee: nobody → mihai.sucan
Status: NEW → ASSIGNED
Attachment #8397378 - Flags: review?(bbenvie)
Comment on attachment 8397378 [details] [diff] [review] bug985425-1.diff Review of attachment 8397378 [details] [diff] [review]: ----------------------------------------------------------------- LGTM! Ship it!
Attachment #8397378 - Flags: review?(bbenvie) → review+
Keywords: checkin-needed
Flags: in-testsuite+
Keywords: checkin-needed
Whiteboard: [fixed-in-fx-team]
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 31
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: