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

Commit

Permalink
Disable widevine notification on Tor tabs
Browse files Browse the repository at this point in the history
needed for #13396

Test Plan:
1. go to https://shaka-player-demo.appspot.com in a tor private tab
2. you should not see a widevine notification
  • Loading branch information
diracdeltas committed Mar 21, 2018
1 parent 3770a5b commit 8b47785
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/renderer/components/main/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,7 @@ class Main extends React.Component {
const widevinePanelDetail = currentWindow.get('widevinePanelDetail', Immutable.Map())
const loginRequiredDetails = basicAuthState.getLoginRequiredDetail(state, activeTabId)
const focused = isFocused(state)
const isTor = frameStateUtil.isTor(activeFrame)

const props = {}
// used in renderer
Expand All @@ -554,7 +555,7 @@ class Main extends React.Component {
!!currentWindow.get('braveryPanelDetail')
props.showClearData = currentWindow.getIn(['ui', 'isClearBrowsingDataPanelVisible'], false)
props.showImportData = currentWindow.has('importBrowserDataDetail')
props.showWidevine = currentWindow.getIn(['widevinePanelDetail', 'shown']) && !isLinux
props.showWidevine = currentWindow.getIn(['widevinePanelDetail', 'shown']) && !isLinux && !isTor
props.showAutoFillAddress = currentWindow.has('autofillAddressDetail')
props.showAutoFillCC = currentWindow.has('autofillCreditCardDetail')
props.showLogin = !!loginRequiredDetails
Expand Down

0 comments on commit 8b47785

Please sign in to comment.