Show HN: ChromeREPL, Interact with Chrome from Sublime Text
1–10 of 18 posts
Re: Show HN: ChromeREPL, Interact with Chrome from Sublime Text
#2Re: Show HN: ChromeREPL, Interact with Chrome from Sublime Text
#3Re: Show HN: ChromeREPL, Interact with Chrome from Sublime Text
#4This looks very useful, but it does concern me that this is even possible. Simply starting chrome with a `--remote-debug` flag allows you to run JavaScript in any tab? seems like it could easily be exploited somehow; read passwords, copy userinfo etc.
I wouldn't call that "simple". Sounds like fine behavior given non-devs generally don't even know how to run Chrome with custom flags and developers know that remote debugging generally means remote execution with data/memory access. Would you prefer a better flag name or lock remote debugging to a subset of tabs?
Re: Show HN: ChromeREPL, Interact with Chrome from Sublime Text
#5This looks very useful, but it does concern me that this is even possible. Simply starting chrome with a `--remote-debug` flag allows you to run JavaScript in any tab? seems like it could easily be exploited somehow; read passwords, copy userinfo etc.
> Simply starting chrome with a `--remote-debug` I wouldn't call that "simple". Sounds like fine behavior given non-devs generally don't even know how to run Chrome with custom flags and developers know that remote debugging generally means remote execution with data/memory access. Would you prefer a better flag name or lock remote debugging to a subset of tabs?
If the desktop launcher was modified to include that flag, then you would never know while browsing right? Maybe I'm just paranoid...
Re: Show HN: ChromeREPL, Interact with Chrome from Sublime Text
#6I wrote a somewhat similar tool for use with Emacs many years ago, SwankJS: https://github.com/swank-js/swank-js See this demo, for example: http://emacsrocks.com/e11.html It was not dependent on Chrome features and even did work with IE6 at some point. Too bad REPL-based programming is not very useful for modern JavaScript. There's a successor, though: https://github.com/skeeto/skewer-mode
https://github.com/NicolasPetton/Indium
It can connect to both chrome and node, it has REPL and a step debugger like cider/clojure, with quick (good ui) for object introspection. (also supports company mode!)
Re: Show HN: ChromeREPL, Interact with Chrome from Sublime Text
#7This looks very useful, but it does concern me that this is even possible. Simply starting chrome with a `--remote-debug` flag allows you to run JavaScript in any tab? seems like it could easily be exploited somehow; read passwords, copy userinfo etc.
Re: Show HN: ChromeREPL, Interact with Chrome from Sublime Text
#8Earlier quoted context omitted.
> Simply starting chrome with a `--remote-debug` I wouldn't call that "simple". Sounds like fine behavior given non-devs generally don't even know how to run Chrome with custom flags and developers know that remote debugging generally means remote execution with data/memory access. Would you prefer a better flag name or lock remote debugging to a subset of tabs?
That's true, I suppose as long as there's indication that the mode is enabled, a warning or something (haven't tested it myself yet). If the desktop launcher was modified to include that flag, then you would never know while browsing right? Maybe I'm just paranoid...