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

can load bookmark in tor tab before tor finishes loading #14680

Closed
diracdeltas opened this issue Jul 6, 2018 · 8 comments
Closed

can load bookmark in tor tab before tor finishes loading #14680

diracdeltas opened this issue Jul 6, 2018 · 8 comments

Comments

@diracdeltas
Copy link
Member

diracdeltas commented Jul 6, 2018

Test plan

See #14709

Original issue description

STR:

  1. open tor tab
  2. before Tor is done initializing, click on a bookmarked site in the bookmarks toolbar
  3. the site loads

expected result:
the site does not load until tor finishes initializing

@diracdeltas diracdeltas self-assigned this Jul 6, 2018
diracdeltas added a commit that referenced this issue Jul 10, 2018
Fix #14680

Test Plan:
1. open brave, turn on showing bookmarks toolbar and showing home button
   in about:preferences. bookmark some sites.
2. open tor tab and try to click on bookmarks before tor finishes
   loading. also try clicking on the home button and clicking the
   History > Home menu item.
3. these loads should be blocked until tor finishes initializing
@riastradh-brave
Copy link
Contributor

Just to be clear: Does this actually load without going through the Tor SOCKS proxy? If so, what is the mechanism by which it does that? We can merge #14709 but I would like to fix the root of the problem if there is a path by which in the profile/partition/context of a private tab with Tor we can ever bypass the proxy, ideally at the level of muon, rather than block stuff at a high level in browser-laptop like this.

In particular, if we just haven't processed the notification that tor is online yet, but the request still goes through the Tor SOCKS proxy, I don't think it's really a problem.

@diracdeltas
Copy link
Member Author

@riastradh-brave pretty sure it goes through the proxy, so the page loader spins indefinitely

@riastradh-brave
Copy link
Contributor

@diracdeltas Oh, so the problem is that the page loader interferes with the Tor progress indicator, not that this is a leak?

@LaurenWags
Copy link
Member

@diracdeltas @riastradh-brave question on this issue, the expected result seems to be “these loads should be blocked until tor finishes initializing”. In the terminal I see Blocking page load until Tor tab is initialized and nothing happens on the UI. Even after Tor is loaded, I have to click on the bookmark or home button again to get the page to load. Just want to confirm this is expected.

@diracdeltas
Copy link
Member Author

@riastradh-brave i thought it was a leak when i first opened it but then i couldn't repro it. 🤷‍♀️

@diracdeltas
Copy link
Member Author

@LaurenWags that's expected - the PR does nothing to retry the page load. it just blcoks it.

@LaurenWags
Copy link
Member

great, thanks for the confirmation @diracdeltas! 👍

@LaurenWags
Copy link
Member

LaurenWags commented Jul 11, 2018

Verified with macOS 10.12.6 using

  • 0.23.33 f3426e8
  • Muon 7.1.5
  • libchromiumcontent 67.0.3396.103

Verified on Ubuntu 17.10 x64

  • 0.23.37 47b1b59
  • Muon 7.1.6
  • libchromiumcontent 67.0.3396.103

Verified on Windows 10 x64

  • 0.23.37 47b1b59
  • Muon 7.1.6
  • libchromiumcontent 67.0.3396.103

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.