1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 02:10:12 +01:00
metamask-extension/app
Mark Stacey 94318d8b28 Replace undefined selectedAddress with null (#7161)
* Replace `undefined` selectedAddress with `null`

The `runtime.Port.postMessage` API will drop keys with a value of
`undefined` on Chrome, but not on Firefox. This was a problem for the
`publicConfig` stream, which passed the key `selectedAddress` with the
value of `undefined` to communicate to dapps that the user had logged
out.

Instead a `null` is now passed for `selectedAddress` upon logout, which
is correctly sent by the `runtime.Port.postMessage` API on both Chrome
and Firefox.

closes #7101
closes #7109

* Update `metamask-inpage-provider` to v3.0.0

The v3.0.0 update includes a change to the `accountsChanged` event. The
event will now emit an empty array instead of an array with `undefined`
or `null`.

The previous behavior was to emit `[undefined]`. The previous commit
would have changed that to `[null]` anyway, so we figured if we're
going to make a public-facing change to the event anyway we should
change it to be correct. `[undefined]` was never intended, and it
technically violates EIP-1193, which states that the `accountsChanged`
event should emit an array of strings.
2019-09-13 11:53:08 -03:00
..
_locales Remove duplicate keys in ru locale 2019-09-05 14:24:34 -03:00
fonts
images Revert "[ImgBot] Optimize images" (#7027) 2019-08-16 12:32:02 -02:30
scripts Replace undefined selectedAddress with null (#7161) 2019-09-13 11:53:08 -03:00
vendor/trezor Close window after opening fullscreen (#6966) 2019-08-08 11:50:32 -03:00
home.html Right-to-left CSS (using module for conversion) (#7072) 2019-09-03 14:47:54 -03:00
loading.html
manifest.json Set minimum Firefox version to v56.2 to support Waterfox (#7156) 2019-09-13 11:45:33 -03:00
notification.html Right-to-left CSS (using module for conversion) (#7072) 2019-09-03 14:47:54 -03:00
phishing.html
popup.html Right-to-left CSS (using module for conversion) (#7072) 2019-09-03 14:47:54 -03:00
trezor-usb-permissions.html
unsupport.html