Closed Bug 1167303 Opened 9 years ago Closed 5 years ago

debugger's smart search shouldn't try parsing non-JS files as JS

Categories

(DevTools :: Debugger, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: fitzgen, Unassigned)

References

Details

It results in error spam in the console like in bug 1163540 comment 6:

> chrome://browser/content/tabbrowser.xml threw an exception: SyntaxError:
> expected expression, got '<'
> Stack: Parser.prototype.get@resource:///modules/devtools/Parser.jsm:65:21
> FilterView.prototype._doSearch@chrome://browser/content/devtools/debugger/
> filter-view.js:442:20
> FilterView.prototype._doTokenSearch@chrome://browser/content/devtools/
> debugger/filter-view.js:483:5
> FilterView.prototype._addCommands/<.tokenSearchCommand@chrome://browser/
> content/devtools/debugger/filter-view.js:113:33
> Line: 65, column: 20

We should avoid attempting to parse source mapped sources that aren't JS and our stupid fake html sources.
See Also: → 1167415
Product: Firefox → DevTools

this relates to the old debugger

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.