biancadanforth / tracking-protection-shield-study

A Shield study to determine the optimal messaging, if any, for Tracking Protection in Firefox.
0 stars 3 forks source link

Simplify data passed to frame script. Fixes #79. #83

Closed biancadanforth closed 6 years ago

biancadanforth commented 6 years ago

Instead of passing the entire state object of Feature.jsm (which included a couple Map objects), I now just pass the exact quantities (integers or strings) I need. These string:string or string:int value pairs are JSONable, which eliminate the error message that was being observed.

It should also give us a performance boost! Since we're passing a much smaller amount of data between frame script and JSM.