chromium pop-up blocking rules

80 views
Skip to first unread message

Gasan Guseinov

unread,
May 13, 2025, 12:11:37 PM5/13/25
to Chromium-dev
Hi all,

Could someone please tell me what are the rules that chromium uses to block the pop up or where I can find them in the source code. 

The reason I am asking is because I am contributing to a web-framework and would like to make a change that relies on google chrome allowing pop-up in asynchronous code which was initiated by user interaction.

Basically, when user clicks on a button, browser executes the following code:

```await something()
openPopUp()
```

I was experimenting with google chrome (and firefox) and I see that browser allows this.

Still, I would like to have some hard proof that browser explicitly allows this behavior. 
I looked into google chrome source code but couldn't find this logic.

Thank you.

K. Moon

unread,
May 13, 2025, 12:29:51 PM5/13/25
to gasgu...@gmail.com, Chromium-dev
In general, you should refer to the HTML standard when trying to figure out this sort of behavioral question, rather than trying to reverse engineer what Chrome does.


This blog article talks about Chrome 72's implementation of the spec: https://developer.chrome.com/blog/user-activation

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/55a7f4fb-373d-4cb9-afe8-1a614f79b12cn%40chromium.org.
Reply all
Reply to author
Forward
0 new messages