├── app ├── browser │ ├── .gitkeep │ ├── stores │ │ └── .gitkeep │ ├── resourcesManager.js │ ├── extensions │ │ └── contextMenus.js │ ├── profiles.js │ ├── reducers │ │ └── clipboardReducer.js │ └── ads │ │ └── adInsertion.js ├── common │ ├── .gitkeep │ ├── constants │ │ ├── .gitkeep │ │ ├── keyLocations.js │ │ ├── electronDownloadItemActions.js │ │ ├── keyCodes.js │ │ ├── toolbarUserInterfaceScale.js │ │ └── extensionConstants.js │ ├── dispatcher │ │ └── .gitkeep │ ├── lib │ │ └── randomUtil.js │ └── state │ │ ├── siteSettingsState.js │ │ ├── defaultBrowserState.js │ │ ├── immutableUtil.js │ │ └── shieldState.js ├── renderer │ ├── .gitkeep │ ├── stores │ │ └── .gitkeep │ ├── components │ │ ├── .gitkeep │ │ ├── styles │ │ │ └── animations.js │ │ └── immutableComponent.js │ └── getComputedStyle.js ├── extensions │ ├── brave │ │ ├── img │ │ │ ├── bitgo.png │ │ │ ├── favicon.ico │ │ │ ├── sync-16.png │ │ │ ├── sync-48.png │ │ │ ├── bitgo_2x.png │ │ │ ├── braveAbout.png │ │ │ ├── braveBtn.png │ │ │ ├── braveBtn2x.png │ │ │ ├── braveBtn3x.png │ │ │ ├── coinbase.png │ │ │ ├── sync-128.png │ │ │ ├── coinbase_2x.png │ │ │ ├── braveBtn_hover.png │ │ │ ├── coinbase_logo.png │ │ │ ├── empty_favicon.png │ │ │ ├── braveBtn2x_hover.png │ │ │ ├── braveBtn3x_hover.png │ │ │ ├── bravePluginAlert.png │ │ │ ├── newtab_stock_image.jpg │ │ │ ├── extensions │ │ │ │ ├── pocket-128.png │ │ │ │ ├── 1password-128.png │ │ │ │ ├── bitwarden-128.png │ │ │ │ ├── dashlane-128.png │ │ │ │ └── lastpass-128.png │ │ │ ├── private_internet_access.png │ │ │ ├── private_internet_access_2x.png │ │ │ ├── newtab │ │ │ │ └── defaultTopSitesIcon │ │ │ │ │ ├── brave.ico │ │ │ │ │ ├── appstore.png │ │ │ │ │ ├── facebook.png │ │ │ │ │ ├── twitter.png │ │ │ │ │ ├── youtube.png │ │ │ │ │ └── playstore.png │ │ │ ├── caret_down_grey.svg │ │ │ ├── ledger │ │ │ │ ├── verified_green_icon.svg │ │ │ │ └── icon_remove.svg │ │ │ ├── preferences │ │ │ │ ├── browser_prefs_tabs.svg │ │ │ │ └── browser_prefs_search.svg │ │ │ ├── tabs │ │ │ │ └── loading.svg │ │ │ └── URL_alert_triangle_yellow.svg │ │ ├── brave-default.css │ │ ├── locales │ │ │ ├── bn-BD │ │ │ │ ├── bookmarks.l20n │ │ │ │ ├── history.properties │ │ │ │ ├── adblock.properties │ │ │ │ ├── bookmarks.properties │ │ │ │ ├── autofill.properties │ │ │ │ ├── error.properties │ │ │ │ ├── common.properties │ │ │ │ ├── passwords.properties │ │ │ │ └── styles.properties │ │ │ ├── zh-CN │ │ │ │ ├── history.properties │ │ │ │ ├── error.properties │ │ │ │ ├── adblock.properties │ │ │ │ ├── common.properties │ │ │ │ ├── bookmarks.properties │ │ │ │ ├── autofill.properties │ │ │ │ ├── passwords.properties │ │ │ │ ├── styles.properties │ │ │ │ └── downloads.properties │ │ │ ├── ja-JP │ │ │ │ ├── history.properties │ │ │ │ ├── error.properties │ │ │ │ ├── adblock.properties │ │ │ │ ├── autofill.properties │ │ │ │ ├── bookmarks.properties │ │ │ │ ├── common.properties │ │ │ │ ├── passwords.properties │ │ │ │ ├── styles.properties │ │ │ │ └── downloads.properties │ │ │ ├── ko-KR │ │ │ │ ├── history.properties │ │ │ │ ├── adblock.properties │ │ │ │ ├── error.properties │ │ │ │ ├── autofill.properties │ │ │ │ ├── bookmarks.properties │ │ │ │ ├── common.properties │ │ │ │ ├── passwords.properties │ │ │ │ ├── styles.properties │ │ │ │ └── downloads.properties │ │ │ ├── bn-IN │ │ │ │ ├── history.properties │ │ │ │ ├── adblock.properties │ │ │ │ ├── error.properties │ │ │ │ ├── bookmarks.properties │ │ │ │ ├── autofill.properties │ │ │ │ ├── common.properties │ │ │ │ ├── passwords.properties │ │ │ │ └── styles.properties │ │ │ ├── en-US │ │ │ │ ├── history.properties │ │ │ │ ├── adblock.properties │ │ │ │ ├── error.properties │ │ │ │ ├── bookmarks.properties │ │ │ │ ├── autofill.properties │ │ │ │ ├── passwords.properties │ │ │ │ ├── common.properties │ │ │ │ ├── styles.properties │ │ │ │ └── downloads.properties │ │ │ ├── hi-IN │ │ │ │ ├── history.properties │ │ │ │ ├── adblock.properties │ │ │ │ ├── error.properties │ │ │ │ ├── autofill.properties │ │ │ │ ├── bookmarks.properties │ │ │ │ ├── passwords.properties │ │ │ │ ├── common.properties │ │ │ │ └── styles.properties │ │ │ ├── pl-PL │ │ │ │ ├── history.properties │ │ │ │ ├── adblock.properties │ │ │ │ ├── error.properties │ │ │ │ ├── bookmarks.properties │ │ │ │ ├── autofill.properties │ │ │ │ ├── passwords.properties │ │ │ │ ├── common.properties │ │ │ │ └── styles.properties │ │ │ ├── ta │ │ │ │ ├── history.properties │ │ │ │ ├── adblock.properties │ │ │ │ ├── error.properties │ │ │ │ ├── autofill.properties │ │ │ │ ├── bookmarks.properties │ │ │ │ ├── common.properties │ │ │ │ ├── passwords.properties │ │ │ │ └── styles.properties │ │ │ ├── te │ │ │ │ ├── history.properties │ │ │ │ ├── adblock.properties │ │ │ │ ├── error.properties │ │ │ │ ├── autofill.properties │ │ │ │ ├── bookmarks.properties │ │ │ │ ├── passwords.properties │ │ │ │ ├── common.properties │ │ │ │ ├── styles.properties │ │ │ │ └── downloads.properties │ │ │ ├── uk │ │ │ │ ├── history.properties │ │ │ │ ├── error.properties │ │ │ │ ├── adblock.properties │ │ │ │ ├── bookmarks.properties │ │ │ │ ├── autofill.properties │ │ │ │ ├── passwords.properties │ │ │ │ ├── common.properties │ │ │ │ └── styles.properties │ │ │ ├── id-ID │ │ │ │ ├── history.properties │ │ │ │ ├── error.properties │ │ │ │ ├── adblock.properties │ │ │ │ ├── bookmarks.properties │ │ │ │ ├── autofill.properties │ │ │ │ ├── passwords.properties │ │ │ │ ├── downloads.properties │ │ │ │ ├── common.properties │ │ │ │ └── styles.properties │ │ │ ├── ms-MY │ │ │ │ ├── history.properties │ │ │ │ ├── error.properties │ │ │ │ ├── adblock.properties │ │ │ │ ├── autofill.properties │ │ │ │ ├── bookmarks.properties │ │ │ │ ├── passwords.properties │ │ │ │ └── styles.properties │ │ │ ├── ru │ │ │ │ ├── history.properties │ │ │ │ ├── error.properties │ │ │ │ ├── bookmarks.properties │ │ │ │ ├── adblock.properties │ │ │ │ ├── autofill.properties │ │ │ │ ├── passwords.properties │ │ │ │ └── common.properties │ │ │ ├── tr-TR │ │ │ │ ├── history.properties │ │ │ │ ├── error.properties │ │ │ │ ├── adblock.properties │ │ │ │ ├── bookmarks.properties │ │ │ │ ├── autofill.properties │ │ │ │ ├── passwords.properties │ │ │ │ ├── common.properties │ │ │ │ └── styles.properties │ │ │ ├── sl │ │ │ │ ├── history.properties │ │ │ │ ├── error.properties │ │ │ │ ├── bookmarks.properties │ │ │ │ ├── adblock.properties │ │ │ │ ├── autofill.properties │ │ │ │ ├── passwords.properties │ │ │ │ ├── common.properties │ │ │ │ └── styles.properties │ │ │ ├── de-DE │ │ │ │ ├── history.properties │ │ │ │ ├── adblock.properties │ │ │ │ ├── bookmarks.properties │ │ │ │ ├── autofill.properties │ │ │ │ ├── error.properties │ │ │ │ └── passwords.properties │ │ │ ├── cs │ │ │ │ ├── history.properties │ │ │ │ ├── error.properties │ │ │ │ ├── adblock.properties │ │ │ │ ├── bookmarks.properties │ │ │ │ ├── autofill.properties │ │ │ │ ├── passwords.properties │ │ │ │ └── common.properties │ │ │ ├── eu │ │ │ │ ├── history.properties │ │ │ │ ├── error.properties │ │ │ │ ├── adblock.properties │ │ │ │ ├── bookmarks.properties │ │ │ │ ├── autofill.properties │ │ │ │ ├── passwords.properties │ │ │ │ └── common.properties │ │ │ ├── nl-NL │ │ │ │ ├── history.properties │ │ │ │ ├── adblock.properties │ │ │ │ ├── autofill.properties │ │ │ │ ├── bookmarks.properties │ │ │ │ ├── error.properties │ │ │ │ ├── passwords.properties │ │ │ │ ├── styles.properties │ │ │ │ └── common.properties │ │ │ ├── pt-BR │ │ │ │ ├── history.properties │ │ │ │ ├── error.properties │ │ │ │ ├── adblock.properties │ │ │ │ ├── bookmarks.properties │ │ │ │ ├── autofill.properties │ │ │ │ └── passwords.properties │ │ │ ├── es │ │ │ │ ├── history.properties │ │ │ │ ├── error.properties │ │ │ │ ├── adblock.properties │ │ │ │ ├── bookmarks.properties │ │ │ │ ├── autofill.properties │ │ │ │ └── passwords.properties │ │ │ ├── it-IT │ │ │ │ ├── history.properties │ │ │ │ ├── adblock.properties │ │ │ │ ├── bookmarks.properties │ │ │ │ ├── error.properties │ │ │ │ ├── autofill.properties │ │ │ │ ├── passwords.properties │ │ │ │ └── common.properties │ │ │ └── fr-FR │ │ │ │ ├── history.properties │ │ │ │ ├── error.properties │ │ │ │ ├── adblock.properties │ │ │ │ ├── bookmarks.properties │ │ │ │ └── autofill.properties │ │ ├── content │ │ │ ├── scripts │ │ │ │ └── idleHandler.js │ │ │ └── styles │ │ │ │ └── removeEmptyElements.css │ │ ├── about-blank.html │ │ └── about-newtab.html │ └── torrent │ │ └── img │ │ ├── favicon.ico │ │ ├── webtorrent.png │ │ ├── webtorrent-16.png │ │ ├── webtorrent-48.png │ │ └── webtorrent-128.png ├── adInsertion.js ├── nativeImage.js └── package-loader.js ├── tools ├── lib │ ├── __init__.py │ ├── versionInfo.js │ └── execute.js ├── auto_rpm_sign ├── addSimulatedSynopsisVisits.js ├── addSimulatedPaymentHistory.js ├── test.js ├── start.js └── updatepsl.sh ├── test ├── fixtures │ ├── inlineScript.html │ ├── test.txt │ ├── js │ │ └── simpleOutput.js │ ├── slashdot.html │ ├── tabnapping_target.html │ ├── httpsEverywhere.html │ ├── img │ │ ├── test.ico │ │ └── test.pdf │ ├── in_page_nav.html │ ├── iframe1.html │ ├── red_bg.html │ ├── flash_small.html │ ├── spoof_content.html │ ├── favicon.html │ ├── theme_color.html │ ├── page_no_title.html │ ├── tracking.html │ ├── scriptBlock.html │ ├── find_in_page2.html │ ├── page1.html │ ├── page2.html │ ├── notificationFail.html │ ├── iframe_target_top.html │ ├── yellow_header.html │ ├── adblock.html │ ├── iframe_target_parent.html │ ├── opensearch.html │ ├── find_in_page.html │ ├── page_favicon_not_found.html │ ├── noscript.html │ ├── modal_beforeunload.html │ ├── flash_invisible.html │ ├── notification.html │ ├── modal_alert.html │ ├── enumerate_devices.html │ ├── urlbarSpoof.html │ ├── click_with_target.html │ ├── battery.html │ ├── url_fragments.html │ ├── close.html │ ├── geolocation.html │ ├── tabnapping.html │ ├── modal_prompt.html │ ├── modal_confirm.html │ ├── spoof_opener.html │ ├── websockets.html │ ├── fullscreen.html │ ├── ssl_spoof.html │ ├── flash_interception.html │ ├── opensearch.xml │ └── window_open.html ├── unit │ ├── braveUnit.js │ ├── lib │ │ ├── fakeElectronMenu.js │ │ ├── fakeSettings.js │ │ └── fakeAdBlock.js │ └── constants │ │ └── settingsTest.js ├── lib │ └── coMocha.js ├── mocha.opts └── vms │ └── vagrant │ ├── centos │ ├── init │ └── Vagrantfile │ └── jessie │ └── build ├── js ├── constants │ ├── buildConfig.js │ ├── sync │ │ └── proto.js │ ├── dragTypes.js │ ├── siteTags.js │ ├── suggestionTypes.js │ ├── extensionStates.js │ ├── downloadStates.js │ └── preferenceTabs.js ├── lib │ ├── base64.js │ ├── textCalculator.js │ ├── classSet.js │ ├── throttle.js │ ├── promisify.js │ └── debounce.js └── devTools.js ├── COMMIT_TEMPLATE ├── gpg_key.enc ├── res ├── UAC.dll ├── app.ico ├── app.png ├── app.icns ├── background.png ├── start-tile-70.png ├── brave_installer.icns ├── brave_installer.ico ├── brave_installer.png ├── start-tile-150.png ├── brave_splash_installing.gif ├── brave_installer_package.icns ├── Update.VisualElementsManifest.xml └── builderConfig.json ├── .nsprc ├── img ├── coinbase_logo_blue_trans.png ├── icon_new_frame.svg ├── windows │ ├── win10_minimize.svg │ ├── win10_expand.svg │ ├── win10_restore.svg │ ├── win10_close.svg │ └── win10_close_white.svg ├── toolbar │ ├── newtab_btn.svg │ ├── home_btn.svg │ ├── stoploading_btn.svg │ ├── close_download_btn.svg │ ├── close_download_btn_hover.svg │ ├── reload_btn.svg │ ├── menu_btn.svg │ ├── http_URL_icon.svg │ ├── secure_URL_icon.svg │ ├── secure_extended_URL_icon.svg │ ├── back_btn.svg │ ├── bookmark_btn.svg │ ├── forward_btn.svg │ ├── bookmark_marked.svg │ └── bookmark_btn_hover.svg └── refresh.svg ├── .flowconfig ├── less ├── about │ ├── adblock.less │ └── common.less ├── addEditBookmark.less ├── main.less └── animations.less ├── .npmrc ├── .babelrc ├── .editorconfig ├── .github ├── PULL_REQUEST_TEMPLATE.md └── ISSUE_TEMPLATE.md ├── decls └── globals.js └── appveyor.yml /app/browser/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/common/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/renderer/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tools/lib/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/browser/stores/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/renderer/stores/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/browser/resourcesManager.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/common/constants/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/common/dispatcher/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/renderer/components/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/inlineScript.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/test.txt: -------------------------------------------------------------------------------- 1 | success 2 | -------------------------------------------------------------------------------- /js/constants/buildConfig.js: -------------------------------------------------------------------------------- 1 | module.exports = {} -------------------------------------------------------------------------------- /test/unit/braveUnit.js: -------------------------------------------------------------------------------- 1 | require('jsdom-global')() 2 | -------------------------------------------------------------------------------- /COMMIT_TEMPLATE: -------------------------------------------------------------------------------- 1 | 2 | Auditors: 3 | 4 | Test Plan: 5 | -------------------------------------------------------------------------------- /test/fixtures/js/simpleOutput.js: -------------------------------------------------------------------------------- 1 | document.write('test1') 2 | -------------------------------------------------------------------------------- /test/fixtures/slashdot.html: -------------------------------------------------------------------------------- 1 | 4 | 5 | -------------------------------------------------------------------------------- /test/lib/coMocha.js: -------------------------------------------------------------------------------- 1 | var mocha = require('mocha') 2 | var coMocha = require('co-mocha') 3 | coMocha(mocha) 4 | -------------------------------------------------------------------------------- /res/brave_splash_installing.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bs/browser-laptop/master/res/brave_splash_installing.gif -------------------------------------------------------------------------------- /app/extensions/brave/img/bitgo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bs/browser-laptop/master/app/extensions/brave/img/bitgo.png -------------------------------------------------------------------------------- /img/coinbase_logo_blue_trans.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bs/browser-laptop/master/img/coinbase_logo_blue_trans.png -------------------------------------------------------------------------------- /res/brave_installer_package.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bs/browser-laptop/master/res/brave_installer_package.icns -------------------------------------------------------------------------------- /app/extensions/brave/brave-default.css: -------------------------------------------------------------------------------- 1 | input[type="search"]::-webkit-search-results-decoration { -webkit-appearance: none; } 2 | -------------------------------------------------------------------------------- /app/extensions/brave/img/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bs/browser-laptop/master/app/extensions/brave/img/favicon.ico -------------------------------------------------------------------------------- /app/extensions/brave/img/sync-16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bs/browser-laptop/master/app/extensions/brave/img/sync-16.png -------------------------------------------------------------------------------- /app/extensions/brave/img/sync-48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bs/browser-laptop/master/app/extensions/brave/img/sync-48.png -------------------------------------------------------------------------------- /test/fixtures/iframe1.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /test/fixtures/red_bg.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /app/extensions/brave/img/bitgo_2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bs/browser-laptop/master/app/extensions/brave/img/bitgo_2x.png -------------------------------------------------------------------------------- /app/extensions/brave/img/braveAbout.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bs/browser-laptop/master/app/extensions/brave/img/braveAbout.png -------------------------------------------------------------------------------- /app/extensions/brave/img/braveBtn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bs/browser-laptop/master/app/extensions/brave/img/braveBtn.png -------------------------------------------------------------------------------- /app/extensions/brave/img/braveBtn2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bs/browser-laptop/master/app/extensions/brave/img/braveBtn2x.png -------------------------------------------------------------------------------- /app/extensions/brave/img/braveBtn3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bs/browser-laptop/master/app/extensions/brave/img/braveBtn3x.png -------------------------------------------------------------------------------- /app/extensions/brave/img/coinbase.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bs/browser-laptop/master/app/extensions/brave/img/coinbase.png -------------------------------------------------------------------------------- /app/extensions/brave/img/sync-128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bs/browser-laptop/master/app/extensions/brave/img/sync-128.png -------------------------------------------------------------------------------- /app/extensions/torrent/img/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bs/browser-laptop/master/app/extensions/torrent/img/favicon.ico -------------------------------------------------------------------------------- /app/extensions/brave/img/coinbase_2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bs/browser-laptop/master/app/extensions/brave/img/coinbase_2x.png -------------------------------------------------------------------------------- /app/extensions/torrent/img/webtorrent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bs/browser-laptop/master/app/extensions/torrent/img/webtorrent.png -------------------------------------------------------------------------------- /test/fixtures/flash_small.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /test/fixtures/spoof_content.html: -------------------------------------------------------------------------------- 1 | fake page 2 |

fake page

3 | 4 | -------------------------------------------------------------------------------- /app/extensions/brave/img/braveBtn_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bs/browser-laptop/master/app/extensions/brave/img/braveBtn_hover.png -------------------------------------------------------------------------------- /app/extensions/brave/img/coinbase_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bs/browser-laptop/master/app/extensions/brave/img/coinbase_logo.png -------------------------------------------------------------------------------- /app/extensions/brave/img/empty_favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bs/browser-laptop/master/app/extensions/brave/img/empty_favicon.png -------------------------------------------------------------------------------- /app/extensions/torrent/img/webtorrent-16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bs/browser-laptop/master/app/extensions/torrent/img/webtorrent-16.png -------------------------------------------------------------------------------- /app/extensions/torrent/img/webtorrent-48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bs/browser-laptop/master/app/extensions/torrent/img/webtorrent-48.png -------------------------------------------------------------------------------- /app/extensions/brave/img/braveBtn2x_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bs/browser-laptop/master/app/extensions/brave/img/braveBtn2x_hover.png -------------------------------------------------------------------------------- /app/extensions/brave/img/braveBtn3x_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bs/browser-laptop/master/app/extensions/brave/img/braveBtn3x_hover.png -------------------------------------------------------------------------------- /app/extensions/brave/img/bravePluginAlert.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bs/browser-laptop/master/app/extensions/brave/img/bravePluginAlert.png -------------------------------------------------------------------------------- /app/extensions/torrent/img/webtorrent-128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bs/browser-laptop/master/app/extensions/torrent/img/webtorrent-128.png -------------------------------------------------------------------------------- /test/fixtures/favicon.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /app/extensions/brave/img/newtab_stock_image.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bs/browser-laptop/master/app/extensions/brave/img/newtab_stock_image.jpg -------------------------------------------------------------------------------- /test/fixtures/theme_color.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /app/extensions/brave/img/extensions/pocket-128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bs/browser-laptop/master/app/extensions/brave/img/extensions/pocket-128.png -------------------------------------------------------------------------------- /app/extensions/brave/img/extensions/1password-128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bs/browser-laptop/master/app/extensions/brave/img/extensions/1password-128.png -------------------------------------------------------------------------------- /app/extensions/brave/img/extensions/bitwarden-128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bs/browser-laptop/master/app/extensions/brave/img/extensions/bitwarden-128.png -------------------------------------------------------------------------------- /app/extensions/brave/img/extensions/dashlane-128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bs/browser-laptop/master/app/extensions/brave/img/extensions/dashlane-128.png -------------------------------------------------------------------------------- /app/extensions/brave/img/extensions/lastpass-128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bs/browser-laptop/master/app/extensions/brave/img/extensions/lastpass-128.png -------------------------------------------------------------------------------- /app/extensions/brave/img/private_internet_access.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bs/browser-laptop/master/app/extensions/brave/img/private_internet_access.png -------------------------------------------------------------------------------- /test/fixtures/page_no_title.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | No title on this page! 7 | 8 | 9 | -------------------------------------------------------------------------------- /test/mocha.opts: -------------------------------------------------------------------------------- 1 | --ui tdd 2 | --timeout 600s 3 | --reporter spec 4 | --check-leaks 5 | --require babel-register 6 | --require babel-polyfill 7 | --recursive 8 | -------------------------------------------------------------------------------- /test/unit/lib/fakeElectronMenu.js: -------------------------------------------------------------------------------- 1 | const fakeElectronMenu = { 2 | popup: () => {}, 3 | destroy: () => {} 4 | } 5 | 6 | module.exports = fakeElectronMenu 7 | -------------------------------------------------------------------------------- /app/extensions/brave/img/private_internet_access_2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bs/browser-laptop/master/app/extensions/brave/img/private_internet_access_2x.png -------------------------------------------------------------------------------- /app/extensions/brave/locales/bn-BD/bookmarks.l20n: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /app/extensions/brave/img/newtab/defaultTopSitesIcon/brave.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bs/browser-laptop/master/app/extensions/brave/img/newtab/defaultTopSitesIcon/brave.ico -------------------------------------------------------------------------------- /test/fixtures/tracking.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /app/extensions/brave/img/newtab/defaultTopSitesIcon/appstore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bs/browser-laptop/master/app/extensions/brave/img/newtab/defaultTopSitesIcon/appstore.png -------------------------------------------------------------------------------- /app/extensions/brave/img/newtab/defaultTopSitesIcon/facebook.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bs/browser-laptop/master/app/extensions/brave/img/newtab/defaultTopSitesIcon/facebook.png -------------------------------------------------------------------------------- /app/extensions/brave/img/newtab/defaultTopSitesIcon/twitter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bs/browser-laptop/master/app/extensions/brave/img/newtab/defaultTopSitesIcon/twitter.png -------------------------------------------------------------------------------- /app/extensions/brave/img/newtab/defaultTopSitesIcon/youtube.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bs/browser-laptop/master/app/extensions/brave/img/newtab/defaultTopSitesIcon/youtube.png -------------------------------------------------------------------------------- /app/extensions/brave/img/newtab/defaultTopSitesIcon/playstore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bs/browser-laptop/master/app/extensions/brave/img/newtab/defaultTopSitesIcon/playstore.png -------------------------------------------------------------------------------- /test/fixtures/scriptBlock.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | -------------------------------------------------------------------------------- /test/vms/vagrant/centos/init: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -exu 3 | yum update -y 4 | yum install createrepo yum-utils git wget gcc clang make patch -y 5 | mkdir /build 6 | chown -R vagrant /build 7 | -------------------------------------------------------------------------------- /.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | .*/app/extensions/brave/gen/.* 3 | .*/test/.*/*.json 4 | .*/node_modules/fbjs/lib/.* 5 | .*/build/Release/.* 6 | .*/public/built/.* 7 | 8 | [libs] 9 | decls 10 | -------------------------------------------------------------------------------- /tools/auto_rpm_sign: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -exu 3 | /usr/bin/expect < 2 | 3 | 4 | Find in page2 5 | 6 | 7 | Brad hates prime numbers. 8 | 9 | 10 | -------------------------------------------------------------------------------- /test/fixtures/page1.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Page 1 5 | 6 | 7 | Page 2 8 | 9 | 10 | -------------------------------------------------------------------------------- /test/fixtures/page2.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Page 2 5 | 6 | 7 | Page 1 8 | 9 | 10 | -------------------------------------------------------------------------------- /img/icon_new_frame.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /less/about/adblock.less: -------------------------------------------------------------------------------- 1 | @import "./common.less"; 2 | 3 | // TODO: refactor SwitchControl to remove this 4 | div[class^="adblockDetailsPage"] { 5 | .switchControlRightText { 6 | margin-left: 15px; 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /test/fixtures/notificationFail.html: -------------------------------------------------------------------------------- 1 | 8 | -------------------------------------------------------------------------------- /app/extensions/brave/locales/zh-CN/history.properties: -------------------------------------------------------------------------------- 1 | historyTitle=历史 2 | history=历史 3 | clearBrowsingDataNow=清除浏览数据 4 | removeSelectedItems=移除所选项目 5 | time=时间 6 | title=标题 7 | domain=域名 8 | historySearch.placeholder=搜索历史记录 9 | -------------------------------------------------------------------------------- /app/extensions/brave/locales/ja-JP/history.properties: -------------------------------------------------------------------------------- 1 | historyTitle=履歴 2 | history=履歴 3 | clearBrowsingDataNow=閲覧データを消去 4 | removeSelectedItems=選択したアイテムを消去 5 | time=時間 6 | title=タイトル 7 | domain=ドメイン 8 | historySearch.placeholder=検索履歴 9 | -------------------------------------------------------------------------------- /img/windows/win10_minimize.svg: -------------------------------------------------------------------------------- 1 | win10_minimize -------------------------------------------------------------------------------- /app/extensions/brave/locales/ko-KR/history.properties: -------------------------------------------------------------------------------- 1 | historyTitle=방문 기록 2 | history=방문 기록 3 | clearBrowsingDataNow=인터넷 사용 정보 삭제 4 | removeSelectedItems=선택된 항목 삭제 5 | time=시간 6 | title=제목 7 | domain=도메인 8 | historySearch.placeholder=방문 기록 9 | -------------------------------------------------------------------------------- /img/windows/win10_expand.svg: -------------------------------------------------------------------------------- 1 | win10_expand -------------------------------------------------------------------------------- /test/fixtures/iframe_target_top.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | iframe.target.top 5 | 6 | 7 | top 8 | 9 | 10 | -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | runtime = electron 2 | target_arch = x64 3 | brave_electron_version = 2.58.6 4 | chromedriver_version = 2.27 5 | target = v2.58.6 6 | disturl=http://brave-laptop-binaries.s3.amazonaws.com/atom-shell/dist/ 7 | build_from_source = true 8 | -------------------------------------------------------------------------------- /test/fixtures/yellow_header.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | 7 | 8 | -------------------------------------------------------------------------------- /img/windows/win10_restore.svg: -------------------------------------------------------------------------------- 1 | win10_restore -------------------------------------------------------------------------------- /js/constants/sync/proto.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | 3 | module.exports.categories = { 4 | BOOKMARKS: '0', 5 | HISTORY_SITES: '1', 6 | PREFERENCES: '2' 7 | } 8 | 9 | module.exports.actions = { 10 | CREATE: 0, 11 | UPDATE: 1, 12 | DELETE: 2 13 | } 14 | -------------------------------------------------------------------------------- /test/vms/vagrant/centos/Vagrantfile: -------------------------------------------------------------------------------- 1 | Vagrant.configure('2') do |config| 2 | vm_ram = ENV['VAGRANT_VM_RAM'] || 10000 3 | vm_cpu = ENV['VAGRANT_VM_CPU'] || 10 4 | 5 | config.vm.box = "centos/7" 6 | config.vm.provision :shell, :inline => "/vagrant/init" 7 | 8 | end 9 | -------------------------------------------------------------------------------- /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | "react", 4 | ["env", { 5 | "targets": { 6 | "chrome": 57 7 | } 8 | }] 9 | ], 10 | "plugins": [ 11 | "transform-react-inline-elements", 12 | "transform-react-constant-elements" 13 | ] 14 | } 15 | -------------------------------------------------------------------------------- /app/extensions/brave/locales/bn-IN/history.properties: -------------------------------------------------------------------------------- 1 | historyTitle=History 2 | history=History 3 | clearBrowsingDataNow=Clear browsing data 4 | removeSelectedItems=Remove selected items 5 | time=Time 6 | title=Title 7 | domain=Domain 8 | historySearch.placeholder=Search history 9 | -------------------------------------------------------------------------------- /app/extensions/brave/locales/en-US/history.properties: -------------------------------------------------------------------------------- 1 | historyTitle=History 2 | history=History 3 | clearBrowsingDataNow=Clear browsing data 4 | removeSelectedItems=Remove selected items 5 | time=Time 6 | title=Title 7 | domain=Domain 8 | historySearch.placeholder=Search history 9 | -------------------------------------------------------------------------------- /app/extensions/brave/locales/hi-IN/history.properties: -------------------------------------------------------------------------------- 1 | historyTitle=History 2 | history=History 3 | clearBrowsingDataNow=Clear browsing data 4 | removeSelectedItems=Remove selected items 5 | time=Time 6 | title=Title 7 | domain=Domain 8 | historySearch.placeholder=Search history 9 | -------------------------------------------------------------------------------- /app/extensions/brave/locales/pl-PL/history.properties: -------------------------------------------------------------------------------- 1 | historyTitle=History 2 | history=History 3 | clearBrowsingDataNow=Clear browsing data 4 | removeSelectedItems=Remove selected items 5 | time=Time 6 | title=Title 7 | domain=Domain 8 | historySearch.placeholder=Search history 9 | -------------------------------------------------------------------------------- /app/extensions/brave/locales/ta/history.properties: -------------------------------------------------------------------------------- 1 | historyTitle=History 2 | history=History 3 | clearBrowsingDataNow=Clear browsing data 4 | removeSelectedItems=Remove selected items 5 | time=Time 6 | title=Title 7 | domain=Domain 8 | historySearch.placeholder=Search history 9 | -------------------------------------------------------------------------------- /app/extensions/brave/locales/te/history.properties: -------------------------------------------------------------------------------- 1 | historyTitle=History 2 | history=History 3 | clearBrowsingDataNow=Clear browsing data 4 | removeSelectedItems=Remove selected items 5 | time=Time 6 | title=Title 7 | domain=Domain 8 | historySearch.placeholder=Search history 9 | -------------------------------------------------------------------------------- /app/extensions/brave/locales/uk/history.properties: -------------------------------------------------------------------------------- 1 | historyTitle=Історія 2 | history=Історія 3 | clearBrowsingDataNow=Стерти дані перегляду 4 | removeSelectedItems=Вилучити обрані елементи 5 | time=Час 6 | title=Назва 7 | domain=Домен 8 | historySearch.placeholder=Історія пошуку 9 | -------------------------------------------------------------------------------- /app/extensions/brave/locales/id-ID/history.properties: -------------------------------------------------------------------------------- 1 | historyTitle=Riwayat 2 | history=Riwayat 3 | clearBrowsingDataNow=Bersihkan data penjelajahan 4 | removeSelectedItems=Hapus item terpilih 5 | time=Waktu 6 | title=Judul 7 | domain=Domain 8 | historySearch.placeholder=Cari riwayat 9 | -------------------------------------------------------------------------------- /app/extensions/brave/locales/ms-MY/history.properties: -------------------------------------------------------------------------------- 1 | historyTitle=Sejarah 2 | history=Sejarah 3 | clearBrowsingDataNow=Buang data pelayaran 4 | removeSelectedItems=Buang item yang dipilih 5 | time=Masa 6 | title=Tajuk 7 | domain=Domain 8 | historySearch.placeholder=Sejarah carian 9 | -------------------------------------------------------------------------------- /app/extensions/brave/locales/ru/history.properties: -------------------------------------------------------------------------------- 1 | historyTitle=История 2 | history=История 3 | clearBrowsingDataNow=Очистить историю браузера 4 | removeSelectedItems=Удалить выбранное 5 | time=Время 6 | title=Заголовок 7 | domain=Домен 8 | historySearch.placeholder=История поиска 9 | -------------------------------------------------------------------------------- /app/extensions/brave/locales/tr-TR/history.properties: -------------------------------------------------------------------------------- 1 | historyTitle=Geçmiş 2 | history=Geçmiş 3 | clearBrowsingDataNow=Tarayıcı verilerini temizle 4 | removeSelectedItems=Seçili Öğeleri Kaldır 5 | time=Zaman 6 | title=Başlık 7 | domain=Alan 8 | historySearch.placeholder=Arama Geçmişi 9 | -------------------------------------------------------------------------------- /app/extensions/brave/locales/sl/history.properties: -------------------------------------------------------------------------------- 1 | historyTitle=Zgodovina 2 | history=Zgodovina 3 | clearBrowsingDataNow=Počisti podatke brskanja 4 | removeSelectedItems=Odstrani izbrane vnose 5 | time=Čas 6 | title=Naslov 7 | domain=Domena 8 | historySearch.placeholder=Zgodovina iskanja 9 | -------------------------------------------------------------------------------- /app/common/lib/randomUtil.js: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this file, 3 | * You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | module.exports.random = () => Math.random() 6 | -------------------------------------------------------------------------------- /app/extensions/brave/locales/de-DE/history.properties: -------------------------------------------------------------------------------- 1 | historyTitle=Verlauf 2 | history=Verlauf 3 | clearBrowsingDataNow=Browserdaten löschen 4 | removeSelectedItems=Ausgewählte Elemente entfernen 5 | time=Datum 6 | title=Titel 7 | domain=Domäne 8 | historySearch.placeholder=Verlauf durchsuchen 9 | -------------------------------------------------------------------------------- /app/extensions/brave/locales/bn-BD/history.properties: -------------------------------------------------------------------------------- 1 | historyTitle=ইতিহাস 2 | history=ইতিহাস 3 | clearBrowsingDataNow=ব্রাউজিং ডেটা মুছে ফেলুন 4 | removeSelectedItems=বাছাইকৃত জিনিসসমূহ অপসারণ করুন 5 | time=সময় 6 | title=শিরোনাম 7 | domain=ডোমেইন 8 | historySearch.placeholder=ইতিহাস অনুসন্ধান করুন 9 | -------------------------------------------------------------------------------- /app/extensions/brave/locales/cs/history.properties: -------------------------------------------------------------------------------- 1 | historyTitle=Historie 2 | history=Historie 3 | clearBrowsingDataNow=Smazat údaje o prohlížení stránek 4 | removeSelectedItems=Odstranit vybrané položky 5 | time=Čas 6 | title=Název 7 | domain=Doména 8 | historySearch.placeholder=Hledat v historii 9 | -------------------------------------------------------------------------------- /test/fixtures/adblock.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/extensions/brave/content/scripts/idleHandler.js: -------------------------------------------------------------------------------- 1 | chrome.idle.setDetectionInterval(15 * 60) 2 | chrome.idle.onStateChanged.addListener((idleState) => { 3 | chrome.ipcRenderer.send('dispatch-action', JSON.stringify([{ 4 | actionType: 'app-idle-state-changed', 5 | idleState 6 | }])) 7 | }) 8 | -------------------------------------------------------------------------------- /app/extensions/brave/locales/eu/history.properties: -------------------------------------------------------------------------------- 1 | historyTitle=Historia 2 | history=Historia 3 | clearBrowsingDataNow=Nabigatzailearen datuak ezabatu 4 | removeSelectedItems=Aukeratutakoak ezabatu 5 | time=Denbora 6 | title=Izenburua 7 | domain=Domeinua 8 | historySearch.placeholder=Historia bilatu 9 | -------------------------------------------------------------------------------- /less/addEditBookmark.less: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this file, 3 | * You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | .removeBookmarkLink { 6 | margin-right: auto; 7 | } 8 | -------------------------------------------------------------------------------- /app/adInsertion.js: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this file, 3 | * You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | 'use strict' 6 | 7 | module.exports.resourceName = 'adInsertion' 8 | -------------------------------------------------------------------------------- /app/extensions/brave/locales/nl-NL/history.properties: -------------------------------------------------------------------------------- 1 | historyTitle=Geschiedenis 2 | history=Geschiedenis 3 | clearBrowsingDataNow=Browsegegevens opruimen 4 | removeSelectedItems=Geselecteerde items verwijderen 5 | time=Tijd 6 | title=Titel 7 | domain=Domein 8 | historySearch.placeholder=Doorzoek geschiedenis 9 | -------------------------------------------------------------------------------- /app/extensions/brave/locales/pt-BR/history.properties: -------------------------------------------------------------------------------- 1 | historyTitle=Histórico 2 | history=Histórico 3 | clearBrowsingDataNow=Limpar dados do navegador 4 | removeSelectedItems=Remover itens selecionados 5 | time=Hora 6 | title=Título 7 | domain=Domínio 8 | historySearch.placeholder=Pesquisar histórico 9 | -------------------------------------------------------------------------------- /test/fixtures/iframe_target_parent.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | iframe.target.parent 5 | 6 | 7 | parent 8 |