Open Bug 1456526 Opened 2 years ago Updated 2 years ago

Add Error Checking to Protocol.js

Categories

(DevTools :: General, enhancement, P2)

enhancement

Tracking

(Not tracked)

People

(Reporter: yulia, Assigned: yulia)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Currently we do not have very clear errors regarding protocol.js and types in the protocol.js specs. At the moment it is a bit like working blind. Some cases that have been found:

request: Arg(0, "json") is invalid

request: { text: (0, "array:string") will take a simple string and turn it into an array

there are no type checks for primitives

tests fail silently. so far tests that fail silently include browser_addons_debug_webextension_popup and browser_addons_debug_console_context_menu

and others, cases will be added as they are found
Assignee: nobody → ystartsev
Product: Developer Documentation → Firefox
Severity: normal → enhancement
Priority: -- → P2
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.