Skip to content

Commit

Permalink
Merge pull request #29160 from MetaMask/Version-v12.9.2
Browse files Browse the repository at this point in the history
Version v12.9.2 RC
  • Loading branch information
danjm authored Dec 16, 2024
2 parents 8f3fb20 + 4070d34 commit c5dd2e3
Show file tree
Hide file tree
Showing 39 changed files with 960 additions and 107 deletions.
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [12.9.2]
### Changed
- Display the "Amount" row within the advanced view of contract interaction confirmations, and whenever the amount being sent differs from the "You Send" row of the transaction simulation information by more than 5% ([#29131](https://github.com/MetaMask/metamask-extension/pull/29131))
- Improved phishing detection protections ([#28782](https://github.com/MetaMask/metamask-extension/pull/28782))

### Fixed
- Ensure that the correct fallback letter is used for network icons within the token list ([#29121](https://github.com/MetaMask/metamask-extension/pull/29121))
- Ensure users have to click through a blocking red warning before submitting multiple Smart Transactions while one is already pending ([#29140](https://github.com/MetaMask/metamask-extension/pull/29140))
- Prevent users from being stuck on an "Invalid string length" error screen, by deleting tokens from their state of the data was invalid because the `decimals` property of the token was `null` ([#29245](https://github.com/MetaMask/metamask-extension/pull/29245))

## [12.9.1]
### Changed
- The 'All Networks' view of assets on the home screen will now only get data across the 9 'popular networks' ([#29071](https://github.com/MetaMask/metamask-extension/pull/29071))
Expand Down Expand Up @@ -5477,7 +5487,8 @@ Update styles and spacing on the critical error page ([#20350](https://github.c
- Added the ability to restore accounts from seed words.


[Unreleased]: https://github.com/MetaMask/metamask-extension/compare/v12.9.1...HEAD
[Unreleased]: https://github.com/MetaMask/metamask-extension/compare/v12.9.2...HEAD
[12.9.2]: https://github.com/MetaMask/metamask-extension/compare/v12.9.1...v12.9.2
[12.9.1]: https://github.com/MetaMask/metamask-extension/compare/v12.9.0...v12.9.1
[12.9.0]: https://github.com/MetaMask/metamask-extension/compare/v12.8.1...v12.9.0
[12.8.1]: https://github.com/MetaMask/metamask-extension/compare/v12.8.0...v12.8.1
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/de/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions app/_locales/el/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions app/_locales/en/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions app/_locales/en_GB/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions app/_locales/es/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions app/_locales/fr/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions app/_locales/hi/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions app/_locales/id/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions app/_locales/ja/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions app/_locales/ko/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions app/_locales/pt/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions app/_locales/ru/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions app/_locales/tl/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions app/_locales/tr/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions app/_locales/vi/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions app/_locales/zh_CN/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions app/manifest/v2/_base.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@
"clipboardWrite",
"http://*/*",
"https://*/*",
"ws://*/*",
"wss://*/*",
"activeTab",
"webRequest",
"webRequestBlocking",
Expand Down
4 changes: 3 additions & 1 deletion app/manifest/v3/_base.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@
"http://localhost:8545/",
"file://*/*",
"http://*/*",
"https://*/*"
"https://*/*",
"ws://*/*",
"wss://*/*"
],
"icons": {
"16": "images/icon-16.png",
Expand Down
17 changes: 8 additions & 9 deletions app/scripts/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,22 +315,21 @@ function maybeDetectPhishing(theController) {
// blocking is better than tab redirection, as blocking will prevent
// the browser from loading the page at all
if (isManifestV2) {
if (details.type === 'sub_frame') {
// redirect the entire tab to the
// phishing warning page instead.
redirectTab(details.tabId, redirectHref);
// don't let the sub_frame load at all
return { cancel: true };
// We can redirect `main_frame` requests directly to the warning page.
// For non-`main_frame` requests (e.g. `sub_frame` or WebSocket), we cancel them
// and redirect the whole tab asynchronously so that the user sees the warning.
if (details.type === 'main_frame') {
return { redirectUrl: redirectHref };
}
// redirect the whole tab
return { redirectUrl: redirectHref };
redirectTab(details.tabId, redirectHref);
return { cancel: true };
}
// redirect the whole tab (even if it's a sub_frame request)
redirectTab(details.tabId, redirectHref);
return {};
},
{
urls: ['http://*/*', 'https://*/*'],
urls: ['http://*/*', 'https://*/*', 'ws://*/*', 'wss://*/*'],
},
isManifestV2 ? ['blocking'] : [],
);
Expand Down
Loading

0 comments on commit c5dd2e3

Please sign in to comment.