Closed Bug 1190677 Opened 9 years ago Closed 8 years ago
Need better type checking of arguments for open extension API
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.
Priority: -- → P2
Here's a sample JSON file: https://code.google.com/p/chromium/codesearch#chromium/src/chrome/common/extensions/api/windows.json&sq=package:chromium&type=cs&l=121
8 years ago
Component: Extension Compatibility → WebExtensions
Product: Firefox → Toolkit
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.