1. 11 7月, 2019 2 次提交
  2. 10 7月, 2019 1 次提交
  3. 05 7月, 2019 4 次提交
  4. 04 7月, 2019 2 次提交
  5. 02 7月, 2019 1 次提交
  6. 01 7月, 2019 1 次提交
  7. 24 6月, 2019 6 次提交
  8. 23 6月, 2019 1 次提交
  9. 21 6月, 2019 1 次提交
  10. 20 6月, 2019 4 次提交
  11. 19 6月, 2019 1 次提交
  12. 18 6月, 2019 2 次提交
  13. 17 6月, 2019 1 次提交
  14. 16 6月, 2019 1 次提交
    • M
      Add experimental service-worker based loading of webview content · 1319038e
      Matt Bierner 提交于
      ## Problem
      We use a custom `vscode-resource` protocol to control access to local resources inside of webviews. This will not work on the web, but we still would prefer a way to intercept webview requests from the main client
      
      ## Proposed solution
      Move webviews into their own origin and register a service worker on this origin. This service worker can talk with the outer iframe of our webview. When a request for a resource comes in to the service worker:
      
      * In the service worker, add the request to a map and post a message back to the client saying we want to load this resource
      * The outer iframe gets the message from the sercice worker and forwards it to our main process
      * This process handles the message and use the normal file system api to read the resource (also restricting which files can be read)
      * We post the result back into the inner iframe which fowards it back to the service worker
      * The service worker now resolves the pending request.
      
      The prototype version in this change works but does not correctly handle multiple clients existing at the same time (plus probably a lot of other edge cases too)
      1319038e
  15. 14 6月, 2019 2 次提交
  16. 13 6月, 2019 2 次提交
  17. 12 6月, 2019 1 次提交
  18. 11 6月, 2019 3 次提交
  19. 10 6月, 2019 1 次提交
  20. 08 6月, 2019 2 次提交
  21. 07 6月, 2019 1 次提交