-
Notifications
You must be signed in to change notification settings - Fork 974
frontend changes for tor integration #12987
Conversation
app/filtering.js
Outdated
if (!ses || !origin) { | ||
return | ||
} | ||
ses.setTorNewIdentity(origin) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it seems easier to just do ses.setTorNewIdentity(url)
here instead of ses.setTorNewIdentity(origin)
since new identity is actually set by host in Muon, not origin: brave/muon@7e052dd#diff-df5c427fd693f9ebb2e5952cf0e9c8c7R744
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just fixed in 9048d8a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
btw, the correct value should be SiteInstance
brave/muon@c3d6769#diff-df5c427fd693f9ebb2e5952cf0e9c8c7R749
2913a0e
to
70cc549
Compare
rebased against master |
cfb5b7a
to
f9dc263
Compare
Codecov Report
@@ Coverage Diff @@
## master #12987 +/- ##
==========================================
- Coverage 56.45% 56.31% -0.15%
==========================================
Files 284 284
Lines 29361 29516 +155
Branches 4877 4912 +35
==========================================
+ Hits 16576 16621 +45
- Misses 12785 12895 +110
|
Support isolated_storage and tor_proxy requires brave/muon#473 Use Session::IsOffTheRecord to detect private tab requires brave/muon@edad1b2 Set Tor new identify fix #12997 requires brave/muon@7e052dd Session::IsOffTheRecord for app/filtering Refresh page after getting new identity requires brave/muon@c3d6769 implement switch Tor Private Tabs in about:newtab set isTor depending on tor private tab setting and tor availability close/re-open private tab when tor switch is toggled Recreate tor private tab at the same index it was previously at always enable new identity button for now Disable search suggestions in private mode for Tor Fix #13064 set ddg as default search engine in tor private tabs fix #13212 Disable webtorrent in tor private mode fix #13063 load favicons in Tor tabs as data: URLs fix #13065 Omit unlocked icon for HTTP onion sites Fix #12990 also fix unittests Test Plan: 1. go to http://3expgpdnrrzezf7r.onion/ in a private tab 2. no icon should be in the urlbar 3. go to https://3g2upl4pq6kufc4m.onion/ 4. you should see a lock icon disable webrtc in tor mode fix #13397 add note to shields panel about breakage in tor mode Tor binary path will be passed from browser-laptop (#13455) Disable widevine notification on Tor tabs 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 disable plugins in Tor private tabs Workaround browser-context-created not being emitted for tor tabs Disable flash click to play on tor tabs TODO: figure out a way to disable widevine on a per-tab basis Test Plan: 1. ensure flash is installed and enabled in preferences 2. go to https://get.adobe.com/flashplayer/about/ 3. make sure there is no popup asking you to run flash 4. right click on the flash click-to-play element (looks like a puzzle piece) on the page. no context menu should appear. deny geolocation in tor mode fix #13447 implement new tor tabs mockup fix #12922 implement new Tor New Identity UX fix #13658 Test Plan: 1. open new private tab 2. go to check.torproject.org and open shields 3. click 'new circuit' button in shields 4. it should reload the page and show a new IP 5. open shields again, click the info circle next to 'new circuit' 5. it should open a FAQ page Bundling tor with Brave Set the tor socks port and data directory. (#13641) Pass the port and data directory down for tor to use depending on channel bind tor new circuit to hard refresh in tor tabs fix #13925 upgrade to muon 6.1.0 for tor API support
0.23.x rebase: https://github.com/brave/browser-laptop/tree/tor/0.23.x the only non-obvious thing about the rebase is that it will by default lose the Tor onion URL unit tests. you can cherry pick 1bd0041 to re-add them. |
Also, do it to the binary, not to the zip file, on Windows. Not sure how this worked before! Maybe the file got truncated rather than replaced? Auditors: @diracdeltas @jumde Test Plan: Launch Brave. New private tab. Turn on Tor. Visit https://check.torproject.org and confirm Tor is working.
to reduce delay when opening the tor private tab, in preparation for moving tor initialization to startup. Auditors: @darkdh
tools/package_tor.js
Outdated
fs.createReadStream(torBinary).pipe(unzip.Extract({ path: torPath })) | ||
} | ||
// make it executable | ||
fs.chmodSync(torBinary, 0o755) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works (still) on mac
@jumde could you check windows?
Muon 6.1 has safe browsing code, disabling safe browsing explicitly
closing this in favor of #14143 |
requires brave/muon#473
requires brave/muon#470
requires brave/muon#476
fix #12235
fix #1185
fix #8224
fix #12997
fix #13064
fix #13212
fix #13065
fix #12990
fix #13396
fix #13447
fix #12922
fix #13658
fix #13925
Test plans
Basic functionality
Enable/disable
Issue 12990
Issue 13347
Plugins
piece) on the page. no context menu should appear.
Favicon leak
data:
URL instead ofhttps://bing.com...
.Search autocomplete
WebRTC
WebTorrent
New circuit
cc @riastradh-brave @darkdh