After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 690062 - Cleanup context menus
Cleanup context menus
Status: RESOLVED FIXED
Product: epiphany
Classification: Core
Component: Interface
git master
Other Linux
: Normal normal
: ---
Assigned To: Epiphany Maintainers
Epiphany Maintainers
polish
: 549930 708537 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-12-11 19:14 UTC by Diego Escalante Urrelo (not reading bugmail)
Modified: 2013-12-17 15:53 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
menus: cleanup EphyDocumentPopup (3.63 KB, patch)
2012-12-11 20:09 UTC, Diego Escalante Urrelo (not reading bugmail)
none Details | Review
menus: add an image specific context menu (2.21 KB, patch)
2012-12-11 20:09 UTC, Diego Escalante Urrelo (not reading bugmail)
none Details | Review
menus: reorder image items in all popups (1.79 KB, patch)
2012-12-11 20:09 UTC, Diego Escalante Urrelo (not reading bugmail)
none Details | Review
menus: improve Open Image label (865 bytes, patch)
2012-12-11 20:09 UTC, Diego Escalante Urrelo (not reading bugmail)
none Details | Review
menus: remove redundant OpenLink action (3.26 KB, patch)
2012-12-11 20:09 UTC, Diego Escalante Urrelo (not reading bugmail)
none Details | Review
menus: remove redundant Download link action (4.55 KB, patch)
2012-12-11 20:09 UTC, Diego Escalante Urrelo (not reading bugmail)
none Details | Review
menus: cleanup menus (13.52 KB, patch)
2012-12-12 15:00 UTC, Diego Escalante Urrelo (not reading bugmail)
none Details | Review
Cleanup context menus (14.56 KB, patch)
2012-12-12 17:58 UTC, Diego Escalante Urrelo (not reading bugmail)
none Details | Review
Remove unused popup menus (2.98 KB, patch)
2013-12-15 14:24 UTC, William Jon McCann
committed Details | Review
Cleanup context menus (11.87 KB, patch)
2013-12-15 14:24 UTC, William Jon McCann
committed Details | Review

Description Diego Escalante Urrelo (not reading bugmail) 2012-12-11 19:14:11 UTC
Review and cleanup context menus:

Empty space in page:
=====
Back
Forward
Reload
-
Add bookmark
-
Send link by email
-
Inspect element


Right click on link:
=====
Open link
Open link in new tab
Open link in new window
-
Download link
Save link as
Add bookmark
Copy link URL
-
Inspect element


Right click on a image:
=====
Back
Forward
Reload
-
Add bookmark (from page context menu)
-
Open image
Save image as
Use image as background
Copy image's URL
-
Send link by email (from page context menu)
-
Inspect element


Right click on linked image:
=====
Open link
Open link in new tab
Open link in new window
-
Download link
Save link as
Add bookmark
Copy link URL
-
Open image
Save image as
Use image as background
Copy image's URL
-
Inspect element
Comment 1 Diego Escalante Urrelo (not reading bugmail) 2012-12-11 20:09:35 UTC
Created attachment 231300 [details] [review]
menus: cleanup EphyDocumentPopup

Remove "Add Bookmark", and move "Send link by email" to the gear menu.
Comment 2 Diego Escalante Urrelo (not reading bugmail) 2012-12-11 20:09:39 UTC
Created attachment 231301 [details] [review]
menus: add an image specific context menu

If we reuse the Document popup we get lots of irrelevant actions.
Comment 3 Diego Escalante Urrelo (not reading bugmail) 2012-12-11 20:09:42 UTC
Created attachment 231302 [details] [review]
menus: reorder image items in all popups

Prioritize "Save image as", and "Copy image address".
Comment 4 Diego Escalante Urrelo (not reading bugmail) 2012-12-11 20:09:46 UTC
Created attachment 231303 [details] [review]
menus: improve Open Image label

Make it Open in Image Viewer.
Comment 5 Diego Escalante Urrelo (not reading bugmail) 2012-12-11 20:09:50 UTC
Created attachment 231304 [details] [review]
menus: remove redundant OpenLink action

Assume that users right-clicking a link, know how a link behaves when
clicked.
Comment 6 Diego Escalante Urrelo (not reading bugmail) 2012-12-11 20:09:54 UTC
Created attachment 231305 [details] [review]
menus: remove redundant Download link action

Only leave "Save link as" in the menu.
Comment 7 Diego Escalante Urrelo (not reading bugmail) 2012-12-12 15:00:26 UTC
Created attachment 231376 [details] [review]
menus: cleanup menus

- Add an image specific context menu. If we reuse the Document popup we
  get lots of irrelevant actions.
- Reorder image items: prioritize "Save image as", and "Copy image
  address".
- Only show "Inspect Element" on control+right-click.
- Move context menu "Send link by email" to the gear menu.
- Rename "Open Image" to "Open in Image Viewer".
- Remove redundant "Open Link" action.
- Remove redundant "Download Link" action.
- Remove "Add Bookmark" from context menu.

---

After discussing with lapo, he suggested hiding InspectElement unless
control+right-click is used.
Comment 8 William Jon McCann 2012-12-12 15:21:04 UTC
Overall looks nice. A couple of comments.

 * In Files we use "Set as Wallpaper" to avoid confusion about what background is meant.

 * Perhaps we should have "Select All" in the page context menu.

 * Open in Image Viewer should probably say "Open in APPNAME"

 * The menu on page background looks a bit sad and small... dunno.
Comment 9 Diego Escalante Urrelo (not reading bugmail) 2012-12-12 17:58:46 UTC
Created attachment 231399 [details] [review]
Cleanup context menus

- Add an image specific context menu. If we reuse the Document popup we
  get lots of irrelevant actions.
- Reorder image items: prioritize "Save image as", and "Copy image
  address".
- Make "Open Image", "Open with %AppName".
- Only show "Inspect Element" on control+right-click.
- Move context menu "Send link by email" to the gear menu.
- Rename "Set Image as Background" to "Set as Wallpaper", like in
  Nautilus.
- Remove redundant "Open Link" action.
- Remove redundant "Download Link" action.
- Remove "Add Bookmark" from context menu.

---

This considers Jon's comments, except for SelectAll.

Re: SelectAll I think it might not be so useful because of the nature of
websites being not only content text but also navigation links, login
names, action links, etc.
All these items being text and thus making SelectAll much less useful
than in a text editor or textarea (where it already is).
Comment 10 William Jon McCann 2013-12-15 14:24:50 UTC
Created attachment 264220 [details] [review]
Remove unused popup menus

Removed in the port to WebKit2
Comment 11 William Jon McCann 2013-12-15 14:24:58 UTC
Created attachment 264221 [details] [review]
Cleanup context menus
Comment 12 William Jon McCann 2013-12-15 14:33:13 UTC
*** Bug 708537 has been marked as a duplicate of this bug. ***
Comment 13 William Jon McCann 2013-12-15 15:25:41 UTC
*** Bug 549930 has been marked as a duplicate of this bug. ***
Comment 14 Gustavo Noronha (kov) 2013-12-17 14:55:47 UTC
Review of attachment 264220 [details] [review]:

dead data
Comment 15 Gustavo Noronha (kov) 2013-12-17 15:10:57 UTC
Review of attachment 264221 [details] [review]:

I used to use download link a lot, but I guess I can live without it with the patch to automatically close tabs when they're created just for downloading.

::: src/ephy-window.c
@@ +1805,3 @@
+		if (!is_image)
+		{
+			add_action_to_context_menu (context_menu,

This is the only bit I'm not so sure about. When an image fills the page you might still want to be able to use the contextual menu to go back. For instance, if you go to an image such as http://www.nyewall.com/images/2013/08/tiger-hd-wallpapers.jpg and it's zoomed to the original size (by clicking). What do you think?
Comment 16 William Jon McCann 2013-12-17 15:34:23 UTC
Review of attachment 264221 [details] [review]:

Download link was kind of a duplicate of Save Link As. So I think we'll still have most of what you need.

::: src/ephy-window.c
@@ +1805,3 @@
+		if (!is_image)
+		{
+			add_action_to_context_menu (context_menu,

I think we'll be fine just using the back button on the headerbar or keyboard hotkeys. This is what both Chrome and Firefox do already.
Comment 17 William Jon McCann 2013-12-17 15:52:59 UTC
Attachment 264220 [details] pushed as 526b5c0 - Remove unused popup menus
Attachment 264221 [details] pushed as 9d10f81 - Cleanup context menus