mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-04-02 04:22:56 +00:00

This is the solution discussed in bug 1686652 - we use isSystemOrAddonPrincipal to gate the interpretation of the nonstandard wasm compilation options bag in the absence of a true value for javascript.options.wasm_simd_wormhole (since that flag will not be available in late beta or later builds). This is slightly more lenient than desirable as discussed on the present bug, and if I can find a stricter check that works I will followup with that. In the mean time, this check should be a reasonable and safe stopgap. Differential Revision: https://phabricator.services.mozilla.com/D105456