Skip to content

Commit

Permalink
Merge pull request #288 from oasisprotocol/lw/dont-store-sensitive
Browse files Browse the repository at this point in the history
Prevent browsers from writing sensitive form inputs to user data
  • Loading branch information
lukaw3d authored Nov 24, 2022
2 parents ad2df89 + ab92f91 commit 95242ca
Show file tree
Hide file tree
Showing 10 changed files with 58 additions and 22 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# Change Log

## 1.8.1

Spotlight change:

- Prevent browsers from writing sensitive form inputs to user data
([#288](https://github.com/oasisprotocol/oasis-wallet-ext/pull/288)).

Little things:

- Start polling for sapphire transaction statuses
([#285](https://github.com/oasisprotocol/oasis-wallet-ext/pull/285)).

Internal:

- Update links in README
([#286](https://github.com/oasisprotocol/oasis-wallet-ext/pull/286),
[#287](https://github.com/oasisprotocol/oasis-wallet-ext/pull/287)).

## 1.8.0

Spotlight change:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "oasis-wallet",
"version": "1.8.0",
"version": "1.8.1",
"private": true,
"scripts": {
"build": "webpack --mode production",
Expand Down
2 changes: 1 addition & 1 deletion public/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"short_name": "__MSG_appName__",
"description": "__MSG_appDescription__",
"manifest_version": 2,
"version": "1.8.0",
"version": "1.8.1",
"default_locale": "en",
"icons": {
"16": "img/oasis.png",
Expand Down
2 changes: 1 addition & 1 deletion src/popup/component/SecurityPwd/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default class SecurityPwd extends React.Component {
}
render() {
return (
<form onSubmit={this.onSubmit}>
<form onSubmit={this.onSubmit} autoComplete="off">
<div className={'common-container'}>
{this.renderInput()}
</div>
Expand Down
1 change: 1 addition & 0 deletions src/popup/component/TextInput/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export default class TextInput extends Component {
spellCheck={false}
onFocus={this.onFocus}
onBlur={this.onBlur}
autoComplete="off"
/>
<img className="pwd-show-status click-cursor" onClick={this.onClickEye} src={imgSrc}></img>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/popup/pages/CreatePassword/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class CreatePassword extends React.Component {
<CustomView
propsClassName={"create-route-container"}
history={this.props.history}>
<form onSubmit={this.onSubmit}>
<form onSubmit={this.onSubmit} autoComplete="off">
<div className={"common-container"}>
<p className={'desc-title'}>{getLanguage('createPassword')}</p>
<div className="create_container">
Expand Down
17 changes: 12 additions & 5 deletions src/popup/pages/ImportAccount/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ class ImportAccount extends React.Component {
className={"text-area-input"}
placeholder={getLanguage('inputPrivateKey')}
value={this.state.privateKey}
onChange={this.handleTextareaChange} />
onChange={this.handleTextareaChange}
autoComplete="off"
/>
</div>
)
}
Expand All @@ -124,15 +126,20 @@ class ImportAccount extends React.Component {
<p className={"import-title"}>{content}</p>
</div>)
}
onSubmit = (event) => {
event.preventDefault();
}
render() {
return (
<CustomView
title={getLanguage('importAccount_1')}
history={this.props.history}>
<div className="import-account-container">
{this.renderInput()}
</div>
{this.renderBottom()}
<form onSubmit={this.onSubmit} autoComplete="off">
<div className="import-account-container">
{this.renderInput()}
</div>
{this.renderBottom()}
</form>
</CustomView>
)
}
Expand Down
2 changes: 1 addition & 1 deletion src/popup/pages/Lock/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class LockPage extends React.Component {
}
renderPwdInput = () => {
return (
<form onSubmit={this.onSubmit}>
<form onSubmit={this.onSubmit} autoComplete="off">
<div className={"lock-inner-container"}>
{this.renderWelcome()}
<TextInput
Expand Down
10 changes: 6 additions & 4 deletions src/popup/pages/ResetPassword/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,12 @@ class Reset extends React.Component {
<CustomView
title={getLanguage('changeSecPassword')}
history={this.props.history}>
<div className="reset_container">
{this.renderPasswordContent()}
</div>
{this.renderBottomBtn()}
<form onSubmit={this.onSubmit} autoComplete="off">
<div className="reset_container">
{this.renderPasswordContent()}
</div>
{this.renderBottomBtn()}
</form>
</CustomView>
)
}
Expand Down
24 changes: 16 additions & 8 deletions src/popup/pages/RestoreAccount/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ class RestoreAccount extends React.Component {
<textarea
className={"text-area-input"}
value={this.state.privateKey}
onChange={this.onMneInput} />
onChange={this.onMneInput}
autoComplete="off"
/>
)
}
renderBottom = () => {
Expand All @@ -103,17 +105,23 @@ class RestoreAccount extends React.Component {
</div>
)
}
onSubmit = (event) => {
event.preventDefault();
}
render() {
return (
<CustomView
propsClassName={"create-route-container"}
history={this.props.history}>
<div className="import-container">
<p className={'desc-title'}>{getLanguage('restoreWallet')}</p>
<p className={"import-title"}>{getLanguage("inputSeed")}</p>
{this.renderInput()}
</div>
{this.renderBottom()}
history={this.props.history}
>
<form onSubmit={this.onSubmit} autoComplete="off">
<div className="import-container">
<p className={'desc-title'}>{getLanguage('restoreWallet')}</p>
<p className={"import-title"}>{getLanguage("inputSeed")}</p>
{this.renderInput()}
</div>
{this.renderBottom()}
</form>
</CustomView>
)
}
Expand Down

0 comments on commit 95242ca

Please sign in to comment.