-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to expand groups and open emails on inbox.google.com with f
#1307
Comments
Confirmed. Also, unfortunately #1167 doesn't fix it. |
I've only gotten so far as to establish that the selected element is not responding to |
Off topic (and not a solution to this problem)...
Other keys (like |
True, another approach is to switch into |
Does the element with the link hint have an event listener? |
Not sure. Unfortunately, I don't really know how to debug this kind of thing. This is your field of expertise, @mrmr1993. Here's the element: |
We show a link hint for it because it has
@smblott-github could you select that element again in developer tools and run this in the console? It will copy a JSON object listing all the event listeners of the selected element and its children to the clipboard. Hopefully there shouldn't be anything sensitive included, but obviously redact it if there is :) |
Thanks, @mrmr1993. The console: And the clipboard:
Redacting sensitive information proved unnecessary! It looks like all of the (When you open any of these handlers, you again see that these are attached to |
Ahh, I hate it when they do this. IMDb does the same for certain UI elements. I'll try some stuff out with IMDb, and if I have any success hopefully it'll transfer easily to Inbox. |
@mrmr1993, I can give you an Inbox invite if you need one. If you also need a device to activate it, just create a temporary account, that you would use for development, and I will activate it later today (probably in the evening). |
@z0rch I don't have a device to activate it on, so that would be amazing! I'll send the account details to the email address on your profile :) |
Copy me ([email protected]). I can try to activate it now.
Great thinking, @z0rch. |
Email sent. Thanks you guys! |
@mrmr1993. Do you need to verify/validate the account or something? (User name and password were copy-and-paste (and look right)). Also, I tried sending you an invite... |
Weird, it kicked me out of gmail and made me verify the account with a phone number. I presume that's because you logged in! It should work now. |
OK, @mrmr1993. You should be good to go: https://inbox.google.com/ |
Fab, thanks! :D :D |
It uses the Google JSAction library. I've pushed PR #1316 to enable link hints for The link hints overlap in inbox, so we need some way of
This is a hard problem. |
Excellent work, @mrmr1993.
Like this... So, with #1316, we're selecting two elements and two link hints:
The problem would be solved (would it not?) if we had a reason for filtering out the first of these. Can we detect that it won't respond to |
Unfortunately not; for me the link hint to click the circle (it acts as a checkbox) lies on top of the one for expanding the group. We should definitely be showing both of them, so this is an issue we'll have to resolve. This also happens on the "Add a subscription" button on theoldreader.com, so we can use this as another test case. |
Might #1252 help? |
Not really; since they're both in a very similar position, it's almost impossible to tell which activates which element even as we flick through them. |
OK. So, we have two problems:
For problem 1: Why are we activating these hints? Anything which we can actually click will be selected by one of the other XPath terms (will it not?). So we can solve this by just removing the We can see problem 2 here:
In this particular example (but not necessarily in all examples), either of those rules would do the right thing (I assume that opening the message is the right thing). (I've been wondering for some time if we need a file `hacks.coffee` for sites which don't play nicely. But I couldn't possibly say that out loud.) |
For
I expect the first and second types are most common, which is why we use it for link hints. The default link hints mode is so overloaded that it's hard to tell whether the third should be part of its remit. I suspect we shouldn't stop supporting the 2nd and 3rd cases just to stop the 4th from getting in the way.
I disagree; we can activate both using the mouse, so we should be able to do the same with Vimium. The issue we're actually seeing here is that we're showing a link hint for an element at a location where clicking won't act on that element. See here: The child element receives click events in the selected area, but for the rest of the bar they bubble to the parent. By subtracting the rects of all clickable children, we're left with places that clicking does activate the element's listener. Putting a link hint in one of these places instead stops the overlapping hints and removes the ambiguity; a win-win.
We could certainly do with some kind of 'experimental options' in the options page, to allow enabling more controversial fixes like #1167, #1211, etc. either per-URL or globally. I especially feel like #1167 should be available for those who want it — it fixes a lot of annoyances on a lot of sites — but is perhaps too risky to ship and run everywhere by default. I don't like the idea of site-specific hacks very much. In some cases they might prove the only option (#1295 specifically springs to mind) though. I suggest a |
This is good insight. |
From reading a bunch of comments, it sounds like the current workaround, without even requiring passkeys is to enter Insert mode, which will pass raw keystrokes to the page, which will allow f / i / whatever to pass through and control the underlying page. I find this an acceptable workaround on these sites, since I only hit i once to enter insert mode and then everything else is "Google-y". |
Suppose I have a group of conversations on Google Inbox:
I want to expand it, so I hit
f
:Finally I press
K
.Expected: Group is expanded (like on the picture below)
Actual: Group remains collapsed (just like on the first picture)
Same happens not only with groups, but with emails as well:
Nothing happens when I hit
E
.Kubuntu 14.10, Google Chrome 39.0.2171.71
b6125a2
I have no custom rules defined in vimium options.
The text was updated successfully, but these errors were encountered: