Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Intermittent Issues with Look Up selection #9627

Closed
jonathansampson opened this issue Jun 21, 2017 · 6 comments
Closed

Intermittent Issues with Look Up selection #9627

jonathansampson opened this issue Jun 21, 2017 · 6 comments
Assignees

Comments

@jonathansampson
Copy link
Collaborator

  • Did you search for similar issues before submitting this one?
    Yes

  • Describe the issue you encountered:
    From a user on Twitter:

In Brave, when highlighting word, right clicking, & selecting "Look Up", the result is frequently blank or another definition.

This issue was confirmed by both Brendan Eich and Brian Bondy.

  • Platform (Win7, 8, 10? macOS? Linux distro?):
    macOS

  • Brave Version (revision SHA):
    N/A

  • Steps to reproduce:

    1. Highlight a word
    2. Right click, select "Look Up"
  • Actual result:
    Results are often blank, or incorrect.

  • Expected result:
    Definition for the selected term should be shown.

  • 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?
    N/A

  • Can this issue be consistently reproduced?
    Yes

  • Relevant Source:

contextMenus.js#L966

const showDefinitionMenuItem = (selectionText) => {
  let lookupText = textUtils.ellipse(selectionText, 3)
  return {
    label: locale.translation('lookupSelection').replace(/{{\s*selectedVariable\s*}}/, lookupText),
    click: (item) => {
      webviewActions.showDefinitionForSelection()
    }
  }
}
@jonathansampson jonathansampson added this to the 0.19.x (Nightly Channel) milestone Jun 21, 2017
@cndouglas
Copy link

cndouglas commented Jun 21, 2017

+1 from me.

Related: #8554 (Show definition popup is misaligned).

I started seeing this problem with 0.15.0 (Chromium 58).

@lzmartinico
Copy link
Contributor

It's a problem with electron electron/electron#8905 for my Brave build, I get the same behaviour as described in Javan's last comment. It may be useful until Electron is fixed to call showDefinitionForSelection so as to populate the search bar in the dictionary app?

@bbondy bbondy self-assigned this Jul 18, 2017
@alexwykoff alexwykoff removed this from the 0.19.x (Developer Channel) milestone Jul 25, 2017
@bsclifton bsclifton added this to the Triage Backlog milestone Nov 27, 2017
@cndouglas
Copy link

Seems fixed. I cannot reproduce with Brave 0.20.30 on macOS 10.13.x. This may have been fixed with 0.18.x/0.19.x (around the same time as #8554).

@bsclifton
Copy link
Member

Closing as this appears fixed for me too 😄

@bsclifton
Copy link
Member

There is a similar issue (maybe this was what was reported):
#12695

This issue (linked) has exact steps to repro

@jonathansampson
Copy link
Collaborator Author

Appears to be working for me too.

@bsclifton bsclifton removed this from the Triage Backlog milestone Feb 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants