Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
restart only when cache+cookies+history are all cleared
Browse files Browse the repository at this point in the history
address 9f7073c#commitcomment-19137894

Auditors: @bbondy

Test Plan: select clear cookies, cache, and history. browser should prompt to restart.
  • Loading branch information
diracdeltas committed Sep 22, 2016
1 parent 61209bc commit bcdcb07
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/components/clearBrowsingDataPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ class ClearBrowsingDataPanel extends ImmutableComponent {
onClear () {
appActions.clearAppData(this.props.clearBrowsingDataDetail)
this.props.onHide()
if (this.props.clearBrowsingDataDetail.get('allSiteCookies')) {
let detail = this.props.clearBrowsingDataDetail
if (detail.get('allSiteCookies') && detail.get('browserHistory') &&
detail.get('cachedImagesAndFiles')) {
ipc.send(messages.PREFS_RESTART)
}
}
Expand Down

0 comments on commit bcdcb07

Please sign in to comment.