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

Is there a way to intercept the entire redirect chain in popup? #77

Closed
Dry7 opened this issue Jan 9, 2018 · 5 comments
Closed

Is there a way to intercept the entire redirect chain in popup? #77

Dry7 opened this issue Jan 9, 2018 · 5 comments

Comments

@Dry7
Copy link

Dry7 commented Jan 9, 2018

When I click on a page http://getresto.gifts48.ru/1/

A window opens with the following redirect chain:

http://getresto.gifts48.ru/1/popup1.php
http://getresto.gifts48.ru/1/popup2.php
http://getresto.gifts48.ru/1/popup3.php
http://getresto.gifts48.ru/1/popup4.php
http://getresto.gifts48.ru/1/popup5.html
http://getresto.gifts48.ru/1/popup6.html
http://getresto.gifts48.ru/1/popup7.html
http://getresto.gifts48.ru/1/popup8.html

I'm trying to collect this chain with this code

https://gist.github.com/Dry7/6ef5d8e363eb8ee05d833ca5d72cc5dd

But the first three pages are missing.
How can I fix this?

One solution would be to use Target.setAutoAttach, but it is simply ignored.

@paulirish
Copy link
Member

See answer here: https://groups.google.com/forum/#!topic/chrome-debugging-protocol/n1FQ4Ypww6w

Target.setAutoAttach does not work on popups.
Unfortunately, currently there is no way to attach early enough to not miss first network requests. We are working on it though.

@Niek
Copy link

Niek commented Mar 13, 2019

+1 - as far as I can see it's not possible to work around this, I triedPage.waitForDebugger() and Network.setRequestInterception() without success.

@route
Copy link

route commented Dec 10, 2019

It's now huge pain to work with windows on Chrome. Especially when you write a test to handle Google OAuth which opens a new window and there's no chance to get in there because window is already closed before you can.

@TimvdLippe
Copy link
Contributor

This repository is related to Chrome DevTools Protocol, but does not track issues regarding its definition or implementation. If you want to file an issue for the Chrome DevTools Protocol, please open an issue on https://crbug.com under component: Platform>DevTools>Platform. Thanks in advance!

@Niek
Copy link

Niek commented Apr 14, 2020

Opened a bug report here: https://bugs.chromium.org/p/chromium/issues/detail?id=1070568

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

5 participants