aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2016-09-15 07:18:35 +0800
committerKevin Serrano <kevgagser@gmail.com>2016-09-15 07:18:35 +0800
commitb0119be9f4d07cdbb9d4494becf3f4ea0d42ddde (patch)
treed691f03b33ae4981501124b362ec32c7a53d4aaf
parent3270861d62b9a3fa42b4d0acb0eb44369c8d56b8 (diff)
parentf7bd1bb6d86609c441efa10fa4527b49465fb156 (diff)
downloadtangerine-wallet-browser-b0119be9f4d07cdbb9d4494becf3f4ea0d42ddde.tar
tangerine-wallet-browser-b0119be9f4d07cdbb9d4494becf3f4ea0d42ddde.tar.gz
tangerine-wallet-browser-b0119be9f4d07cdbb9d4494becf3f4ea0d42ddde.tar.bz2
tangerine-wallet-browser-b0119be9f4d07cdbb9d4494becf3f4ea0d42ddde.tar.lz
tangerine-wallet-browser-b0119be9f4d07cdbb9d4494becf3f4ea0d42ddde.tar.xz
tangerine-wallet-browser-b0119be9f4d07cdbb9d4494becf3f4ea0d42ddde.tar.zst
tangerine-wallet-browser-b0119be9f4d07cdbb9d4494becf3f4ea0d42ddde.zip
Merge branch 'master' into tos
-rw-r--r--CHANGELOG.md10
-rw-r--r--app/manifest.json2
-rw-r--r--app/scripts/background.js25
-rw-r--r--package.json2
-rw-r--r--ui/app/conf-tx.js4
5 files changed, 23 insertions, 20 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 862bf3d7e..63264622d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,10 +2,18 @@
## Current Master
+## 2.12.1 2016-09-14
+
+- Fixed bug where if you send a transaction from within MetaMask extension the
+popup notification opens up.
+- Fixed bug where some tx errors would block subsequent txs until the plugin was refreshed.
+
+## 2.12.0 2016-09-14
+
+- Add a QR button to the Account detail screen
- Fixed bug where opening MetaMask could close a non-metamask popup.
- Fixed memory leak that caused occasional crashes.
-- Add a QR button to the Account detail screen
## 2.11.1 2016-09-12
- Fix bug that prevented caches from being cleared in Opera.
diff --git a/app/manifest.json b/app/manifest.json
index a21e0612a..daf9ef94a 100644
--- a/app/manifest.json
+++ b/app/manifest.json
@@ -1,7 +1,7 @@
{
"name": "MetaMask",
"short_name": "Metamask",
- "version": "2.11.1",
+ "version": "2.12.1",
"manifest_version": 2,
"author": "https://metamask.io",
"description": "Ethereum Browser Extension",
diff --git a/app/scripts/background.js b/app/scripts/background.js
index 58228a41a..652acc113 100644
--- a/app/scripts/background.js
+++ b/app/scripts/background.js
@@ -10,31 +10,22 @@ const MetamaskController = require('./metamask-controller')
const extension = require('./lib/extension')
const STORAGE_KEY = 'metamask-config'
-
+var popupIsOpen = false
const controller = new MetamaskController({
// User confirmation callbacks:
- showUnconfirmedMessage,
- unlockAccountMessage,
- showUnconfirmedTx,
+ showUnconfirmedMessage: triggerUi,
+ unlockAccountMessage: triggerUi,
+ showUnconfirmedTx: triggerUi,
// Persistence Methods:
setData,
loadData,
})
const idStore = controller.idStore
-function unlockAccountMessage () {
- notification.show()
-}
-
-function showUnconfirmedMessage (msgParams, msgId) {
- notification.show()
+function triggerUi () {
+ if (!popupIsOpen) notification.show()
}
-
-function showUnconfirmedTx (txParams, txData, onTxDoneCb) {
- notification.show()
-}
-
// On first install, open a window to MetaMask website to how-it-works.
extension.runtime.onInstalled.addListener(function (details) {
@@ -53,7 +44,8 @@ function connectRemote (remotePort) {
var portStream = new PortStream(remotePort)
if (isMetaMaskInternalProcess) {
// communication with popup
- setupTrustedCommunication(portStream, 'MetaMask')
+ popupIsOpen = remotePort.name === 'popup'
+ setupTrustedCommunication(portStream, 'MetaMask', remotePort.name)
} else {
// communication with page
var originDomain = urlUtil.parse(remotePort.sender.url).hostname
@@ -95,6 +87,7 @@ function setupControllerConnection (stream) {
// teardown on disconnect
eos(stream, () => {
controller.ethStore.removeListener('update', controller.sendUpdate.bind(controller))
+ popupIsOpen = false
})
})
}
diff --git a/package.json b/package.json
index 423bd6a02..fc88162ed 100644
--- a/package.json
+++ b/package.json
@@ -81,7 +81,7 @@
"through2": "^2.0.1",
"vreme": "^3.0.2",
"web3": "ethereum/web3.js#260ac6e78a8ce4b2e13f5bb0fdb65f4088585876",
- "web3-provider-engine": "^8.0.2",
+ "web3-provider-engine": "^8.0.5",
"web3-stream-provider": "^2.0.6",
"xtend": "^4.0.1"
},
diff --git a/ui/app/conf-tx.js b/ui/app/conf-tx.js
index 99b4bc9f1..f02b6be78 100644
--- a/ui/app/conf-tx.js
+++ b/ui/app/conf-tx.js
@@ -140,7 +140,9 @@ ConfirmTxScreen.prototype.goHome = function (event) {
}
function warningIfExists (warning) {
- if (warning) {
+ if (warning &&
+ // Do not display user rejections on this screen:
+ warning.indexOf('User denied transaction signature') === -1) {
return h('span.error', { style: { margin: 'auto' } }, warning)
}
}