PerformanceObserver should not throw on empty/unknown list of entryTypes, but silently ignore the error (with optional console warning).
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
People
(Reporter: wisniewskit, Assigned: wisniewskit)
References
Details
(Keywords: dev-doc-complete)
Attachments
(1 file)
Comment 1•8 years ago
|
||
| Assignee | ||
Comment 2•8 years ago
|
||
| Comment hidden (mozreview-request) |
| Assignee | ||
Comment 4•8 years ago
|
||
| Comment hidden (mozreview-request) |
| Assignee | ||
Comment 6•8 years ago
|
||
Comment 7•8 years ago
|
||
| mozreview-review | ||
| Assignee | ||
Comment 8•8 years ago
|
||
| Comment hidden (mozreview-request) |
| Assignee | ||
Comment 10•8 years ago
|
||
Comment 11•8 years ago
|
||
| mozreview-review | ||
Comment 12•8 years ago
|
||
| mozreview-review | ||
Comment 13•8 years ago
|
||
| Assignee | ||
Comment 14•8 years ago
|
||
Comment 15•8 years ago
|
||
| Assignee | ||
Comment 16•8 years ago
|
||
| Assignee | ||
Comment 17•8 years ago
|
||
Comment 18•8 years ago
|
||
| Assignee | ||
Comment 19•8 years ago
|
||
Comment 20•8 years ago
|
||
| Assignee | ||
Comment 21•8 years ago
|
||
Comment 22•8 years ago
|
||
| Assignee | ||
Comment 23•8 years ago
|
||
Updated•8 years ago
|
Comment 24•8 years ago
|
||
Updated•8 years ago
|
| Assignee | ||
Comment 25•8 years ago
|
||
Comment 26•8 years ago
|
||
Comment 27•8 years ago
|
||
| Comment hidden (mozreview-request) |
| Assignee | ||
Comment 29•8 years ago
|
||
Comment 30•8 years ago
|
||
| mozreview-review | ||
Comment 31•8 years ago
|
||
| mozreview-review | ||
| Comment hidden (mozreview-request) |
| Assignee | ||
Comment 33•8 years ago
|
||
| Assignee | ||
Comment 34•8 years ago
|
||
Comment 35•8 years ago
|
||
| mozreview-review | ||
Updated•8 years ago
|
| Comment hidden (mozreview-request) |
| Assignee | ||
Comment 37•8 years ago
|
||
Comment 38•8 years ago
|
||
Comment 39•8 years ago
|
||
| Comment hidden (mozreview-request) |
| Assignee | ||
Comment 41•8 years ago
|
||
Comment 42•8 years ago
|
||
Comment 43•8 years ago
|
||
Comment 44•8 years ago
|
||
Updated•8 years ago
|
| Comment hidden (mozreview-request) |
Comment 47•7 years ago
|
||
Updated•7 years ago
|
Comment 48•7 years ago
|
||
| mozreview-review | ||
Updated•7 years ago
|
| Comment hidden (mozreview-request) |
Comment 50•7 years ago
|
||
Comment 51•7 years ago
|
||
Comment 52•7 years ago
|
||
| bugherder | ||
Updated•7 years ago
|
Comment 54•7 years ago
|
||
Comment 55•7 years ago
|
||
Thanks to the team for your work.
I have FireFox 66 and get red 'TypeError: The expression cannot be converted to return the specified type' messages that are not bound to any JS code line.
Since this error was removed for PerformanceObserver (and I am not running "about:performance", though this may be irrelevant), this probably means that regular MutationObserver causes the error or something else entirely?
Or if the JS line number and code link/referrer are not shown along with the error, does it mean that this is FF's own code's error?
Comment 56•7 years ago
|
||
That's the generic message for TypeError, and TypeError is the most common sort of error various specifications throw.
If you have steps to reproduce (or at least a site URL?) please file a new bug about it and cc me, and I'll take a look.
Comment 57•7 years ago
|
||
Thanks, Boris I will try to catch it again.
In the meantime, if I may ask a question, do you know why it is supposed to be a legitimate behaviour for errors to have "this expression" right in their textual representation and yet fail to point to any expression in any way?
Should not it be in a violation of arguments/properties "contract" in regards to this error? It must have either a pointer to where the expression is placed in code or an expression literal at least.
And if this behaviour is normal, should not an "issue" be filed to change the phrasing of the error?
Comment 58•7 years ago
|
||
That particular string is attached to NS_ERROR_DOM_TYPE_ERR, which shouldn't even exist. See 927610 comment 2. Any time you see it, someone messed up and is throwing a DOMException with name set to "TypeError" instead of a real TypeError. We need to fix that, but I haven't had time to fight with the broken test harness so far to make it happen.
That said, that wouldn't affect whether location information is attached to it or not.
Updated•7 years ago
|
Description
•