-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Live Development changes Chrome's home page for that session (OS X) #2998
Comments
@gruehle - consider this a low(er) priority. |
@gruehle the reason this is happening is that when we re-launch chrome (on mac), we put the url to be opened in the command line. Chrome treats this as the url to open on any re-launch (which is what happens when you click the dock icon). I think the fix would be to re-launch chrome without the url and then once we see chrome open, to fire a debugger event that opens the page. Since we've got a story around completely re-doing the live dev connection process, maybe we can just fix this along the way? |
@gruehle, @joelrbrandt it may come in handy to use a separate chrome profile for development. I tested a simple fix below that seems to work without affecting prior open sessions. diff --git a/appshell/appshell_extensions_mac.mm b/appshell/appshell_extensions_mac.mm
|
In fact, I'm almost certain you don't even have to close and re-open the browser to use it this way. :) |
@fungl164 That's what we do on Windows, but it didn't work on Mac (several months ago when we tried it). Has this been fixed recently? Please let us know if you have any pointers or documentation on how to get it to work. |
@redmunds I can say that it is working for me right now with those parameters. Here is my setup:
I made changes to "appshell/appshell_extensions_mac.mm" as noted above & compiled with XCode 5. The gist of it is to call chrome with the following parameters:
Hope this helps. Let me know if you need more info... |
Also, from what I saw the code will force a close if Chrome is already open. With these new parameters, I think that will no longer be necessary and can therefore be bypassed. I just haven't toyed with it much yet. I figure, it would be a lot faster and better for one of the core developers to take a look at it and modify it as deemed acceptable for general consumption... |
Thanks. One difference I see from what I tried is |
Nominating for Sprint 33. A lot of work was done on this during Sprint 32, so we should finish this up for Sprint 33. |
Pushing this out to Sprint 34. |
@alltom I just merged changes so that you should not see the Relaunch Chrome dialog on Mac anymore (disclaimer: this is under normal circumstances -- it's still possible to get Relaunch Chrome dialog if system is running slow and exceeds a time threshold). You'll need to rebuild brackets-shell if you want to test this now, otherwise try out Sprint 34. Let us know if this is not fixed for you. Closing. |
Start Live Development
Let Brackets restart Chrome with remote debugging enabled
Close all Chrome windows
Click the Chrome dock icon
Expected: new window opens with my "New Tab" page
Actual: new window opens with the Live Development redirection page
/cc @joelrbrandt
The text was updated successfully, but these errors were encountered: