Giter Site home page Giter Site logo

markusbjorklund / chrome-vs-code Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fabianlauer/chrome-vs-code

0.0 0.0 0.0 8.9 MB

A web browser integrated in VS Code editor tabs. :radioactive: experimental :radioactive:

License: MIT License

HTML 5.82% CSS 55.84% Makefile 0.13% CoffeeScript 0.24% TypeScript 37.97%

chrome-vs-code's Introduction

 Chrome VS Code PREVIEW

Google Chrome for Visual Studio Code.

First things first: This is a preview.

Chrome VS Code is currently an early version of what could become a very handy extension for many Visual Studio Code users. Chrome VS Code has to work around content security policies to escape VS Code's sandbox though, which means that security concerns are yet to be resolved. To limit these concerns, the following precautions are taken:

  • No cookies as of yet. This means you can't log in anywhere.
  • No local storage, session storage, etc.

This means, there is no such thing as safe browsing. Make sure you're fine with the risk before you install and use it. Also, you are very likely to encounter bugs โ€” please be a dear and report them over at GitHub. Or why not submit a PR or two? ๐Ÿ˜‰


Screenshot

Key Features

๐Ÿ‘Œ stable ย ย ย  โš’ experimental ย ย ย  โœ‹ not implemented

Status Feature
โš’ Browse to http:// and https:// URLs
โš’ Browse to file:// URLs
๐Ÿ‘Œ Use address bar to search the web with your favorite search engine
๐Ÿ‘Œ Open in normal and split view
๐Ÿ‘Œ Customizable homepage
๐Ÿ‘Œ VS Code dark theme
๐Ÿ‘Œ VS Code light theme
โœ‹ VS Code high-contrast theme
โœ‹ Validate HTTPS certificates
โœ‹ Cookies (this means you can't log in anywhere)
โœ‹ Open selected URL
โœ‹ Open PDFs
โœ‹ Find in page

Known Issues

Unfortunately, some issues are probably here to stay:

  • Tab rebuilds after being hidden or dragged #15437

How Chrome VS Code escapes the sandbox

VS Code has the capability of showing so called virtual documents in editor tabs. They are normally used to render previews for HTML, CSS, SVG, Markdown files and so on. Chrome VS Code renders its GUI inside such a virtual document.

Virtual documents live in a sandbox, though. This means that communication with a virtual document via JavaScript is limited by the same origin policy, thus just loading any website, say google.com, inside a virtual document will immediately prevent the JavaScript code 'surrounding' the virtual document from accessing the loaded web page. This is where it becomes tricky: In order for a browser to control web pages (UI and code injection), both the browser and the webpage must be loaded from the same origin.

To do this, Chrome VS Code runs a proxy server in the extension process through which requests are redirected. While not particularly elegant, it allows to circumvent the SOP.

Contributing

You're welcome to submit issues and PRs on GitHub โ€” don't be shy!

License

MIT. See LICENSE file.

Disclaimer

The software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.

Screenshots

Screenshot

chrome-vs-code's People

Contributors

fabianlauer avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.