New issue
Advanced search Search tips

Issue 734329 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Jan 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 3
Type: Feature



Sign in to add a comment

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



 
Labels: Needs-Triage-M59
Components: Platform>Extensions
Labels: -Type-Bug M-61 OS-Mac OS-Windows Type-Feature
Status: Untriaged (was: Unconfirmed)
Considering the above issue as feature request and marking it as untriaged.
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.)
Summary: Allow extensions to access selected text (was: Mouse baffer access foe extensions)
Revising summary line for clarity

Comment 5 by alexy...@gmail.com, 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.

Comment 6 by alexy...@gmail.com, Dec 14 2017

UP: not gvim but cVim.
Components: -Platform>Extensions Platform>Extensions>API
Okay, leaving as Untriaged so the extensions team will evaluate this request.
Labels: Needs-Feedback
[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.

Status: WontFix (was: Untriaged)
[Extensions triage] Closing due to lack of activity.

Sign in to add a comment