{"action":"created","issue":{"url":"https://api.github.com/repos/electron/electron/issues/5825","repository_url":"https://api.github.com/repos/electron/electron","labels_url":"https://api.github.com/repos/electron/electron/issues/5825/labels{/name}","comments_url":"https://api.github.com/repos/electron/electron/issues/5825/comments","events_url":"https://api.github.com/repos/electron/electron/issues/5825/events","html_url":"https://github.com/electron/electron/issues/5825","id":157856184,"number":5825,"title":"[BUG]input the captcha in taobao.com's login page will always be wrong. but nw.js is working well","user":{"login":"ppoo24","id":1631659,"avatar_url":"https://avatars.githubusercontent.com/u/1631659?v=3","gravatar_id":"","url":"https://api.github.com/users/ppoo24","html_url":"https://github.com/ppoo24","followers_url":"https://api.github.com/users/ppoo24/followers","following_url":"https://api.github.com/users/ppoo24/following{/other_user}","gists_url":"https://api.github.com/users/ppoo24/gists{/gist_id}","starred_url":"https://api.github.com/users/ppoo24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppoo24/subscriptions","organizations_url":"https://api.github.com/users/ppoo24/orgs","repos_url":"https://api.github.com/users/ppoo24/repos","events_url":"https://api.github.com/users/ppoo24/events{/privacy}","received_events_url":"https://api.github.com/users/ppoo24/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/electron/electron/labels/more-information-needed","name":"more-information-needed","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-06-01T08:59:42Z","updated_at":"2016-06-04T08:18:37Z","closed_at":"2016-06-04T08:18:37Z","body":"* Electron version: v1.1.1\r\n* Operating system: Windows 7 x64\r\n\r\nSteps to reproduce:\r\n1.just use the codes in `Docs -> tutorial -> Quick Start` to create a test app and modify a bit like below:\r\n```js\r\nconst electron = require('electron');\r\n// Module to control application life.\r\nconst {app} = electron;\r\n// Module to create native browser window.\r\nconst {BrowserWindow} = electron;\r\n\r\n// Keep a global reference of the window object, if you don't, the window will\r\n// be closed automatically when the JavaScript object is garbage collected.\r\nlet win;\r\n\r\nfunction createWindow() {\r\n  // Create the browser window.\r\n  win = new BrowserWindow({width: 500, height: 600,webPreferences:{nodeIntegration:false}}); //【must adding the \"nodeIntegration\" option to prevent errors in login page】\r\n\r\n  // and load the index.html of the app.\r\n  win.loadURL('http://myseller.taobao.com'); //【here i jump to taobao.com's backend page】\r\n\r\n  // Open the DevTools.\r\n  win.webContents.openDevTools();\r\n\r\n  // Emitted when the window is closed.\r\n  win.on('closed', () => {\r\n    // Dereference the window object, usually you would store windows\r\n    // in an array if your app supports multi windows, this is the time\r\n    // when you should delete the corresponding element.\r\n    win = null;\r\n  });\r\n}\r\n\r\n// This method will be called when Electron has finished\r\n// initialization and is ready to create browser windows.\r\n// Some APIs can only be used after this event occurs.\r\napp.on('ready', createWindow);\r\n\r\n// Quit when all windows are closed.\r\napp.on('window-all-closed', () => {\r\n  // On OS X it is common for applications and their menu bar\r\n  // to stay active until the user quits explicitly with Cmd + Q\r\n  if (process.platform !== 'darwin') {\r\n    app.quit();\r\n  }\r\n});\r\n\r\napp.on('activate', () => {\r\n  // On OS X it's common to re-create a window in the app when the\r\n  // dock icon is clicked and there are no other windows open.\r\n  if (win === null) {\r\n    createWindow();\r\n  }\r\n});\r\n\r\n// In this file you can include the rest of your app's specific main process\r\n// code. You can also put them in separate files and require them here.\r\n```\r\nthe window will automatically jump into the login page: `https://login.taobao.com/member/login.jhtml?redirectURL=http%3A%2F%2Fmyseller.taobao.com%2Fseller_admin.htm`\r\n\r\n2.then i input any username & password (just an wrong account \"test1\" and pass \"test1\") in login page:\r\n![image](https://cloud.githubusercontent.com/assets/1631659/15703367/7184c45a-2817-11e6-997d-0aa7302f46f2.png)\r\nthen submit and it will alert that what you have input is not right, try `type & submit` more times, it will show the captcha as below:\r\n![image](https://cloud.githubusercontent.com/assets/1631659/15703481/178908b6-2818-11e6-9c4d-561db1b4c34a.png)\r\nhe will tell us to press & move the button to the right, then we will see the actual captcha:\r\n![image](https://cloud.githubusercontent.com/assets/1631659/15703497/37b7497c-2818-11e6-9cff-ae1b635576b6.png)\r\nAt this time, whatever you click on in the image, the result is fail.\r\n\r\nI have tested many times in `nw.js`, these faults will not occur.\r\nAnd i tried to add the \"plugins\" option, `enable npapi` and `disable http2` by using `app.commandLine.appendSwitch`, nothing works.\r\nI have no idea about this problem, our site has been bleeding users with this problem. OR we are unfortunately to switch to `nw.js`?\r\nThanks for helping! Deeply appreciate!"},"comment":{"url":"https://api.github.com/repos/electron/electron/issues/comments/223743643","html_url":"https://github.com/electron/electron/issues/5825#issuecomment-223743643","issue_url":"https://api.github.com/repos/electron/electron/issues/5825","id":223743643,"user":{"login":"ppoo24","id":1631659,"avatar_url":"https://avatars.githubusercontent.com/u/1631659?v=3","gravatar_id":"","url":"https://api.github.com/users/ppoo24","html_url":"https://github.com/ppoo24","followers_url":"https://api.github.com/users/ppoo24/followers","following_url":"https://api.github.com/users/ppoo24/following{/other_user}","gists_url":"https://api.github.com/users/ppoo24/gists{/gist_id}","starred_url":"https://api.github.com/users/ppoo24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppoo24/subscriptions","organizations_url":"https://api.github.com/users/ppoo24/orgs","repos_url":"https://api.github.com/users/ppoo24/repos","events_url":"https://api.github.com/users/ppoo24/events{/privacy}","received_events_url":"https://api.github.com/users/ppoo24/received_events","type":"User","site_admin":false},"created_at":"2016-06-04T08:18:37Z","updated_at":"2016-06-04T08:18:37Z","body":"@zcbenz Hey buddy, you are truly a man with lucky, i just had a try, and it worked strangely. I mean this problem has troubled us for a long time, just because of your words, it's gone.\r\nNow the v1.2.1 v1.1.1 and v0.35.0(we're working on) are all ok, may the Taobao have changed something, never to be known.\r\nThank u @zcbenz "}}
{"actor":{"display_login":"ppoo24"}}