You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I agree to follow the Code of Conduct that this project adheres to.
I have searched the issue tracker for an issue that matches the one I want to file, without success.
Issue Details
Top right part of BrowserView in frameless BrowserWindow is not clickable
Electron Version: 11.1.1 (broken with >= 11.0.4)
Operating System: Windows & Linux (tested on Windows 10 20H2, reported by a Linux Mint user)
Last Known Working Electron version: 11.0.3
Expected Behavior
Buttons in BrowserView should be clickable.
Actual Behavior
Buttons in BrowserView are not clickable.
To Reproduce
Replace main.js in electron-quick-start with the following code.
// Modules to control application life and create native browser windowconst{app, BrowserWindow, BrowserView}=require('electron')constpath=require('path')functioncreateWindow(){// Create the browser window.constmainWindow=newBrowserWindow({width: 800,height: 600,frame: false,webPreferences: {preload: path.join(__dirname,'preload.js')}})constview=newBrowserView({})view.webContents.loadURL('https://discordapp.com/login')mainWindow.setBrowserView(view)view.setBounds({x: 0,y: 0,height: 600,width: 800,})view.setAutoResize({width: true,height: true})// Open the DevTools.view.webContents.openDevTools({mode: 'detach'})}// This method will be called when Electron has finished// initialization and is ready to create browser windows.// Some APIs can only be used after this event occurs.app.whenReady().then(()=>{createWindow()app.on('activate',function(){// On macOS it's common to re-create a window in the app when the// dock icon is clicked and there are no other windows open.if(BrowserWindow.getAllWindows().length===0)createWindow()})})// Quit when all windows are closed, except on macOS. There, it's common// for applications and their menu bar to stay active until the user quits// explicitly with Cmd + Q.app.on('window-all-closed',function(){if(process.platform!=='darwin')app.quit()})// In this file you can include the rest of your app's specific main process// code. You can also put them in separate files and require them here.
Login with your Discord account. The top right part of the UI won't be clickable (see screenshot).
Downgrade to Electron 11.0.3 and it will work normally. Upgrade to Electron 11.0.4 and it will break.
Also, it seems like this only happens with certain websites. I attempted to create a simple HTML page with some buttons and they were all clickable. But somehow, this bug occurs with Microsoft Teams & Discord.
Preflight Checklist
Issue Details
Top right part of BrowserView in frameless BrowserWindow is not clickable
Expected Behavior
Buttons in
BrowserView
should be clickable.Actual Behavior
Buttons in
BrowserView
are not clickable.To Reproduce
Replace
main.js
inelectron-quick-start
with the following code.Login with your Discord account. The top right part of the UI won't be clickable (see screenshot).
Downgrade to Electron 11.0.3 and it will work normally. Upgrade to Electron 11.0.4 and it will break.
Screenshots
Additional Information
Likely to be regression of #26738
@codebytere
The text was updated successfully, but these errors were encountered: