mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
9cf2c0002f
The function, which is only used from previewers.js to retrieve the first then interesting properties of an object, has a special case for (local|session)Storage so we loop through their entries and not their properties. We're using storage#key to achieve this, but the problem is that the function is quite slow, and if the storage object has a lot of entries, it can end up freezing Firefox. In order to avoid such freeze, for storage object, we're not returning an array but an iterable object, which most of the time will only be called 10 times and prevent any perf issue. Differential Revision: https://phabricator.services.mozilla.com/D131913 |
||
---|---|---|
.. | ||
client | ||
docs | ||
perfdocs | ||
platform | ||
server | ||
shared | ||
startup | ||
.eslintrc.js | ||
.eslintrc.xpcshell.js | ||
CODE_OF_CONDUCT.md | ||
moz.build | ||
templates.mozbuild | ||
tsconfig.json |