1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/test/unit/app
Mark Stacey 12e055a37c
Close window after opening fullscreen (#6966)
* Add background environment type

The `getEnvironmentType` method now checks for the background
environment as well, instead of returning 'notification' for that case.

Instead of adding another regex for the background path, the regexes
for each environment have been replaced with the URL constructor[0].
This is the standard method of parsing URLs, and is available in all
supported browsers.

[0]: https://developer.mozilla.org/en-US/docs/Web/API/URL

* Add note regarding a missing manifest permission

The `url` parameter to `tabs.query(...)` requires the `tabs` permission,
and will be ignored otherwise. We are missing this permission, so that
call does not work.

* Close window after opening full screen

The browser behaviour when opening a new tab differs between Chrome and
Firefox. In the case of a popup, Chrome will close the popup whereas
Firefox will leave it open. In the case of the notification window,
Chrome will move the new tab to the foreground, whereas Firefox will
leave the notification window in the foreground when opening a new tab.

We always want to close the current UI (popup or notification) when
switching to a full-screen view. The only exception to this is when the
switch is triggered from the background, which has no UI.

Closes #6513, #6685
2019-08-08 11:50:32 -03:00
..
controllers Enable indent linting via ESLint (#6936) 2019-07-31 10:17:11 -10:00
account-import-strategies.spec.js fix warning for unit tests 2018-07-02 20:12:50 -04:00
buy-eth-url.spec.js Replaces the coinbase link in the deposit modal with one for wyre (#6302) 2019-03-22 12:32:07 -02:30
cleanErrorStack.spec.js Some Ui tests 2018-09-24 11:28:04 -05:00
ComposableObservableStore.js Moved loose some loose test files to sub folders 2018-05-21 05:59:26 -07:00
edge-encryptor-test.js Enable indent linting via ESLint (#6936) 2019-07-31 10:17:11 -10:00
message-manager-test.js Moved loose some loose test files to sub folders 2018-05-21 05:59:26 -07:00
nodeify-test.js lint fix 2019-03-29 12:51:54 +08:00
pending-balance-test.js fix warning for unit tests 2018-07-02 20:12:50 -04:00
personal-message-manager-test.js Moved loose some loose test files to sub folders 2018-05-21 05:59:26 -07:00
seed-phrase-verifier-test.js fix warning for unit tests 2018-07-02 20:12:50 -04:00
util-test.js Close window after opening fullscreen (#6966) 2019-08-08 11:50:32 -03:00