Forum Discussion
How to disable popup "The webpage you are viewing is trying to close the tab"?
Gurmeet0107 Can you confirm if these repro steps are similar to your scenario?
- Start with a tab that is loading in "MS Edge mode" (non-IE mode tab)
- Execute a window.open() call to a site that will load in IE mode
- The new window does show to be loading in IE mode
- In this new IE mode window execute a window.close() call
- After code is run users will see the prompt
The scenario works as expected with no prompting in following scenarios:
- In standalone IE11.
- If both windows for above repro load in "MS Edge mode" (non-IE mode tabs).
- If both windows for above repro load in IE mode.
-Kelly
- Kelly_YJun 13, 2022
Microsoft
Gurmeet0107 Hello! We do have this issue in our backlog but no ETA for the fix. There is a lot of work needed to fix.
One workaround suggested is to renavigate the jump page via script (using window.open targeted at _self) prior to attempting its closure, it counts as a script-initiated window and no longer prompts in IE mode. And the other workaround which you know, is to click through the dialog manually.
Can you share how important this issue is and any impact? I can pass this information on to the team. Thanks!
-Kelly
- Gurmeet0107Jun 14, 2022Copper ContributorKelly_Y Hello!! Thanks you for your response. So currently we are manually clicking the dialog as a workaround. The impact is low but it adds an extra click everytime application is launched by business users.
- Kelly_YJun 14, 2022
Microsoft
Gurmeet0107 Thanks! I've passed this along to our developers. Please take a look at the workaround to see if it is a possible mitigation. If there are any updates regarding a fix we will follow up.
-Kelly