1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +01:00
metamask-extension/app
Erik Marks 1175b4bfa7
Make all named intrinsics non-modifiable (#11953)
This PR makes ~all named intrinsics in all of our JavaScript processes non-modifiable. A named intrinsic is any property specified by the ECMAScript specification that exists on `globalThis` when the JavaScript process starts. We say that a property is non-modifiable if it is non-configurable and non-writable. We make exceptions for properties that meet any of the following criteria:

1. Properties that are non-configurable by the time `lockdown-run.js` is executed are not modified, because they can't be.
2. Properties that have accessor properties (`get` or `set`) are made non-configurable, but their writability cannot be modified, and is therefore left unchanged. It's unclear how many of the named intrinsics this applies to, if any, but it's good defensive programming, regardless.
2021-08-30 14:30:48 -07:00
..
_locales Updating message about disabled Mobile Sync (#11935) 2021-08-25 15:21:28 -07:00
fonts Add euclid fontface (#9018) 2020-07-27 17:15:44 -05:00
images Adding subtitles for additional languages (SRP Video) (#11849) 2021-08-18 09:09:11 -07:00
manifest Build - refactor for bundle factoring and swappable runtime (#11080) 2021-07-15 10:59:34 -07:00
scripts Make all named intrinsics non-modifiable (#11953) 2021-08-30 14:30:48 -07:00
vendor/trezor Update postMessage structure for TrezorConnect 8 (#10192) 2021-01-21 11:12:54 -06:00
background.html Build - refactor for bundle factoring and swappable runtime (#11080) 2021-07-15 10:59:34 -07:00
home.html Build - refactor for bundle factoring and swappable runtime (#11080) 2021-07-15 10:59:34 -07:00
loading.html refactor & change html pages 2019-05-04 18:57:19 +02:00
notification.html Build - refactor for bundle factoring and swappable runtime (#11080) 2021-07-15 10:59:34 -07:00
phishing.html Build - refactor for bundle factoring and swappable runtime (#11080) 2021-07-15 10:59:34 -07:00
popup.html Build - refactor for bundle factoring and swappable runtime (#11080) 2021-07-15 10:59:34 -07:00
trezor-usb-permissions.html trezor v5 working on firefox 2018-08-05 02:43:02 -04:00