1. 17 6月, 2019 12 次提交
  2. 16 6月, 2019 2 次提交
    • D
      xterm@3.15.0-beta42 · fb191076
      Daniel Imms 提交于
      Diff: https://github.com/xtermjs/xterm.js/compare/cdc9f79...846a189
      
      - Saved absolute cursor position (xtermjs/xterm.js#2217)
      - Buffer line refactor (moving parts into new files)
      - Splitting Types.ts into .d.ts and Constants.ts
      - Fix refresh after DPR change
      - Fix NPE in setTheme (didn't affect VS Codee)
      
      Fixes #75575
      Fixes #75576
      fb191076
    • 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
  3. 15 6月, 2019 26 次提交