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

show nothing for siteInfo on about: pages #8542

Merged
merged 1 commit into from
Apr 28, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions js/components/siteInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const PropTypes = require('prop-types')
const ImmutableComponent = require('../../app/renderer/components/immutableComponent')
const cx = require('../lib/classSet')
const {isPotentialPhishingUrl} = require('../lib/urlutil')
const {isSourceAboutUrl} = require('../lib/appUrlUtil')
const Dialog = require('./dialog')
const Button = require('./button')
const appActions = require('../actions/appActions')
Expand Down Expand Up @@ -66,6 +67,10 @@ class SiteInfo extends ImmutableComponent {
return isPotentialPhishingUrl(this.props.frameProps.getIn(['location']))
}
render () {
if (isSourceAboutUrl(this.location)) {
return null
}

// Figure out the partition info display
let l10nArgs = {
partitionNumber: this.partitionNumber
Expand Down