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

Setting DefaultBackgroundColor on WebView2 affects Web add-ins #2856

Open
tiagoabreu opened this issue Oct 6, 2022 · 4 comments
Open

Setting DefaultBackgroundColor on WebView2 affects Web add-ins #2856

tiagoabreu opened this issue Oct 6, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@tiagoabreu
Copy link

tiagoabreu commented Oct 6, 2022

Description
We have a VSTO add-in that uses WebView2. Setting the DefaultBackgroundColor on the WebView affects any web add-in loaded later.

Version
SDK: 1.0.1293.44
Runtime: 105.0.1343.53
Framework: WinForms
OS: Win10 21H2

Repro Steps

  1. Install Web add-in that opens a simple page
  2. Run Sample add-in that sets a background color for the WebView (in this case, red)
  3. Verify the task pane created from the Sample add-in is open
  4. Open the Web add-in.
  5. Notice how the background is also red.

image
Notice how in the previous image the web add-in is red. That color was set by the VSTO add-in.

We provide a sample vsto add-in for Excel and a sample web-addin where the issue is easily verifiable.
The color is set in class Browser.designer.cs, line 38.

ExcelWebAddIn1Manifest.zip
SampleAddinWithWebView2.zip

@tiagoabreu tiagoabreu added the bug Something isn't working label Oct 6, 2022
@victorthoang
Copy link

@tiagoabreu thank you for your investigation,

@oggy22 will help to investigate this, and we will add it to our backlog to correct.

@tiagoabreu
Copy link
Author

@oggy22 Is there any update on this issue?

@oggy22 oggy22 removed their assignment Feb 9, 2023
@victorhuangwq
Copy link
Collaborator

@tiagoabreu are you still facing this issue?

@victorhuangwq victorhuangwq added the status-circle back Check back after requesting general information. label Jan 8, 2024
@tiagoabreu
Copy link
Author

No, because we applied a workaround where we created a background color for the web add-in, so if it happens it would not be noticeable.

But with the repro steps you should be able to figure out if the issue is still there.

@victorhuangwq victorhuangwq removed the status-circle back Check back after requesting general information. label Jan 23, 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
Projects
None yet
Development

No branches or pull requests

4 participants