Click the above "Leak me" button to load 10 frames (with matching content script).
Visit about:memory
Click on "Measure" and search for "leaky, moz" to find all sandboxes.
If storage.sync.get is called, then 20 sandboxes are expected.
Otherwise, only 10 sandboxes are expected.
Click on the "Clean me" button above to remove all frames.
Return to about:memory, click on "Minimize memory usage" and "Measure".
Search for "leaky, moz" to find all sandboxes. There should not be any. However:
If "No leak" test was selected, then you do indeed not see any sandboxes.
If "jsonSandbox leak" was selected, then 10 "anonymous sandbox" (jsonSandbox) are leaked.
If "jsonSandbox and content script sandbox is leaked" is selected, then all 20 sandboxes are leaked.
(this only happens if the add-on has a temporary add-on ID, remove the "applications.gecko.id" section from manifest.json).