Improve error message on missing method implementation
Categories
(Remote Protocol :: Agent, enhancement, P1)
Tracking
(Not tracked)
People
(Reporter: ato, Assigned: ato)
References
Details
Attachments
(1 file)
We fail with this rather omnious message when we haven’t implemented a CDP method:
Error: Protocol error (Target.createBrowserContext): TypeError: inst[command] is not a function:
We should improve that so debugging the code isn’t necessary.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
We return with this rather omnious message when we are missing the
implementation of a CDP method:
Error: Protocol error (Target.createBrowserContext): TypeError: inst[command] is not a function:
This patch improves the error message so that debugging is not
necessary to find out which domain or command is missing.
Ideally Session.jsm and ContentProcessSession.jsm would share the
same execute() function (there's really not reason they don't),
but that involves more work.
Pushed by atolfsen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f3d44dbce7e3 remote: improve error message on missing method; r=remote-protocol-reviewers,ochameau
Comment 3•5 years ago
|
||
Backed out changeset f3d44dbce7e3 (Bug 1553317) for bc failures at browser_parsable_css.js.
Backout: https://hg.mozilla.org/integration/autoland/rev/df412702ed3112bb5d6c70ca728f97a224c89549
Push that started the failures: https://treeherder.mozilla.org/#/jobs?repo=autoland&resultStatus=pending%2Crunning%2Csuccess%2Ctestfailed%2Cbusted%2Cexception&revision=f3d44dbce7e3d1b529ce37b21a4d7471a918edd4&selectedJob=248549410
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=248549410&repo=autoland&lineNumber=2078
Assignee | ||
Comment 4•5 years ago
|
||
Pretty sure this is an intermittent. Retriggering to find out.
Pushed by btara@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/34cc442a91cb remote: improve error message on missing method; r=remote-protocol-reviewers,ochameau CLOSED TREE
Comment 6•5 years ago
|
||
:ato we've re-landed your patch. Sorry.
Updated•5 years ago
|
Comment 7•5 years ago
|
||
bugherder |
Assignee | ||
Comment 8•5 years ago
|
||
Oh I didn’t expect the follow up service of re-landing it for me here, but thanks!
Description
•