summaryrefslogtreecommitdiffstats
path: root/application/palemoon/base/content/nsContextMenu.js
diff options
context:
space:
mode:
authorJustOff <Off.Just.Off@gmail.com>2018-04-20 21:10:10 +0300
committerJustOff <Off.Just.Off@gmail.com>2018-04-20 21:10:10 +0300
commit7d7df95f2866c5c45f0aaa77baa2b5508ea9b1c7 (patch)
tree23ba4186142793269e0038e1a856bb3aae47c8dc /application/palemoon/base/content/nsContextMenu.js
parent20a3f8c006445b176fa8559f6529c2cf3cb75b0d (diff)
downloadUXP-7d7df95f2866c5c45f0aaa77baa2b5508ea9b1c7.tar
UXP-7d7df95f2866c5c45f0aaa77baa2b5508ea9b1c7.tar.gz
UXP-7d7df95f2866c5c45f0aaa77baa2b5508ea9b1c7.tar.lz
UXP-7d7df95f2866c5c45f0aaa77baa2b5508ea9b1c7.tar.xz
UXP-7d7df95f2866c5c45f0aaa77baa2b5508ea9b1c7.zip
[PMkit] Provide gContextMenuContentData for 'sdk/context-menu'
Diffstat (limited to 'application/palemoon/base/content/nsContextMenu.js')
-rw-r--r--application/palemoon/base/content/nsContextMenu.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/application/palemoon/base/content/nsContextMenu.js b/application/palemoon/base/content/nsContextMenu.js
index 1fe592b52..3d5d40e4c 100644
--- a/application/palemoon/base/content/nsContextMenu.js
+++ b/application/palemoon/base/content/nsContextMenu.js
@@ -4,6 +4,8 @@
Components.utils.import("resource://gre/modules/PrivateBrowsingUtils.jsm");
+var gContextMenuContentData = null;
+
function nsContextMenu(aXulMenu, aIsShift) {
this.shouldDisplay = true;
this.initMenu(aXulMenu, aIsShift);
@@ -39,6 +41,7 @@ nsContextMenu.prototype = {
},
hiding: function CM_hiding() {
+ gContextMenuContentData = null;
InlineSpellCheckerUI.clearSuggestionsFromMenu();
InlineSpellCheckerUI.clearDictionaryListFromMenu();
InlineSpellCheckerUI.uninit();