D
D
Dannic2020-03-16 13:53:29
JavaScript
Dannic, 2020-03-16 13:53:29

How to solve pop-up blocker issue in Firefox?

Such a problem. Authorization in VK (vk.auth.login). In chrome everything is fine, but in mozilla it does not work. The window immediately closes. After I removed the checkbox from cookies in the fox settings (so that it would not be tracked / blocked from third-party sites) - everything became normal. But how can this be done in JS? Automatically I think definitely not, but by asking the user you can? The question may not be well worded. The first time I just encounter this in Virgo.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Sokolov, 2020-03-16
@sergiks

When FF blocks a window that would otherwise appear, at the top of the window FF draws a yellow bar with a warning that, they say, blocked it, prevented trouble from happening, and a button through which you can allow this site to play around and open pop-up windows.
2019-11-03-07-40-02-5f32be.pngNo yellow stripe - there was no attempt to open the window.
The window will not even try to open unless window.open()it is a direct result of a user action: a mouse click, a button press on the keyboard.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question