firefox addon not showing context-menu image in linux (but does in windows)

RESOLVED INCOMPLETE

Status

Add-on SDK
General
RESOLVED INCOMPLETE
2 years ago
2 months ago

People

(Reporter: david.terence.watts, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

2 years ago
User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36

Steps to reproduce:

I created context-menu object with image

// rest of code not included

var menuItem = contextMenu.Menu({
		include: "*.twitter.com",
		label: "do something",
		image: data.url("icon-16.png"),
		context: contextMenu.SelectorContext('div.whatever'),
		items: []
	});

m.push(contextMenu.Item({	label: "mylabel"
					data: "item",
                                        context: contextMenu.SelectorContext('div.whatever'),
					image: data.url("icon-16.png"),
					...
                                   });
menuItem.items = m;

// rest of code not included

Then run it like so 

 jpm -p addons run


Actual results:

Works fine on windows but in Mozilla on linux (ubuntu 14.04 LTS, Firefox version 43?) no image icon is shown on context-menu


Expected results:

that an icon is shown on the context menu as happens in windows (FF version 44)
(Reporter)

Updated

2 years ago
OS: Unspecified → Linux
Hardware: Unspecified → x86
(Reporter)

Comment 1

2 years ago
I should mention neither the icon from contextMenu.Menu nor the contextMenu.Item shows an icon on FF v43 on linux (I also tested a dataurl string - also did not work)

Updated

2 years ago
Component: Untriaged → General
Product: Firefox → Add-on SDK
Version: 43 Branch → unspecified
(Reporter)

Comment 2

2 years ago
The problem appears related to this issue 

https://bugzilla.mozilla.org/show_bug.cgi?id=1246343

a setting needed to be set in /etc/gtk-3.0/settings.ini for context-menu icons to work on linux

gtk-menu-images = true
(Reporter)

Comment 3

2 years ago
I have decided to stop using the context-menu functionality, its too buggy, I now get "root is null" errors assigning strings to labels. I would submit another bug but since no one has been bothered to look at this one, what's the point?
https://bugzilla.mozilla.org/show_bug.cgi?id=1399562
Status: UNCONFIRMED → RESOLVED
Last Resolved: 2 months ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.