Closed Bug 1190677 Opened 9 years ago Closed 9 years ago

Need better type checking of arguments for open extension API

Categories

(WebExtensions :: Untriaged, defect, P2)

34 Branch
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1208257

People

(Reporter: billm, Unassigned)

References

(Blocks 1 open bug)

Details

Right now arguments aren't checked at all. If the wrong type is passed in, weird things will probably happen. We should use the .json files that Google has for the API interfaces to check argument types. This would also simplify the handling of optional arguments.
Link to how Google does this.
Flags: needinfo?(wmccloskey)
Priority: -- → P2
Component: Extension Compatibility → WebExtensions
Product: Firefox → Toolkit
Blocks: 1208257
No longer blocks: 1208257
Depends on: 1208257
Blocks: webext
Flags: blocking-webextensions+
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.