Bug 1695435 - Part 2: Add more words to the chrome script heuristic in use-isInstance r=preferences-reviewers,Gijs,webdriver-reviewers,whimboo,sgalich

Differential Revision: https://phabricator.services.mozilla.com/D110932
This commit is contained in:
Kagami Sascha Rosylight
2022-08-24 22:47:42 +00:00
parent d420afb732
commit a37cf7833d
27 changed files with 78 additions and 60 deletions

View File

@@ -54,7 +54,7 @@ class MarkupContextMenu {
show(event) {
if (
!(event.originalTarget instanceof Element) ||
!Element.isInstance(event.originalTarget) ||
event.originalTarget.closest("input[type=text]") ||
event.originalTarget.closest("input:not([type])") ||
event.originalTarget.closest("textarea")