Need better type checking of arguments for open extension API

RESOLVED DUPLICATE of bug 1208257

Status

P2
normal
RESOLVED DUPLICATE of bug 1208257
3 years ago
5 months ago

People

(Reporter: billm, Unassigned)

Tracking

(Blocks: 1 bug)

34 Branch
Dependency tree / graph
Bug Flags:
blocking-webextensions +

Firefox Tracking Flags

(Not tracked)

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

Updated

3 years ago
Blocks: 1208257

Updated

3 years ago
No longer blocks: 1208257
Depends on: 1208257

Updated

3 years ago
Blocks: 1214433

Updated

3 years ago
Flags: blocking-webextensions+

Updated

3 years ago
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 1208257

Updated

5 months ago
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.