Closed
Bug 1101704
Opened 10 years ago
Closed 10 years ago
Use non-iterable object in browser_console_addonsdk_loader_exception.js.
Categories
(DevTools :: Console, defect)
DevTools
Console
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 37
People
(Reporter: arai, Assigned: arai)
References
Details
Attachments
(1 file)
http://hg.mozilla.org/mozilla-central/file/bc2c36dda0a9/browser/devtools/webconsole/test/browser_console_addonsdk_loader_exception.js#l31
> toolbox._toolPanels = null;
> ...
> executeSoon(() => {
> executeSoon(fixToolbox);
> expectUncaughtException();
> toolbox.getToolPanels();
> });
>
> let [result] = yield waitForMessages({
> webconsole: browserconsole,
> messages: [{
> text: "TypeError: can't convert null to object",
> category: CATEGORY_JS,
> severity: SEVERITY_ERROR,
> }],
> });
http://hg.mozilla.org/mozilla-central/file/bc2c36dda0a9/browser/devtools/framework/toolbox.js#l166
> getToolPanels: function() {
> return new Map(this._toolPanels);
> },
When bug 1092538 is fixed, the test will fail because null is a valid argument for Map constructor,
and the exception is not thrown.
Assignee | ||
Comment 1•10 years ago
|
||
Used non-iterable object {} instead of null.
Green on try run: https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=cff5e5f8438e
Attachment #8525540 -
Flags: review?(mihai.sucan)
Updated•10 years ago
|
Assignee: nobody → arai_a
Status: NEW → ASSIGNED
Comment 2•10 years ago
|
||
Comment on attachment 8525540 [details] [diff] [review]
1-Bug_1101704___Use_non_iterable_object_in_browser_console_addonsdk_loader_exception_js_.patch
Review of attachment 8525540 [details] [diff] [review]:
-----------------------------------------------------------------
Thank you for your patch. Apologies for the delay, I've been away for a few months.
Attachment #8525540 -
Flags: review?(mihai.sucan) → review+
Updated•10 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 3•10 years ago
|
||
Keywords: checkin-needed
Comment 4•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 37
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•