Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

Kërkoni te Asistenca

Shmangni karremëzime gjoja asistence. S’do t’ju kërkojmë kurrë të bëni një thirrje apo të dërgoni tekst te një numër telefoni, apo të na jepni të dhëna personale. Ju lutemi, raportoni veprimtari të dyshimtë duke përdorur mundësinë “Raportoni Abuzim”.

Mësoni Më Tepër

Help debugging popup windows

  • 1 përgjigje
  • 1 e ka hasur këtë problem
  • 125 parje
  • Përgjigjja më e re nga jakob6

Not sure what the right place for this is; I wasn't able to find a Firefox support forum specifically for web developers. If anybody knows of a more appropriate forum, please let me know.

I'm trying to intercept the opening of a popup window from JavaScript, but I can't find any way to trigger the debugger on this condition, and I don't want to set the breakpoint manually because the source I'm working with is obfuscated and it would take a lot of work to track it down manually. I currently have Firefox 68 ESR, but I could upgrade if needed. Does any version of Firefox have a way to set a breakpoint on new tabs/windows opened from JavaScript, or is there a way to break on the `window.open` function which I suppose is what is being used?

Not sure what the right place for this is; I wasn't able to find a Firefox support forum specifically for web developers. If anybody knows of a more appropriate forum, please let me know. I'm trying to intercept the opening of a popup window from JavaScript, but I can't find any way to trigger the debugger on this condition, and I don't want to set the breakpoint manually because the source I'm working with is obfuscated and it would take a lot of work to track it down manually. I currently have Firefox 68 ESR, but I could upgrade if needed. Does any version of Firefox have a way to set a breakpoint on new tabs/windows opened from JavaScript, or is there a way to break on the `window.open` function which I suppose is what is being used?

Zgjidhje e zgjedhur

Well I prettified the source and discovered the popup was actually caused by a form element created and submitted from JavaScript. Still interested to hear if anybody knows how to intercept `window.open` popups though.

Lexojeni këtë përgjigje brenda kontekstit 👍 0

Krejt Përgjigjet (1)

Zgjidhja e Zgjedhur

Well I prettified the source and discovered the popup was actually caused by a form element created and submitted from JavaScript. Still interested to hear if anybody knows how to intercept `window.open` popups though.