attaching to popup window before it starts downloading/running

38 views
Skip to first unread message

sir...@gmail.com

unread,
May 11, 2018, 5:17:36 PM5/11/18
to chrome-debugging-protocol
Hi

I am successfully attaching to my main window, that I create, and setting things up before it starts running.

But when my main window happens to create a popup (with window.open, or in a link with target="_blank"), the only way I see to be notified is via Target.targetCreated, and then it is too late for me to attach and doing my setup *before* the page loads.

There is Target.setAutoAttach but according to this thread it doesn't work for popups.

Is there any way to attach to a popup before it loads? maybe some way to have "every new target starts with the debugger paused"? Or anything at all? 

thanks a lot!

fang jinxu

unread,
Aug 15, 2018, 2:47:14 AM8/15/18
to chrome-debugging-protocol
Hi, I get the same problem. have you been fixed it?
Reply all
Reply to author
Forward
0 new messages