Closed Bug 245688 Opened 21 years ago Closed 21 years ago

"Open link in tab" in context-menu on selected text containing URL

Categories

(SeaMonkey :: UI Design, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 199634

People

(Reporter: cedriccedric, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040514 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040514 This would be useful, when user select some text which looks like a web-link (but it is not a link). It is can be two menu items: "... in new Tab" and "... in new Window". Reproducible: Always Steps to Reproduce:
This is just a hint: in function nsContextMenu() http://lxr.mozilla.org/mozilla/source/browser/base/content/browser.js#2815 add this.isTextSelectedALink = false; attribute in initMiscItems : function(), add something like this.showItem( "context-openselect", this.isTextSelectedALink ); in initMenu, add a way to know if there is a selection (like in isTextSelection) this.isTextSelectedALink = this.isTextSelectionALink(); and use a regexp to look if it's a link (ftp|http)://... after that, add an extra item inside the xul popup menu.
FYI, this can already be done with extensions, like text/plain [http://extensionroom.mozdev.org/more-info/textplain]
*** This bug has been marked as a duplicate of 199634 ***
Severity: minor → enhancement
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Component: Selection → XP Apps: GUI Features
Resolution: --- → DUPLICATE
Summary: Feture request: add "open link in other tab" in popup-menu → "Open link in tab" in context-menu on selected text containing URL
Product: Core → Mozilla Application Suite
Component: XP Apps: GUI Features → UI Design
You need to log in before you can comment on or make changes to this bug.