New issue
Advanced search Search tips

Issue 903687 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Nov 12
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 3
Type: Bug



Sign in to add a comment

Javascript dialog from data: URL is not auto-dismissed on switching tab

Project Member Reported by ha...@opera.com, Nov 9

Issue description

Chrome Version: 72.0.3605.0
OS: Windows 7

What steps will reproduce the problem?
Create a page which spawns javascript alert dialogs from the main page and an iframe with a data: URL. e.g. page source

<!DOCTYPE html>
<iframe src="data:text/html,<script>alert('ifr');</script>an iframe page">/iframe>
<script>alert("main");</script>

Load the page from a server. First the alert from main page is shown. Now open a new tab to switch focus away without dismissing the dialog. Go back to original tab. It can be seen that the first alert has been auto-dismissed and now the second one from iframe is shown. Switch again to a different tab keeping the dialog. 

What is the expected result?
The second alert from data:URL is auto-dismissed.

What happens instead?
The dialog persists.

The same effect can be seen on a data: URL as top frame itself. 
Auto-dismiss of dialogs on switch-away (629964) should be applicable to these too, I think.
 
I see that the second dialog is dismissed if tab is switched away and another dialog is again triggered. Probably working as intended?
Components: Blink>WindowDialog
Status: WontFix (was: Untriaged)
alert dialogs no longer auto-dismiss. (They do unblock the page.)

Showing a second dialog dissmisses whatever dialog is up.

This is all intentional behavior.

Sign in to add a comment