Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

External applications started from WebView2 (like Zoom) are displayed under WebView2 icon group #3245

Closed
q71114 opened this issue Feb 28, 2023 · 24 comments
Assignees
Labels
bug Something isn't working tracked We are tracking this work internally.

Comments

@q71114
Copy link

q71114 commented Feb 28, 2023

Description
Any external applications started from WebView2 are displayed under the WebView2 icon group instead of its own icon group.

Version
SDK: 1.0.1671-prerelease
Runtime: Evergreen, 110.0.1587.57
Framework: WPF
OS: Win11

Repro Steps

  1. Create a MSIX installer for WebView2WpfBrowser sample app
  2. Install and start the app
  3. Make sure zoom is not running
  4. Open a zoom link

Expected: Zoom is opened with its own icon group
Actual: Zoom is opened under WebView2WpfBrowser instead.

Screenshots
image
image

Additional context
This is a regression as it was working fine in version 107.0.1418.26 and seems to be broken since 109.0.1518.78. I haven't checked the versions between those two.

AB#44146549

@q71114 q71114 added the bug Something isn't working label Feb 28, 2023
@novac42
Copy link
Contributor

novac42 commented Mar 1, 2023

Thanks for reaching out. I've assigned this to a dev that can help follow up on this.

@q71114 q71114 changed the title External applications started from WebView2 (like Zoom) are display under WebView2 icon group External applications started from WebView2 (like Zoom) are displayed under WebView2 icon group Mar 1, 2023
@plantree
Copy link
Contributor

plantree commented Mar 8, 2023

Hi @q71114,

Did you mean, you open a Zoom link in WpfBrowser and the Zoom process is running under it, instead of independently?

@q71114
Copy link
Author

q71114 commented Mar 8, 2023

Hey @plantree,

Yes, the expected behavior is to have the Zoom process appearing under its own icon group in the taskbar.

@plantree
Copy link
Contributor

Hi @q71114,

It seems that open zoom link just opens a new window, not the local application. Is it?

@q71114
Copy link
Author

q71114 commented Mar 13, 2023

Hey @plantree

It does open the local application, it's just displayed under the wrong icon group. See the screenshot I attached.

@plantree
Copy link
Contributor

Hi @q71114,

  1. Could you check the property of Zoom process?

  2. And if it is convenient, could you uninstall Zoom to check?

@q71114
Copy link
Author

q71114 commented Mar 15, 2023

  1. Which property are you interested in?
  2. The issue remains after zoom is uninstalled / reinstalled.

Note: This is NOT a Zoom issue, we have user reports about the same issue with other applications like: Word, PowerPoint, Roblox. Also as I mentioned in the bug report this was working fine in version 107.0.1418.26 and before.

@plantree
Copy link
Contributor

Hi @q71114,

  1. Right click the process, and we can see Properties, like:

image

  1. Uninstall Zoom is to check whether a local application or a new webpage is opened.

If it's possible, could you provide a simple .exe to reproduce the issue? Thanks.

@q71114
Copy link
Author

q71114 commented Mar 16, 2023

We hung up on Zoom unnecessarily but it's irrelevant because it happens with any other apps as well. Let me give you another example with Excel.

This problem can only be reproduced with installed application.
You can use a test installer I built for that you need to add this self signed certificate I created.
If you don't want to do that, then build your own installer using this branch with your own certificate.

Steps to reproduce

  1. Install the provided or built installer.
  2. Make sure Excel is not running
  3. Start the installed app
  4. Download this sample excel file from the installed app
  5. Open the downloaded excel file from the Downloads dialog
    image
  6. Excel icon appears under the icon group of the installed app instead of its own icon group
    image
  7. Open any excel file now and it will appear under the same icon group instead of its own icon group
    image

@plantree
Copy link
Contributor

Hi @q71114,

Thanks for your materials!

I saw your examples and it seems that it is based on official samples. For convenience, I ran directly with the local WPF sample application and the excel file was opened in an individual icon group. Just like this:

image

I'll try to build the installer with my own signed certificate, and if it's convenient for you, can you check if the original sample apps are working properly?

@q71114
Copy link
Author

q71114 commented Mar 22, 2023

I saw your examples and it seems that it is based on official samples. For convenience, I ran directly with the local WPF sample application and the excel file was opened in an individual icon group. Just like this:

Did you test with an installed WPF app? It's only reproducible with an installed app.
If so did you make sure that Excel wasn't running before you started the test?

can you check if the original sample apps are working properly?

It seems to be a WiX project for the C++ sample app, so a bit different than what I linked, but I can give it a try.

@Shangminx
Copy link
Contributor

Hi @q71114 , I reproduced this issue. Yes, the excel icon is displayed under the webview2 app icon exactly. But I don't think it is an issue about webview2. Because you can run the exe file(under WindowsApps folder) directly, and find the subprocess icon displayed correctly.
Three process view in Process Explorer:
image
I think it is a mechanism of MSIX package. According to https://learn.microsoft.com/en-us/windows/msix/overview, The MSIX app process and its child processes run inside the container and are isolated using file system and registry virtualization.

@q71114
Copy link
Author

q71114 commented Apr 11, 2023

Hi @Shangminx,

I disagree about this not being a WebView2 issue because it was working fine in version 107.0.1418.26 and seems to be broken since 109.0.1518.78. You can check it by trying the same thing using a packaged WebView 107.0.1418.26 and it should work properly.

@Shangminx Shangminx added the tracked We are tracking this work internally. label Apr 12, 2023
@Shangminx
Copy link
Contributor

@q71114 , I'm investigating this. I think it's related to the package identity(AppUserModelID) of subprocess inheriting.

@pdolanjski
Copy link

@Shangminx, are there any updates on this? We're getting many user complaints that this bug breaks navigation via the taskbar in Windows since many apps are forced into one icon group.

@Shangminx
Copy link
Contributor

@pdolanjski , We have already found a workaround for this. This item is tracked in our backlog. Will fix it soon.

@pdolanjski
Copy link

Could you please update us on the status, @Shangminx / @victorhuangwq ? When can we expect the fix to land?

This bug is completely breaking the ability for many users to use our app, because if you close the instance of our app, but another app (like Zoom) is still open and erroneously grouped in with our app's icon, then clicking our app's icon in the taskbar doesn't actually launch our app. See the attached example:
WebViewIconIssue

This is causing users to think our app is broken, or they are forced to close all windows under our app's icon (which is confusing since the other grouped in icons aren't our app at all).

@Shangminx
Copy link
Contributor

@q71114 @pdolanjski , I checked in the fix to canary version last week. You can use the canary runtime to test it.

@lezzi
Copy link

lezzi commented Sep 18, 2023

Hi @Shangminx, I tested the latest Canary today, looks like there is a good improvement overall, but regression for Zoom is still there. Let me share below the tests I did:

  • Canary 119.0.2108.0 (latest)
    • Excel (open file) - ✅works properly (fixed).
    • Teams (install) - ✅works properly (fixed).
    • Discord (install) - ✅works properly (fixed).
    • Zoom (join meeting) - 🟥 still shows as a subprocess under the same taskbar icon (not fixed), a regression compared to the 107.0.1418.26 runtime.
  • Evergreen 116.0.1938.81
    • 🟥 All mentioned apps don't work as expected and are displayed under the same taskbar icon.
  • Old 107.0.1418.26
    • ✅ All mentioned apps work properly and are displayed under their own taskbar icons.

For tests, I used the steps from the #3245 (comment) and pointed the app to different runtimes (a test app must be packaged and installed).
image

@Shangminx
Copy link
Contributor

@lezzi , I will checkin a fix soon for opening an external app like zoom.

@pdolanjski
Copy link

@Shangminx should we expect the fix for zoom coming soon?

@Shangminx
Copy link
Contributor

@pdolanjski yes, my fix code is in PR.

@Shangminx
Copy link
Contributor

@pdolanjski @lezzi , I checked in the fix PR, you can test it in canary env.

@pdolanjski
Copy link

pdolanjski commented Nov 21, 2023

Thank you, @Shangminx.

We re-tested Zoom, Discord, Teams, and Adobe PDF reader and they all work as expected now (same as prior to the regression).

Given this regression has been present in Stable since February, can we expect a cherry pick to Stable? (cc @nishitha-burman )

@champnic champnic closed this as completed Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tracked We are tracking this work internally.
Projects
None yet
Development

No branches or pull requests

9 participants