From 093ad4fdd57562459a609cdad35135aeec49bd17 Mon Sep 17 00:00:00 2001 From: Infocatcher Date: Mon, 12 Aug 2019 00:07:52 +0300 Subject: [PATCH] Fix menu auto-opening in Firefox 69+ (see #28) --- Bookmarks_Folder/bookmarksFolder.js | 2 +- Extensions_Developer_Tools/extDevTools.js | 2 +- Extensions_Installer/extensionsInstaller.js | 2 +- Merge_Custom_Buttons/mergeCustomButtons.js | 2 +- Session_Bookmarks/sessionBookmarks.js | 2 +- Toggle_Restartless_Add-ons/toggleRestartlessAddons.js | 2 +- Undo_Close_Tabs/undoCloseTabs.js | 2 +- code_snippets/autoOpenCloseMenu.js | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Bookmarks_Folder/bookmarksFolder.js b/Bookmarks_Folder/bookmarksFolder.js index edea3e08..447654b8 100644 --- a/Bookmarks_Folder/bookmarksFolder.js +++ b/Bookmarks_Folder/bookmarksFolder.js @@ -89,8 +89,8 @@ this.onmouseover = function(e) { if( node != this && node.namespaceURI == xulns - && node.boxObject // See https://github.com/Infocatcher/Custom_Buttons/issues/28 + //&& node.boxObject //&& node.boxObject instanceof Components.interfaces.nsIMenuBoxObject && "open" in node && node.open diff --git a/Extensions_Developer_Tools/extDevTools.js b/Extensions_Developer_Tools/extDevTools.js index 051ac9d3..5a0c7162 100644 --- a/Extensions_Developer_Tools/extDevTools.js +++ b/Extensions_Developer_Tools/extDevTools.js @@ -335,8 +335,8 @@ this.onmouseover = function(e) { if( node != this && node.namespaceURI == XULNS - && node.boxObject // See https://github.com/Infocatcher/Custom_Buttons/issues/28 + //&& node.boxObject //&& node.boxObject instanceof Components.interfaces.nsIMenuBoxObject && "open" in node && node.open diff --git a/Extensions_Installer/extensionsInstaller.js b/Extensions_Installer/extensionsInstaller.js index 1dce225b..bea99a33 100644 --- a/Extensions_Installer/extensionsInstaller.js +++ b/Extensions_Installer/extensionsInstaller.js @@ -451,8 +451,8 @@ if(isCbInit) { if( node != this && node.namespaceURI == xulns - && node.boxObject // See https://github.com/Infocatcher/Custom_Buttons/issues/28 + //&& node.boxObject //&& node.boxObject instanceof Components.interfaces.nsIMenuBoxObject && "open" in node && node.open diff --git a/Merge_Custom_Buttons/mergeCustomButtons.js b/Merge_Custom_Buttons/mergeCustomButtons.js index d71a7688..7fbefd29 100644 --- a/Merge_Custom_Buttons/mergeCustomButtons.js +++ b/Merge_Custom_Buttons/mergeCustomButtons.js @@ -21,8 +21,8 @@ this.onmouseover = function(e) { if( node != this && node.namespaceURI == xulns - && node.boxObject // See https://github.com/Infocatcher/Custom_Buttons/issues/28 + //&& node.boxObject //&& node.boxObject instanceof Components.interfaces.nsIMenuBoxObject && "open" in node && node.open diff --git a/Session_Bookmarks/sessionBookmarks.js b/Session_Bookmarks/sessionBookmarks.js index 56deb0e7..b4814b46 100644 --- a/Session_Bookmarks/sessionBookmarks.js +++ b/Session_Bookmarks/sessionBookmarks.js @@ -234,8 +234,8 @@ this.onmouseover = function(e) { if( node != this && node.namespaceURI == xulns - && node.boxObject // See https://github.com/Infocatcher/Custom_Buttons/issues/28 + //&& node.boxObject //&& node.boxObject instanceof Components.interfaces.nsIMenuBoxObject && "open" in node && node.open diff --git a/Toggle_Restartless_Add-ons/toggleRestartlessAddons.js b/Toggle_Restartless_Add-ons/toggleRestartlessAddons.js index 4724ef7f..25c07d4a 100644 --- a/Toggle_Restartless_Add-ons/toggleRestartlessAddons.js +++ b/Toggle_Restartless_Add-ons/toggleRestartlessAddons.js @@ -283,8 +283,8 @@ if( if( node != this && node.namespaceURI == xulns - && node.boxObject // See https://github.com/Infocatcher/Custom_Buttons/issues/28 + //&& node.boxObject //&& node.boxObject instanceof Components.interfaces.nsIMenuBoxObject && "open" in node && node.open diff --git a/Undo_Close_Tabs/undoCloseTabs.js b/Undo_Close_Tabs/undoCloseTabs.js index d284006e..73f58eba 100644 --- a/Undo_Close_Tabs/undoCloseTabs.js +++ b/Undo_Close_Tabs/undoCloseTabs.js @@ -212,8 +212,8 @@ this.onmouseover = function(e) { if( node != this && node.namespaceURI == xulns - && node.boxObject // See https://github.com/Infocatcher/Custom_Buttons/issues/28 + //&& node.boxObject //&& node.boxObject instanceof Components.interfaces.nsIMenuBoxObject && "open" in node && node.open diff --git a/code_snippets/autoOpenCloseMenu.js b/code_snippets/autoOpenCloseMenu.js index 3d7a811f..3c99e513 100644 --- a/code_snippets/autoOpenCloseMenu.js +++ b/code_snippets/autoOpenCloseMenu.js @@ -56,8 +56,8 @@ function closeOtherMenus() { if( node != self && node.namespaceURI == xulns - && node.boxObject // See https://github.com/Infocatcher/Custom_Buttons/issues/28 + //&& node.boxObject //&& node.boxObject instanceof Components.interfaces.nsIMenuBoxObject && "open" in node && node.open