Lars T Hansen fe7313db03 Bug 1692842 - Stopgap solution for IsSimdPrivilegedContext. r=rhunt
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
2021-02-17 15:32:47 +00:00
..