-
Notifications
You must be signed in to change notification settings - Fork 975
regression - Clicking inside Extension Popup Dismisses Popup #10029
Comments
Also happens when you enable the extension for the first time and try to login. |
Same issue for Dashlane on Windows. 1Password works fine |
+1 from Twitter: https://twitter.com/waddlesplash/status/888410508730224640 |
Seeing this as well on a fresh install on Win10 x64. Please let me know if there's any useful debugging information I can add. |
This does not repro for me on the master branch. |
+1 happening to me as well. Brave: 0.17.19 |
This issue was introduced after 17.16 2d2ee2f |
Workaround until fixed: CTRL-ALT-h brings up the LastPass Vault |
I have the same problem. Any ETA on a fix? I will have to use a different browser until this is fixed, since I rely on Lastpass for all of my logins. |
Also had this problem after updating. For me I can still use my passwords because it autofills, but I cannot access any of the menu and I think it is not always saving new passwords. A massive hassle for anyone who uses LastPass exclusively for password management. Hope a fix is implemented ASAP! |
It's worth noting once you are automatically logged out of LastPass (as has just happened to me), this bug also prevents use of the login form in the popup, making it impossible to login and thus use LastPass at all. |
Some posts up someone suggested crtl alt h to load last pass vault. It works been my only workaround today. You can login that way |
@Trumpy Thanks, but unfortunately this does not seem to work on Linux. Perhaps because the ALT key is used by the desktop environment for window movement. However, I have noticed if you click a LastPass autocomplete icon on a website, while logged out, it will open a LastPass login form in a new tab. This didn't seem to log me in correctly, however that might just be my mistake. |
This is really unusual... when I go and do packaged builds (on Windows), this commit works: While this commit (the very next commit) fails: All I'm doing to package the builds is run:
This drops the executable at |
Disregard my last post- after testing again, it doesn't work in either case. Is it a problem with the extension itself? Unfortunately, unable to debug using: |
Because LastPass ships their own background page, the proper debugging URL is: chrome-extension://hdokiejnpimakedhajhdlcegeplioahd/background.html I also don't think this is a LastPass issue, since #10029 (comment) suggests Dashlane too. 1Password wouldn't be affected since they open their own Native Window over the top of Brave. |
After speaking with @kevinlawler, we came upon some rather key information. The core bit of logic in question is found here: onMouseDown (e) {
// TODO(bsclifton): update this to use eventUtil.eventElHasAncestorWithClasses
let node = e.target
while (node) {
if (node.classList &&
(node.matches('[class^="popupWindow"]') ||
node.classList.contains('contextMenu') ||
node.matches('[class*="extensionButton_"]') ||
node.classList.contains('menubarItem') ||
node.classList.contains('bookmarkHanger'))) {
// Middle click (on context menu) needs to fire the click event.
// We need to prevent the default "Auto-Scrolling" behavior.
if (node.classList.contains('contextMenu') && e.button === 1) {
e.preventDefault()
}
// Click event is handled downstream
return
}
node = node.parentNode
}
// Hide context menus, popup menus, and menu selections
windowActions.resetMenuState()
} At times. On the Release build of Brave, the <div class="_yfkq6x-o_O-_142fl4c" style="height: 459px; top: 42px; width: 352px; right: 1em;">
<webview tabindex="-1" src="chrome-extension://hdokiejnpimakedhajhdlcegeplioahd/extensionLogin.html" style="height: 457px; width: 350px;"></webview>
</div> This suggests to me that it may be something to do with Aphrodite; perhaps an optimization to cut-down on generated markup. @cezaraugusto @bsclifton? |
I think we're minifying classNames for release. https://github.com/Khan/aphrodite#minify-class-names |
…caused issues Fixes #10029 Auditors: @jonathansampson, @cezaraugusto, @kevinlawler
…caused issues Fixes #10029 Auditors: @jonathansampson, @cezaraugusto, @kevinlawler
Did you search for similar issues before submitting this one?
Yes
Describe the issue you encountered:
Extension popup windows are closing unexpectedly.
Platform (Win7, 8, 10? macOS? Linux distro?):
Windows 10 / Desktop
Brave Version (revision SHA):
dbc3c4d
Steps to reproduce:
Actual result:
The popup window closes
Expected result:
Focus is given to the input field.
Will the steps above reproduce in a fresh profile? If not what other info can be added?
N/A
Is this an issue in the currently released version?
No
Can this issue be consistently reproduced?
Yes
Screenshot if needed:
The text was updated successfully, but these errors were encountered: