Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Websites opened with the middle mouse button in private browsing mode seem to not go through the proxy #313

Closed
tetsuhou opened this issue Aug 18, 2023 · 5 comments
Labels
type-bug Bug in code or behaviour

Comments

@tetsuhou
Copy link

tetsuhou commented Aug 18, 2023

Description

I usually use the Smart Proxy mode, and the Private Browsing Profile is set to Always Enable mode. After that, it seems that the websites opened with the middle button in the privacy window are not proxied.

Steps to Reproduce

  1. use the Smart Proxy mode, and the Private Browsing Profile is set to Always Enable mode
  2. open browser privacy window and search myip
  3. middle-click on any website where you can view ip

Expected outcome: proxy server ip
Actual outcome: actual ip

Which browsers did you test this on?

Firefox

Affected browser versions

116.0.3

Affected SmartProxy versions

1.3.0

Screenshots of the problems or steps to reproduce

No response

Any additional context

The same thing happens when using the right click to open a link in a new tab instead of using the middle button.

@tetsuhou tetsuhou added the type-bug Bug in code or behaviour label Aug 18, 2023
@salarcode
Copy link
Owner

I don't see any issue, firefox reuses the connection from previous tabs to send new requests, maybe that's caused confusion in your end?
Previous tabs might have connected differently.

Reopen this if you have more info to help reproducing the issue

@salarcode salarcode added the status-needs-info More information is needed label Dec 30, 2023
@tetsuhou
Copy link
Author

Sorry for the late reply, but in step 3, if you use the left-click to open the page, you can see the proxy server ip.

I think on the same tab, using the left-click or the middle-click to open the page should be the same proxy setting.

@tetsuhou
Copy link
Author

tetsuhou commented Jul 27, 2024

@salarcode
Sorry to keep bothering you with this.

I tried debugging the extension and found something that I don't know if it helps. It seems that when opening a link with the middle click, it will execute handleProxyRequest in ProxyEngineFirefox.ts once before calling TabManager to append the tabData, so the first time it executes handleProxyRequest, it can't find the tabData in TabManager.tabs, making it unable to set the Private Browsing Profile.

@salarcode salarcode reopened this Jul 27, 2024
@salarcode
Copy link
Owner

@salarcode Sorry to keep bothering you with this.

I tried debugging the extension and found something that I don't know if it helps. It seems that when opening a link with the middle click, it will execute handleProxyRequest in ProxyEngineFirefox.ts once before calling TabManager to append the tabData, so the first time it executes handleProxyRequest, it can't find the tabData in TabManager.tabs, making it unable to set the Private Browsing Profile.

Thanks, that might be a bug. I will check it later.

@salarcode salarcode removed the status-needs-info More information is needed label Jul 27, 2024
@salarcode
Copy link
Owner

salarcode commented Sep 17, 2024

I found the issue with the incognito logic and it is resolved now.
This also should work for incognito requests made by browser that are not associated with any tab.

Thank you for the detailed report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug Bug in code or behaviour
Projects
None yet
Development

No branches or pull requests

2 participants