the 'properties' argument is obsolete since gecko 22, and it raises errors in firefox
bug https://bugzilla.mozilla.org/show_bug.cgi?id=174320 was fixed a long time ago, in firefox 1.1
check if gContextMenu is null; fixed obsolete popup element bug