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

Commit

Permalink
Merge pull request #10242 from brave/fix/10240
Browse files Browse the repository at this point in the history
remove webSecurity:false in webPreferences
  • Loading branch information
diracdeltas authored Sep 13, 2017
2 parents fa1d595 + 019f85b commit 0cb884d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions app/browser/reducers/windowsReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,9 @@ function windowDefaults (state) {
minModalWidth: 100,
windowOffset: 20,
webPreferences: {
// XXX: Do not edit without security review
sharedWorker: true,
nodeIntegration: false,
partition: 'default',
webSecurity: false,
allowFileAccessFromFileUrls: true,
allowUniversalAccessFromFileUrls: true
partition: 'default'
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion app/browser/share.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const {shell} = require('electron')
const tabs = require('./tabs')

const templateUrls = {
email: 'mailto:?subject={title}&body={url}',
email: 'mailto:?subject={title}&body={url}', // Do not edit without security review
facebook: 'https://www.facebook.com/sharer.php?u={url}',
pinterest: 'https://pinterest.com/pin/create/bookmarklet/?url={url}&description={title}',
twitter: 'https://twitter.com/intent/tweet?url={url}&text={title}&hashtags=brave',
Expand Down

0 comments on commit 0cb884d

Please sign in to comment.