Bug in chrome.windows.create in Opera GX on Windows
-
asdfaoxvijzoxcv last edited by
I've identified an issue with chrome.windows.create in Opera GX when creating popup windows. This bug is affecting our Chrome extension's users who are on Opera GX. The same code works fine in Chrome, Edge and Brave.
When setting type:'popup' to hide the address bar and bookmarks, an invisible element appears to overlay the top portion of the page where these UI elements would normally be located, preventing interaction with that area while remaining visually transparent.
A sample API call to reproduce that is like so:
chrome.windows.create({ type : "popup", focused : true, url : 'chrome-extension://ID/html/page.html', width : 350, height : 350, });
This call goes inside your extension service worker. Then, in the page.html file, put a checkbox at the first line:
<input type=checkbox>
You will notice that checkbox is not interactive (clicking it does not toggle it). I found that increasing its padding-top to 27px or more fixes the issue.
The issue only happens on Windows (on macOS, the checkbox is interactive)