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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user