Skip to content

[Bug]: Setting the BackgroundColor to the BrowserView doesn't work on Windows #30700

Closed as not planned

Description

@weifeiyue

Preflight Checklist

Electron Version

13.2.2

What operating system are you using?

Windows

Operating System Version

Windows 10

What arch are you using?

ia32

Last Known Working Electron version

No response

Expected Behavior

BackgroundColor to the BrowserView is ok

Actual Behavior

BackgroundColor to the BrowserView is not working

Testcase Gist URL

https://gist.github.com/weifeiyue/3ddde0d19ce942957af6983049fa2764

Additional Information

const { app, BrowserView, BrowserWindow } = require('electron')

app.on('ready', () => {
  const win = new BrowserWindow({ width: 1000, height: 600 })

  const view1 = new BrowserView()
  win.addBrowserView(view1)
  view1.setBackgroundColor('#FFFFFF')
  view1.setBounds({ x: 0, y: 0, width: 800, height: 600 })
  view1.webContents.loadURL('https://electronjs.org')

  const view2 = new BrowserView()
  win.addBrowserView(view2)
  view2.setBackgroundColor('#FFFFFF')
  view2.setBounds({ x: 200, y: 0, width: 800, height: 600 })
  view2.webContents.loadURL('https://design.google/')
})

WX20210826-004703@2x

Activity

  1. changed the title [-][Bug]: BackgroundColor to the BrowserView doesn't work on Windows[/-] [+][Bug]: Setting the BackgroundColor to the BrowserView doesn't work on Windows[/+] on Aug 25, 2021
  2. codebytere commented on Aug 26, 2021

    @codebytere
    Member

    @weifeiyue can we please get a proper gist?

  3. weifeiyue commented on Aug 27, 2021

    @weifeiyue
    Author

    @codebytere ok,i have updated

  4. self-assigned this
    on Aug 27, 2021
  5. codebytere commented on Sep 6, 2021

    @codebytere
    Member

    Closed by #30777

  6. weifeiyue commented on Sep 16, 2021

    @weifeiyue
    Author

    Closed by #30777

    This did not fix my problem @codebytere

  7. weifeiyue commented on Sep 28, 2021

    @weifeiyue
    Author

    @samuelmaddock
    can you help me?

  8. samuelmaddock commented on Oct 1, 2021

    @samuelmaddock
    Member

    I'm unable to reproduce this with v13.2.2 on an x64 device, but I haven't been able to test ia32. I'll reopen for now.

  9. weifeiyue commented on Oct 12, 2021

    @weifeiyue
    Author

    @samuelmaddock i have update the demo & gist , you can check it out, it is not ok in x64 or ia32

  10. github-actions commented on Oct 5, 2022

    @github-actions
    Contributor

    This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!

  11. github-actions commented on Nov 5, 2022

    @github-actions
    Contributor

    This issue has been closed due to inactivity, and will not be monitored. If this is a bug and you can reproduce this issue on a supported version of Electron please open a new issue and include instructions for reproducing the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions