WebExtensions: Use json-glib instead of jsc for API handling in src/webextension
This is a broad TODO issue just stating this should be done and can be slowly done piecemeal.
JSCValue
is a terrible API to deal with JSON. Every API returns an undefined
value instead of NULL
, it happily coerces types you don't want, it does nothing to help deal with arrays or objects, and they all constantly allocate memory which is annoying and wasteful.
Current status:
-
menus -
alarms -
pageAction -
notifications -
tabs -
windows -
runtime -
cookies -
storage
Edited by Patrick Griffis