我正在使用 sdk 创建一个 firefox 插件,我想知道是否有任何方法可以阻止“你想记住这个密码吗?”登录网站时 firefox 密码管理器显示的弹出窗口。我已经尝试过“自动完成”属性,但看起来 firefox 从版本 30 开始就停止支持它了。它不应该在登录网站时显示。请指教。
最佳答案
在分析 FF 源代码后,我设法通过在表单中添加树形附加密码字段来修复它。 在那种情况下 FF 无法确定要使用的密码字段:)
<input type="password" style="display: none;"/>
<input type="password" style="display: none;"/>
<input type="password" style="display: none;"/>
<input type="password" name="pass"/>
关于javascript - 在 Firefox 中阻止 "Would you like to remember this password ?"弹出窗口,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28404269/