-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Live Preview MultiBrowser fails to connect in this case #10374
Comments
Fix for adobe#10374. LiveDevMultiBrowser can't load when a local server is configured. Servers registered by LiveDevelopment are now being cleaned-up when closing the session.
@redmunds @sebaslv Isn't the root problem here that Multi-Browser doesn't support custom servers? (also alluded to in #10217) Is the idea that Multi-Browser should just ignore the base URL and load the page statically as if no URL was set? At a glance that seems like the sort of behavior PR #10453 is shooting for. Getting it to actually respect a custom server is a much more complex undertaking that I don't think we have a good answer for yet, right? For the same reason that we can't do HTML live updating on user servers with the 'classic' Live Preview impl (see Trello card): we can't inject content into the HTML page without having some of our code in the server side. |
Yes, the root cause is that MB doesn't support custom servers but, what makes this issue being manifested is that servers registered by This PR proposes to solve this issue by extending |
I wonder what the "correct" behavior is when the user has a custom server URL set, though. Silently serving up the page statically instead seems confusing -- maybe we should show a warning dialog the first time (per project) that Multi-Browser Live Preview is launched while a server URL (that it will ignore) is in effect. |
Also -- I take back one part of what I said in my first comment. Solving this Multi-Browser limitation could be a good deal simpler than getting Live HTML to work with a custom server. Since all we need to do for Multi-Browser is inject a single
|
@peterflynn, @sebaslv I think we're dealing with two issues here:
I think PR #10453 is an adequate fix for 1). Item 2) is a separate issue and needs to be addressed as such. So I'm going to review and merge #10453 and start the work on #10217 (which is medium priority, but I haven't got a chance to advance on it at all)... |
@busykai Looks like this was auto-closed. Should it be re-opened for the other half? |
@busykai Ah, yes. Nevermind :) |
Live Preview MultiBrowser fails to connect in this case. More details in these other comments in PR #10285
http:/localhost/
, but this is not requiredResults
Live Dev never completely connects. It stays in Connecting state.
The text was updated successfully, but these errors were encountered: