{"action":"created","issue":{"url":"https://api.github.com/repos/The-Compiler/qutebrowser/issues/2111","repository_url":"https://api.github.com/repos/The-Compiler/qutebrowser","labels_url":"https://api.github.com/repos/The-Compiler/qutebrowser/issues/2111/labels{/name}","comments_url":"https://api.github.com/repos/The-Compiler/qutebrowser/issues/2111/comments","events_url":"https://api.github.com/repos/The-Compiler/qutebrowser/issues/2111/events","html_url":"https://github.com/The-Compiler/qutebrowser/issues/2111","id":188647266,"number":2111,"title":"[userscript: password_fill] angular js forms auto fill fail","user":{"login":"sim590","id":4147254,"avatar_url":"https://avatars.githubusercontent.com/u/4147254?v=3","gravatar_id":"","url":"https://api.github.com/users/sim590","html_url":"https://github.com/sim590","followers_url":"https://api.github.com/users/sim590/followers","following_url":"https://api.github.com/users/sim590/following{/other_user}","gists_url":"https://api.github.com/users/sim590/gists{/gist_id}","starred_url":"https://api.github.com/users/sim590/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sim590/subscriptions","organizations_url":"https://api.github.com/users/sim590/orgs","repos_url":"https://api.github.com/users/sim590/repos","events_url":"https://api.github.com/users/sim590/events{/privacy}","received_events_url":"https://api.github.com/users/sim590/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-11-10T23:30:22Z","updated_at":"2016-11-12T09:08:59Z","closed_at":null,"body":"Consider the page at url: https://portailetudiant.uqam.ca/. When using userscript `password_fill` from #873, username and password gets properly filled, but the form cannot be sent with the form showing errors. The only way to work around this is to input some characters with the keyboard in each field. If the field is full, you actually have to remove a character and input it again.\r\n\r\nWhen looking at the form's code:\r\n```html\r\n                  <span>&nbsp;&nbsp;Code permanent</span><br>\r\n                  <input style=\"width:100%\" name=\"codePermanent\" ng-model=\"user.codePermanent\" ng-pattern=\"/^[A-Za-z]{4}(0[1-9]|[12][0-9]|3[01]|6[3-9]|[78][0-9]|9[0-3]|99)([0,5][1-9]|[1,6][012]|13|63)[0-9]{4}$/\" maxlength=\"12\" tabindex=\"1\" placeholder=\"(ex. : ABDC12034566)\" autofocus=\"\" required=\"\" class=\"ng-pristine ng-untouched ng-empty ng-invalid ng-invalid-required ng-valid-pattern ng-valid-maxlength\">\r\n                  <!-- ngIf: formMobile.codePermanent.$invalid && formMobile.codePermanent.$dirty && submitted -->\r\n\r\n                  <br><br>\r\n                  <span>&nbsp;&nbsp;NIP</span><br>\r\n                  <input style=\"width:100%\" type=\"password\" name=\"password\" ng-model=\"user.password\" ng-pattern=\"/^[0-9]{5}$/\" maxlength=\"5\" tabindex=\"2\" placeholder=\"(ex. : 12345)\" required=\"\" class=\"ng-pristine ng-untouched ng-empty ng-invalid ng-invalid-required ng-valid-pattern ng-valid-maxlength\">\r\n\r\n```\r\nI saw that it was using AngularJS. I [dig a little more][1] and now I think that the problem is actually related to the AngularJS css classes:\r\n```\r\nng-pristine\r\nng-dirty\r\n```\r\nLike if the userscript `password_fill` would not trigger the form to go from `ng-pristine` to `ng-dirty` or something. I may be wrong. I know nothing about javascript...\r\n\r\n@t-wissmann Can you comment on this and/or tell if you could edit the userscript to trigger the relevant event if this is truely the solution? Thanks!\r\n\r\n[1]: http://stackoverflow.com/a/25025544\r\n\r\n### Version\r\n\r\nI run qutebrowser with: `env QUTE_QTBUG54419_PATCHED=1 qutebrowser --backend webengine`\r\n\r\n```\r\nqutebrowser v0.8.4\r\nGit commit: v0.8.0-1691-g690633b (2016-11-06 00:47:53 +0100)\r\n\r\nCPython: 3.5.2\r\nQt: 5.7.0\r\nPyQt: 5.7\r\n\r\nsip: 4.18.1\r\ncolorama: no\r\npypeg2: 2.15\r\njinja2: 2.8\r\npygments: 2.1.3\r\nyaml: 3.12\r\ncssutils: no\r\ntyping: yes\r\nPyQt5.QtWebEngineWidgets: yes\r\npdf.js: 1.2.109 (/usr/share/pdf.js/build/pdf.js)\r\nWebkit: 538.1\r\nSSL: OpenSSL 1.0.2j  26 Sep 2016\r\n\r\nStyle: QFusionStyle\r\nPlatform: Linux-4.8.6-1-ARCH-x86_64-with-arch, 64bit\r\nFrozen: False\r\nImported from /usr/lib/python3.5/site-packages/qutebrowser\r\nOS Version:\r\n\r\n--- /etc/lsb-release ---\r\nLSB_VERSION=1.4\r\nDISTRIB_ID=Arch\r\nDISTRIB_RELEASE=rolling\r\nDISTRIB_DESCRIPTION=\"Arch Linux\"\r\n\r\n--- /etc/os-release ---\r\nNAME=\"Arch Linux\"\r\nID=arch\r\nPRETTY_NAME=\"Arch Linux\"\r\n\r\nPaths:\r\nruntime: /run/user/1000/qutebrowser\r\ndownload: /home/simon/Téléchargements\r\nsystem_data: /home/simon/.local/share/qutebrowser\r\ncache: /home/simon/.cache/qutebrowser\r\nconfig: /home/simon/.config/qutebrowser\r\ndata: /home/simon/.local/share/qutebrowser\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/The-Compiler/qutebrowser/issues/comments/260110923","html_url":"https://github.com/The-Compiler/qutebrowser/issues/2111#issuecomment-260110923","issue_url":"https://api.github.com/repos/The-Compiler/qutebrowser/issues/2111","id":260110923,"user":{"login":"t-wissmann","id":9048813,"avatar_url":"https://avatars.githubusercontent.com/u/9048813?v=3","gravatar_id":"","url":"https://api.github.com/users/t-wissmann","html_url":"https://github.com/t-wissmann","followers_url":"https://api.github.com/users/t-wissmann/followers","following_url":"https://api.github.com/users/t-wissmann/following{/other_user}","gists_url":"https://api.github.com/users/t-wissmann/gists{/gist_id}","starred_url":"https://api.github.com/users/t-wissmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t-wissmann/subscriptions","organizations_url":"https://api.github.com/users/t-wissmann/orgs","repos_url":"https://api.github.com/users/t-wissmann/repos","events_url":"https://api.github.com/users/t-wissmann/events{/privacy}","received_events_url":"https://api.github.com/users/t-wissmann/received_events","type":"User","site_admin":false},"created_at":"2016-11-12T09:08:59Z","updated_at":"2016-11-12T09:08:59Z","body":"@sim590: Yes, it should be indeed possible to simulate the input events directly in javascript [as described here](http://stackoverflow.com/a/12187302/4400896).\r\n\r\n@paratje:if the captchas are done right, then there is no way to fill the captcha fields automatically."}}
{"actor":{"display_login":"t-wissmann"}}