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

Extension does not work until I reload it but ONLY via the window I didn't open. #466

Open
Nakilon opened this issue Jun 22, 2024 · 2 comments
Assignees

Comments

@Nakilon
Copy link
Contributor

Nakilon commented Jun 22, 2024

The extension I need does not work until I reload it but only in the weird window that opens on its own.
image

I've unpacked the CRX of the extension to be able to access Instagram

          browser_options: {
            "disable-extensions-except" => "#{__dir__}/../chrome_extension",
            "load-extension"            => "#{__dir__}/../chrome_extension",
          },

I could ignore the second window and use my main window handle to open the chrome://extensions/?options=makgnifbifgfobblgpnfiffljgjfjhdi to "enable working in incognito mode", etc. and go on, but the Instagram does not open (net::ERR_NAME_NOT_RESOLVED) until I press the Reload icon on the extension page and only in that second window.

How do I properly switch to that window and can't it be just one?

UPD:

browser.windows.size
=> 0
@route
Copy link
Member

route commented Jun 29, 2024

Hmm that requires a research, I assume you run it in a non-headless mode right?

@Nakilon
Copy link
Contributor Author

Nakilon commented Jun 29, 2024

a non-headless mode right?

Right.

The problem itself is now out of my scope because Instagram is paywalling (based on IP, fingerprint or whatever) after several runs and I decided to not bother with the project. But the issue is real -- I tried several times to visit the page 1) without reload 2) with pressing the reload in one window 3) in another one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants