diff --git a/app/browser/reducers/tabsReducer.js b/app/browser/reducers/tabsReducer.js index 4a00d8388c0..a0e1fa8152e 100644 --- a/app/browser/reducers/tabsReducer.js +++ b/app/browser/reducers/tabsReducer.js @@ -23,7 +23,7 @@ const Immutable = require('immutable') const dragTypes = require('../../../js/constants/dragTypes') const tabActionConsts = require('../../common/constants/tabAction') const flash = require('../../../js/flash') -const {frameOptsFromFrame} = require('../../../js/state/frameStateUtil') +const {frameOptsFromFrame, isTor} = require('../../../js/state/frameStateUtil') const {isSourceAboutUrl, isTargetAboutUrl, isNavigatableAboutPage} = require('../../../js/lib/appUrlUtil') const {shouldDebugTabEvents} = require('../../cmdLine') @@ -35,6 +35,9 @@ const getWebRTCPolicy = (state, tabId) => { if (tabValue == null) { return WEBRTC_DEFAULT } + if (isTor(tabValue)) { + return WEBRTC_DISABLE_NON_PROXY + } const allSiteSettings = siteSettingsState.getAllSiteSettings(state, tabValue.get('incognito') === true) const tabSiteSettings = siteSettings.getSiteSettingsForURL(allSiteSettings, tabValue.get('url')) diff --git a/app/extensions/brave/locales/en-US/bravery.properties b/app/extensions/brave/locales/en-US/bravery.properties index dd85d0bd28a..2228e33503c 100644 --- a/app/extensions/brave/locales/en-US/bravery.properties +++ b/app/extensions/brave/locales/en-US/bravery.properties @@ -13,7 +13,8 @@ blockAllCookies=Block all cookies blockAllFingerprinting=Block all fingerprinting blockPopups=Block Popups cookieControl=Cookie Control -editBraveryGlobalSettings=Edit default shield settingsā¦ +editBraveryGlobalSettings=Edit default shield settingsā¦ +braveryTorWarning=For your protection, some sites will not work fully in Tor mode. fingerprintingBlocked={[plural(blockedFingerprintCount)]} fingerprintingBlocked[one]=Fingerprinting Method Blocked fingerprintingBlocked[other]=Fingerprinting Methods Blocked @@ -28,4 +29,4 @@ safeBrowsing=Block Phishing / Malware scriptsBlockedNumber={[plural(blockedScriptCount)]} scriptsBlockedNumber[one]=Script Blocked scriptsBlockedNumber[other]=Scripts Blocked -showBraveAds=Show Brave Ads \ No newline at end of file +showBraveAds=Show Brave Ads diff --git a/app/renderer/components/main/braveryPanel.js b/app/renderer/components/main/braveryPanel.js index 735868526c7..aea813f70be 100644 --- a/app/renderer/components/main/braveryPanel.js +++ b/app/renderer/components/main/braveryPanel.js @@ -232,6 +232,7 @@ class BraveryPanel extends React.Component { props.isBlockedScriptsShown = braveryPanelDetail.get('expandNoScript') props.isBlockingFingerprinting = props.blockedFingerprinting.size > 0 props.isFpShown = braveryPanelDetail.get('expandFp') + props.isTor = frameStateUtil.isTor(activeFrame) // used in other functions props.lastCommittedURL = lastCommittedURL @@ -623,6 +624,16 @@ class BraveryPanel extends React.Component { : null } + { + this.props.isTor + ?
+ : null + }