Closed Bug 824482 Opened 12 years ago Closed 12 years ago

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

Categories

(Add-on SDK Graveyard :: General, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: protz, Unassigned)

References

Details

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
I should mention that this also happens with Zimbra's composition area, which is also a nested iframe with designMode == "on".
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
Closed: 12 years ago
Resolution: --- → FIXED
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.