-
Notifications
You must be signed in to change notification settings - Fork 975
url being selected in new tab when open tabs via external links #12094
Comments
Looks fixed on 0.19.102 on Windows. Needs to be verified other OS |
Is this related to #11796 ? |
Confirmed this works great on C62 using 0.19.x (basically, I reverted to Muon 4.5.16 and it works great) This does appear to be C63 related |
Here's what some investigation has uncovered: Both before and with C63, the url bar does get focused and the selected text made active. Then after some time, the page loads and the webview steals focus away from the urlbar. The reason why the pre-C63 version does not have its text selected during this phase, is that the url bar changes to the new tab, and focuses itself due to the state being set to be selected when a frame is created, whilst the url is set to blank, before the frame gets a url. However, the C63 version always has a Url, from the time the urlbar is first switched to the new tab / frame. So when it calls focus() on itself, it does so with text, which gets selected. We can keep digging and find out why the C63 version has a However, I'd say the risk of breaking something else is fairly high as it's difficult to see all the intended code paths for urlbar focus and selection. |
Seems like the muon tab event |
Thanks for the investigation, @petemill 😄 👍 The issue described in the original post is definitely not happening anymore (I also verified and @srirambv reports above). When testing, I used the following URL which opens a new tab using target="_blank" The URL behavior itself could be better- but I think we could tackle that with some refactoring 😄 Given the above, I'm going to close the issue as the original reported issue no longer reproduces |
@bsclifton this is still reproducible with |
I see it too @kjozwiak and note that we were confused - the original description and STR does not mention that the focus is stolen permanently, but I also see it in very similarly in 0.19.106 / muon 4.5.16. The timing may be a bit different but the result is the same, on both 0.19.x and 0.19.x+C63, the url bar is focused before the new foreground tab is finished loading - would you agree? Sometimes this results in the URL being selected and focus returned to the loaded page, sometimes it results in something worse: the URL bar steals focus, but the URL bar is always focused (even without the text being selected). |
I get this behavior on Linux. New tabs opened from links have focus in the URL bar. It's very annoying. Version information (from Help->About Brave): Brave: 0.23.19 |
Description
When clicking on external links, the URL is being selected in the new tab while the page is being loaded.
Steps to Reproduce
0.19.101
which includes C63Actual result:
URL is being selected in the new tab that's being opened.
Expected result:
URL shouldn't be selected in the new tab when clicking on external links. In the latest
0.19.95
released build, the URL isn't being selected.Reproduces how often:
100% reproducible using the above STR.
Brave Version
about:brave info:
Reproducible on current live release:
Not reproducible with
0.19.95
which is the latest release build.Additional Information
The text was updated successfully, but these errors were encountered: