Closed Bug 417688 Opened 17 years ago Closed 13 years ago

Add context menu to copy URL for attached links in events/tasks

Categories

(Calendar :: General, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: giermann, Assigned: merike)

Details

Attachments

(1 file, 1 obsolete file)

In Event/Task editing dialog and in Task preview (Lightning only), attached links are displayed as link and always browse to this link on click. A context menu should be added to be able to only copy the URL to clipboard or browse to this URL. This is a spin-off from bug 414537 comment #7.
Component: Internal Components → General
QA Contact: base → general
Assignee: nobody → gasell+mozilla
Attachment #545016 - Flags: review?(philipp)
Status: NEW → ASSIGNED
Attachment #545016 - Attachment description: adding context menu options → [after beta] adding context menu options
Comment on attachment 545016 [details] [diff] [review] [after beta] adding context menu options >+ var clipboard = Components.classes["@mozilla.org/widget/clipboardhelper;1"] >+ .getService(Components.interfaces.nsIClipboardHelper); Isn't there a Services.jsm helper for this maybe? Also, let instead of var. >+<!ENTITY event.attachments.popup.copy.label "Copy Link Location" > >+<!ENTITY event.attachments.popup.copy.accesskey "C" > If there is a toolkit string for this, maybe we can use that instead? > <!ENTITY event.attachments.popup.attachPage.label "Attach Webpageâ¦" > Be careful with UTF-8 in this file. >+<!ENTITY calendar.tasks.view.copylink.label "Copy Link Location"> >+<!ENTITY calendar.tasks.view.copylink.accesskey "C"> If there is no toolkit string, I think it should be sufficient to use one string for both menus. r=philipp
Attachment #545016 - Flags: review?(philipp) → review+
(In reply to Philipp Kewisch [:Fallen] from comment #2) > >+ var clipboard = Components.classes["@mozilla.org/widget/clipboardhelper;1"] > >+ .getService(Components.interfaces.nsIClipboardHelper); > Isn't there a Services.jsm helper for this maybe? Doesn't seem to be: http://mxr.mozilla.org/mozilla-central/source/toolkit/content/Services.jsm > >+<!ENTITY event.attachments.popup.copy.label "Copy Link Location" > > >+<!ENTITY event.attachments.popup.copy.accesskey "C" > > If there is a toolkit string for this, maybe we can use that instead? There is one in /browser and one in /mobile but not in toolkit. > > <!ENTITY event.attachments.popup.attachPage.label "Attach Webpageâ¦" > > Be careful with UTF-8 in this file. Um, it seems fine in https://bug417688.bugzilla.mozilla.org/attachment.cgi?id=545016? Anyhow it's not in the patch any longer. > >+<!ENTITY calendar.tasks.view.copylink.label "Copy Link Location"> > >+<!ENTITY calendar.tasks.view.copylink.accesskey "C"> > If there is no toolkit string, I think it should be sufficient to use one > string for both menus. Removed the other one.
Attachment #545016 - Attachment is obsolete: true
Attachment #584539 - Flags: review+
Keywords: checkin-needed
Pushed to comm-central <http://hg.mozilla.org/comm-central/rev/dfbe3fe97df9> -> FIXED
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → 1.5
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: