1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/app/scripts/lib
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
..
ens-ipfs Resolve onion addresses (#6869) 2019-07-23 16:59:20 -02:30
migrator Add a few missing docblocks to background files 2018-04-18 18:00:22 -02:30
account-tracker.js Enable indent linting via ESLint (#6936) 2019-07-31 10:17:11 -10:00
auto-reload.js Stop reloading dapps on network change allowing dapps to decide if it should refresh or not (#6330) 2019-03-21 12:42:23 -07:00
backend-metametrics.js Enable indent linting via ESLint (#6936) 2019-07-31 10:17:11 -10:00
buy-eth-url.js feature: add Goerli support (#6459) 2019-04-17 15:04:49 -02:30
cleanErrorStack.js eslint --fix . 2018-07-02 18:49:33 -04:00
ComposableObservableStore.js GABA: Integrate AddressBookController (#5847) 2019-03-11 18:40:41 -10:00
createDnodeRemoteGetter.js Refactor ProviderApprovalController to use rpc and publicConfigStore (#6410) 2019-05-03 13:32:05 -04:00
createLoggerMiddleware.js Add a few missing docblocks to background files 2018-04-18 18:00:22 -02:30
createOriginMiddleware.js Add a few missing docblocks to background files 2018-04-18 18:00:22 -02:30
createStreamSink.js Declare variables before use (#6806) 2019-07-05 14:01:34 -03:00
diagnostics-reporter.js eslint --fix . 2018-07-02 18:49:33 -04:00
enums.js Close window after opening fullscreen (#6966) 2019-08-08 11:50:32 -03:00
extractEthjsErrorMessage.js eslint --fix . 2018-07-02 18:49:33 -04:00
get-first-preferred-lang-code.js Fix locale codes contains underscore will never be preferred (#6116) 2019-02-08 16:06:37 -03:30
getObjStructure.js eslint --fix . 2018-07-02 18:49:33 -04:00
hex-to-bn.js Add a few missing docblocks to background files 2018-04-18 18:00:22 -02:30
local-store.js eslint --fix . 2018-07-02 18:49:33 -04:00
message-manager.js Enable indent linting via ESLint (#6936) 2019-07-31 10:17:11 -10:00
nodeify.js lib - nodeify - correctly wrap synchronous functions 2019-03-29 12:37:40 +08:00
notification-manager.js Fixes popups not showing when screen size is odd (#6312) 2019-03-17 18:30:51 -02:30
pending-balance-calculator.js Even more documentation for various controllers and libs. 2018-04-19 13:08:56 -02:30
personal-message-manager.js Enable indent linting via ESLint (#6936) 2019-07-31 10:17:11 -10:00
random-id.js Maintain linting. 2016-11-18 16:27:26 -08:00
reportFailedTxToSentry.js sentry - replace raven-js with sentry/browser 2018-10-20 02:22:50 -04:00
seed-phrase-verifier.js Merge branch 'master' into dm-docs-2 2018-04-20 13:23:17 -02:30
setupFetchDebugging.js ESLint fixes (#5775) 2018-11-16 14:54:55 -10:00
setupMetamaskMeshMetrics.js eslint --fix . 2018-07-02 18:49:33 -04:00
setupSentry.js ESLint fixes (#5775) 2018-11-16 14:54:55 -10:00
stream-utils.js Add a few missing docblocks to background files 2018-04-18 18:00:22 -02:30
typed-message-manager.js Update new method namespace from v2 to v3 2018-09-13 15:42:27 -04:00
util.js Close window after opening fullscreen (#6966) 2019-08-08 11:50:32 -03:00