Allow extensions to access selected text
Reported by
alexy...@gmail.com,
Jun 17 2017
|
||||||
Issue description
Chrome Version : 59.0.3071.86
OS Version:
URLs (if applicable) :
Other browsers tested:
Add OK or FAIL after other browsers where you have tested this issue:
Safari 5:
Firefox 4.x:
IE 7/8/9:
This is feature request about getting access to mouse (middle button) buffer in nix-lie operating systems from Chrome's extension. There is a FireFox extension 'Vimperator', which can open a new tab, using muse buffer: you should only select a text, press a hotkey and a page with this address or an search engine with this request is loading. There is an extension for Chrome: cVim. It has the same functionality, but unfortunately not from mouse buffer. So, you should make nore actions: press Ctrl+C. I asked cVim's developer about using mouse buffer in his extension, he asked that he can not use it from js because of Chrome's limitations. So, may be that's possible to resolve this?
What steps will reproduce the problem?
1. Install cVim extension.
2. Select some text.
3. Press 'P'.
What is the expected result?
Address bar gets request from highlighted text and executes it, opening a page.
What happens instead of that?
Nothing happens.
Please provide any additional information below. Attach a screenshot if
possible.
UserAgentString: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36
,
Jun 19 2017
Considering the above issue as feature request and marking it as untriaged.
,
Dec 13 2017
Have you noticed that you can select text, right click, and in the context menu is a "Search for ..." or "Go to ..." link to search for / navigate to the selected text? Does that satisfy your needs? (No need to copy text and go to the omnibox and paste it and press enter.)
,
Dec 13 2017
Revising summary line for clarity
,
Dec 14 2017
>Does that satisfy your needs? No. It's far from the functionality I'm talking about. Look how does mouse buffer in unix-like systems works. Look how does vimperator or gvim work.
,
Dec 14 2017
UP: not gvim but cVim.
,
Dec 14 2017
Okay, leaving as Untriaged so the extensions team will evaluate this request.
,
Dec 15 2017
[Extensions triage] I think extensions can access the currently selected text on the web page using content scripts without any special extension apis. Example, they can use the window.getSelection() API. Does that not solve the use case? Or do you want extensions to be able to access the last selected text, even though it might not be currently selected text? Even for that there should be work arounds- https://stackoverflow.com/questions/3545018/selected-text-event-trigger-in-javascript.
,
Jan 26 2018
[Extensions triage] Closing due to lack of activity. |
||||||
►
Sign in to add a comment |
||||||
Comment 1 by ranjitkan@chromium.org
, Jun 19 2017