{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/pxt-microbit/issues/1313","repository_url":"https://api.github.com/repos/Microsoft/pxt-microbit","labels_url":"https://api.github.com/repos/Microsoft/pxt-microbit/issues/1313/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/pxt-microbit/issues/1313/comments","events_url":"https://api.github.com/repos/Microsoft/pxt-microbit/issues/1313/events","html_url":"https://github.com/Microsoft/pxt-microbit/issues/1313","id":364932131,"node_id":"MDU6SXNzdWUzNjQ5MzIxMzE=","number":1313,"title":"WebUSB still tries direct download after returning micro:bit to production firmware Beta v1","user":{"login":"KurtWAndrews","id":2064542,"node_id":"MDQ6VXNlcjIwNjQ1NDI=","avatar_url":"https://avatars3.githubusercontent.com/u/2064542?v=4","gravatar_id":"","url":"https://api.github.com/users/KurtWAndrews","html_url":"https://github.com/KurtWAndrews","followers_url":"https://api.github.com/users/KurtWAndrews/followers","following_url":"https://api.github.com/users/KurtWAndrews/following{/other_user}","gists_url":"https://api.github.com/users/KurtWAndrews/gists{/gist_id}","starred_url":"https://api.github.com/users/KurtWAndrews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KurtWAndrews/subscriptions","organizations_url":"https://api.github.com/users/KurtWAndrews/orgs","repos_url":"https://api.github.com/users/KurtWAndrews/repos","events_url":"https://api.github.com/users/KurtWAndrews/events{/privacy}","received_events_url":"https://api.github.com/users/KurtWAndrews/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-28T15:14:23Z","updated_at":"2018-09-28T15:54:58Z","closed_at":null,"author_association":"NONE","body":"**Describe the bug**\r\n\r\nCan't seem to turn WebUSB off. After returning to the production version of the firmware (0243), WebUSB does not detect that the device is not compatible with direct downloading.  The direct download fails and then allows the user to download the hex file to be downloaded to the file system.\r\n\r\n**To Reproduce**\r\n\r\n1. Follow the [Instructions to setup WebUSB](https://support.microbit.org/support/solutions/articles/19000084059-beta-testing-web-usb)\r\n1. Open a project in the Beta Blocks/JS editor\r\n1. Download the project to the micro:bit to test WebUSB (the project should be flashed to the micro:bit)\r\n1. Follow the same setup instructions above to flash the production firmware (ver. 0243) and return the micro:bit to its production state.\r\n1. Eject the micro:bit and unplug it\r\n1. Reconnect the micro:bit to ensure it is no longer in maintenance mode\r\n1. Open the Beta Blocks/JS editor and open a project\r\n1. Download the project\r\n1. The error dialog should pop up and then allow a normal download to the file system after clicking OK\r\n\r\nI've attached a document with a sequence of screenshots to help illustrate the process from steps 4 - 9.  There were no issues with the initial setup of WebUSB.  All testing of the WebUSB download process were successful. Only trying to restore the micro:bit to its production state exposed this issue.\r\n\r\n**Expected behavior**\r\n\r\nPressing the download button should display Fig 6. in the WebUSB Testing document, if the micro:bit firmware doesn't support WebUSB.\r\n\r\n**Screenshots**\r\n\r\nSee Attachment\r\n\r\n**Desktop (please complete the following information):**\r\n \r\nSee Attachment\r\n\r\n**Smartphone (please complete the following information):**\r\n\r\nN/A\r\n\r\n**Additional context**\r\n\r\n[WebUSB Testing.pdf](https://github.com/Microsoft/pxt-microbit/files/2428715/WebUSB.Testing.pdf)\r\n[System Info.pdf](https://github.com/Microsoft/pxt-microbit/files/2428716/System.Info.pdf)\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/pxt-microbit/issues/comments/425481423","html_url":"https://github.com/Microsoft/pxt-microbit/issues/1313#issuecomment-425481423","issue_url":"https://api.github.com/repos/Microsoft/pxt-microbit/issues/1313","id":425481423,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTQ4MTQyMw==","user":{"login":"guillaumejenkins","id":14299377,"node_id":"MDQ6VXNlcjE0Mjk5Mzc3","avatar_url":"https://avatars1.githubusercontent.com/u/14299377?v=4","gravatar_id":"","url":"https://api.github.com/users/guillaumejenkins","html_url":"https://github.com/guillaumejenkins","followers_url":"https://api.github.com/users/guillaumejenkins/followers","following_url":"https://api.github.com/users/guillaumejenkins/following{/other_user}","gists_url":"https://api.github.com/users/guillaumejenkins/gists{/gist_id}","starred_url":"https://api.github.com/users/guillaumejenkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guillaumejenkins/subscriptions","organizations_url":"https://api.github.com/users/guillaumejenkins/orgs","repos_url":"https://api.github.com/users/guillaumejenkins/repos","events_url":"https://api.github.com/users/guillaumejenkins/events{/privacy}","received_events_url":"https://api.github.com/users/guillaumejenkins/received_events","type":"User","site_admin":false},"created_at":"2018-09-28T15:54:58Z","updated_at":"2018-09-28T15:54:58Z","author_association":"MEMBER","body":"I suspect Chrome is still thinking that your micro:bit is paired. If we try to perform WebUSB flash, it's because the browser is telling us that there is a paired device. In that case, there's nothing we can do - we can't know that the browser is lying to us.\r\n\r\nTo confirm my suspicions, could you click on the Lock icon next to the URL (red circle in below screenshot), and post a screenshot of the popup? If what I'm suspecting is true, you'll see a micro:bit device in the region circled in blue:\r\n\r\n![image](https://user-images.githubusercontent.com/14299377/46219181-a7655b80-c314-11e8-96df-cc8c8e79e0dd.png)\r\n\r\nIf that's really what's happening, then as a workaround, you can manually unpair the device by clicking the X icon next to it in the popup."}}
{"actor":{"display_login":"guillaumejenkins"}}