1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02:00
Commit Graph

15533 Commits

Author SHA1 Message Date
seaona
05bc2fdde7
Update CHANGELOG.md entry
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2022-11-16 17:18:46 +01:00
seaona
636eddd06e yarn dedupe + policies + changelog 2022-11-16 16:58:46 +01:00
Daniel
a9085a8e31
Add mocks for E2E tests (#16527)
* Mock token import

* Add mocks, improve stability

* Update LavaMoat policies

The policies became outdated recently due to undetected conflicts
between PRs.

* Use veryLargeDelayMs, refactoring

Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2022-11-16 12:27:47 -03:30
Adnan Sahovic
04eee2b8cb
Modified chain_id value(MetaMetrics), in the Custom Network Added event (#16426) 2022-11-16 09:46:42 -06:00
seaona
66c0a60e03 policies + yarn 2022-11-16 16:42:41 +01:00
David Walsh
54429f531e
Remove unnecessary await (#16482) 2022-11-16 08:52:35 -06:00
Brad Decker
0688c3d9ad
persist user traits for comparison (#16506) 2022-11-16 08:17:55 -06:00
Mark Stacey
2bc4408f0d Update SmartTransactionsController to v3 (#16511)
This update drops support for Node.js v12, and it includes a bug fix
for a deadlock encountered when using swaps on unsupported testnets.

Fixes #16479
2022-11-16 15:14:37 +01:00
Dan J Miller
f754d81db5 Configure smart transactions controller to support goerli (#16500) 2022-11-16 15:05:43 +01:00
Dan J Miller
42b357456f
Configure smart transactions controller to support goerli (#16500) 2022-11-16 10:32:57 -03:30
Mark Stacey
61b3d25ab3
Update SmartTransactionsController to v3 (#16511)
This update drops support for Node.js v12, and it includes a bug fix
for a deadlock encountered when using swaps on unsupported testnets.

Fixes #16479
2022-11-16 08:55:53 -03:30
Garrett Bear
d4bf8adaf8
button secondary housekeeping (#16495)
* button secondary housekeeping

* add snapshot

* add export constants
2022-11-15 12:48:24 -08:00
Mark Stacey
821cf78383 Update changelog 2022-11-15 15:52:46 -03:30
Adnan Sahovic
f9ed4a560b
Added "What's New" Notification for Improved token allowance experience (#16465) 2022-11-15 13:17:28 -06:00
MetaMask Bot
1b602d8141 Version v10.22.2 2022-11-15 19:12:50 +00:00
Mark Stacey
4f66dc948f
Update @metamask/controllers to v33 (#16493)
The controllers package has been updated to v33. The only breaking
change in this release was to rename the term "collectible" to "NFT"
wherever it appeared in the API.

Changes in this PR have been kept minimal; additional renaming can be
done in separate PRs. This PR only updates the controller names,
controller state, controller methods, and any direct references to
these things. NFTs are still called "collectibles" in most places.
2022-11-15 15:19:42 -03:30
Ariella Vu
b898115bad
Jest: Add browser.runtime (webextension-polyfill) utils tests (#16483)
* jest: add browser-runtime.utils tests

* browser-runtime.utils: rm checkForLastErrorAndWarn
- will be removing use in https://github.com/MetaMask/metamask-extension/pull/16488
2022-11-16 01:32:31 +07:00
George Marshall
be5d70623e
Adding some propType fixes to TextFieldBase (#16508)
* Adding some propType fixes

* lint fixes
2022-11-15 10:06:59 -08:00
Mark Stacey
ace7b0cda9 Revert "Revert "Merge pull request #16353 from MetaMask/Version-v10.22.0""
This reverts commit d91ce9c4b5.
2022-11-15 14:22:08 -03:30
Mark Stacey
205d60f3bd Revert "Ignore advisary related to 3Box"
This reverts commit 3da175cf0c.
2022-11-15 14:21:17 -03:30
Mark Stacey
6035bbf562 Revert "Fix e2e test"
This reverts commit 69ccb37cb9.
2022-11-15 14:21:13 -03:30
Mark Stacey
ffd1e58c9b
Merge pull request #16504 from MetaMask/Version-v10.22.1
Version v10.22.1 RC
2022-11-15 14:20:12 -03:30
George Marshall
6907c4a565
Adding TextFieldSearch component (#16296)
* Adding TextFieldSearch component

* Updating docs and stories

* Moving controlled test into testing utils

* Fixing spelling in prop types af => of
2022-11-15 08:49:02 -08:00
Mark Stacey
69ccb37cb9 Fix e2e test
The new e2e test added for the bug fix being released here has been
updated to use the old e2e test fixtures, rather than the fixture-
builder. The fixture builder is not available on this branch yet.
2022-11-15 13:05:25 -03:30
Mark Stacey
3da175cf0c Ignore advisary related to 3Box
3Box was removed in v10.22.0, so this advisory will be obsolete in the
subsequent release, which is being prepared already.
2022-11-15 12:30:56 -03:30
Mark Stacey
097c8a22a0 Update changelog 2022-11-15 12:29:51 -03:30
Dan J Miller
6473b7d0ce Prevent user from editing a contract interaction created by a dapp (#16498)
* Prevent user from editing a contract interaction created by a dapp

* Code cleanup

* Fix e2e test selector

* Fix e2e test

* Fix e2e test

* Update snapshot
2022-11-15 12:28:59 -03:30
Dan J Miller
0a5c46b156
Prevent user from editing a contract interaction created by a dapp (#16498)
* Prevent user from editing a contract interaction created by a dapp

* Code cleanup

* Fix e2e test selector

* Fix e2e test

* Fix e2e test

* Update snapshot
2022-11-15 12:28:39 -03:30
Mark Stacey
12d0fc47a5 Restore v10.22.0 changelog 2022-11-15 12:11:02 -03:30
MetaMask Bot
6c942dbeae Version v10.22.1 2022-11-15 15:06:13 +00:00
Mark Stacey
d91ce9c4b5 Revert "Merge pull request #16353 from MetaMask/Version-v10.22.0"
This reverts commit 308033edbf, reversing
changes made to b8d71d6d1d.
2022-11-15 11:30:02 -03:30
Brad Decker
c9527e745f
upgrade gulp-autoprefixer (#16439) 2022-11-15 08:40:56 -06:00
Garrett Bear
dcf79b0c99
Feat/16185/button primary housekeeping (#16457)
* ButtonPrimary housekeeping

* use sizes

* update test and danger type
2022-11-14 13:41:03 -08:00
Nidhi Kumari
780728daa8
added 50% border radius support to the Box component (#16486)
* added 50% border radius support to the Box component

* added height and width

* fixed lint issue
2022-11-14 13:40:45 -08:00
Andy Pan
4937bb465a
[i18n:zh_tw] Sync and update translation for zh_TW (#11212)
Co-authored-by: Brad Decker <bhdecker84@gmail.com>
2022-11-14 15:08:41 -06:00
Adnan Sahovic
bf1db006fd
Added a 'Verify contract details' link to SetApprovalForAll confirmation screens (#15756) 2022-11-14 13:28:27 -06:00
Ariella Vu
a87c1750b0
MV3: Update service worker restart logic and keep-alive logic for dapp support (#16075)
* dapp: add debug statements

* dapp: add retry logic [debug]

* dapp: keep SW alive on rpc request

* Revert "dapp: add debug statements"

This reverts commit ea21786f7f66c712eea02405cd68fe925d227ffa.

* dapp: try to set up ext streams asap on reset

* dapp: apply keep alive logic to phishingPageStream

* dapp:put keep-alive logic behind isManifestV3 flag

* Re-activate streams after a period of service worker in-activity

* dapp: rm extra function

* dapp: update phishing onDisconnect

* dapp: fix eslint missing global chrome

* add EXTENSION_MESSAGES const

* use EXTENSION_MESSAGES more generic comment

* update comment

* dapp: clean timeout and interval

* Fix DAPP action replay

* execute DAPP action replay for only MV3

* fix

* fix

* fix

* comment out DAPP action replay code

* fix

* fix

* fix

* scripts/background: use browser polyfill

* Revert "scripts/background: use browser polyfill"

This reverts commit 2ab6234d11b3b11e10dd993d454eeaad63bfc886.

* scripts/background: use browser polyfill

* script/background: check lastError

* dapp: use EXTENSION_MESSAGES

* scripts/background: send ready msg to all tabs

* dapp: update onMessage handler comment and name

* dapp: return values onMessage listener
see: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/runtime/onMessage#addlistener_syntax

* dapp: mv onMessage listener

* dapp: add onMessage setupPhishingExtStreams

* dapp: rn reset -> destroy streams

* dapp: rn reset -> destroy for phishing streams

* dapp: clean comment

* dapp: rm unused comments
planning to be readded in follow-up PR: #16250

* dapp: onMessage return Promise|undefined

* dapp:clean: add missing undefined return type

* dapp: use new checkForErrorAndLog for Chrome API
handy stackoverflow: https://stackoverflow.com/a/28432087/4053142

* dapp:fix: return tabs.query result

* dapp:eslint: return undefined
fix Expected to return a value at the end of arrow
function.eslintconsistent-return

* background: do not query tabs w/out url

* background: rm Could not establish... catch
- no longer needed after improved tabs query

* dapp:clean: rm unused checkForError... for now...

* dapp: prevent setupExtensionStreams called twice
- calling connect will trigger disconnect and may cause issues
- only setup streams if they are not connected

* dapp: handle onDisconnect lastError
- throwing errors from contentscript will break the dapp, so only warn
- not handling lastError when it's found will also break the dapp

* background: update tabs.query url comment

* background: update tabs.query url comment 2

* dapp: fix SW restart for multi dapp support
- ref: https://stackoverflow.com/a/54686484/4053142

* dapp:clean: rm extra "." from console.warn

* clean: comments for dapp and background

* Adding catch block (#16454)

* fix: FireFox provider injection

* lib/util: fix invalid checkForErrorAndWarn export

* bg: add explanation for tabs.sendMessage catch

* dapp: add browser-runtime.utils

* runtime.utils: add checkForLastErrorAndLog

Co-authored-by: Jyoti Puri <jyotipuri@gmail.com>
Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
2022-11-15 00:18:08 +07:00
Mark Stacey
3a19c9c109
Merge pull request #16476 from MetaMask/master-sync
Sync develop with master v10.22.0
2022-11-14 11:13:19 -03:30
Peter Yinusa
b2293e6648
[e2e]: log exceptions when tests fail (#16453)
* log exceptions inc background

* show full stacktrace

* use driver api

* lint
2022-11-14 08:35:08 -06:00
Frederik Bolding
8f30e03613
[FLASK] Fix an issue with updating snaps that have caveat permissions (#16473) 2022-11-14 11:50:17 +01:00
seaona
d58025d142 Merge branch 'master' into master-sync 2022-11-14 10:48:11 +01:00
Mark Stacey
308033edbf
Merge pull request #16353 from MetaMask/Version-v10.22.0
Version v10.22.0
2022-11-11 15:43:19 -03:30
seaona
d4d8a8a13d Add Changelog entry for fix Network form by validating chainId 2022-11-11 16:41:32 +01:00
Alex Donesky
68684bfd11 fix chainId validation on network form (#16452) 2022-11-11 11:01:07 -03:30
Alex Donesky
b2e621b5f9
fix chainId validation on network form (#16452) 2022-11-11 10:49:50 -03:30
David Walsh
de0f1ec51b BETA - Update verbiage for success messages after onboarding (#16343) 2022-11-11 10:24:06 +01:00
George Marshall
9821c59e11
TextField component updates (#16424)
* Updating showClearButton prop name and making component dumber

* Docs update

* Adding missing proptype

* Fixing casing on tests

* Replacing clear button placeholder with ButtonIcon and docs update

* Fixing linting issues

* Adding note about controlled only for showClearButton to work and fixing some tests

* Updating test to include controlled testing setup function for clearButton tests
2022-11-10 11:13:15 -08:00
Adnan Sahovic
568683d1c5 Warning on a Send transaction request (#16220) 2022-11-10 15:44:50 +01:00
Daniel Liu
4b08d2ecf8
docs: fix obsolete link of nvm in README.md (#16238)
Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
2022-11-10 08:25:37 -06:00
Dan J Miller
1db38adf4c Call onbootcleanup at the end of the tx controller constructor (#16449)
* Call onbootcleanup at the end of the tx controller constructor

* Update app/scripts/controllers/transactions/index.js

Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>

Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
2022-11-10 14:30:50 +01:00