mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 431141: input type="password" should not have "Add Keyword to this Search" context menu, r=gavin
This commit is contained in:
parent
ad9edcfa7d
commit
71fba86b9b
@ -1227,8 +1227,11 @@ nsContextMenu.prototype = {
|
||||
},
|
||||
|
||||
isTargetAKeywordField: function(aNode) {
|
||||
if (!(aNode instanceof HTMLInputElement))
|
||||
return false;
|
||||
|
||||
var form = aNode.form;
|
||||
if (!form)
|
||||
if (!form || aNode.type == "password")
|
||||
return false;
|
||||
|
||||
var method = form.method.toUpperCase();
|
||||
|
Loading…
Reference in New Issue
Block a user