The context-menu library doesn't work on nested iframes

RESOLVED FIXED

Status

Add-on SDK
General
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: protz, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

5 years ago
Hi,

I'm trying to get a menu item to show up when right-clicking the composition area in GMail, that is, when composing an email, and right-clicking in the blank area where the composition happens.

This is an iframe, with designMode = "on" (it has been made content editable).

The code of the addon lives at https://github.com/protz/gpgfox ; it's fairly small, so I believe you shouldn't have too much trouble testing it. If that's too big of a testcase, though, I'm pretty sure I can make an addon in a few dozen lines.

There's a debug line that shows up whenever you perform a right-click, because the worker's "context" event is fired. That event isn't fired when right-clicking in the composition area.

Thanks,

jonathan
(Reporter)

Comment 1

5 years ago
I should mention that this also happens with Zimbra's composition area, which is also a nested iframe with designMode == "on".

Updated

5 years ago
Depends on: 788324
This looks to be fixed in the current stabilization branch of the SDK, which contains a rewritten context-menu module from bug 788324. Please however note bug 826080 and bug 826082.
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
(Reporter)

Comment 3

5 years ago
Thanks, I somehow thought that I was already running with the newer implementation. I'll give it a try!
You need to log in before you can comment on or make changes to this bug.