Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Conversation

@jasonsanjose
Copy link
Member

This PR merges to randy/live-dev-fixes for #6889. This is not for master.

  • Optimization of live preview to the connected inspector and loaded agents instead of closing and reopening the browser
  • Use Page.navigate() instead and update agent and server state as needed.
  • Clean up agents to reset state if necessary on frameNavigated
  • Add original message data to Inspector protocol error logging to map errors to the originating message (if it exists)
  • Update "live development" strings to "live preview"

@jasonsanjose
Copy link
Member Author

@redmunds this is a much more optimized way to switch HTML files while live preview is open. It's something I've wanted to fix for a while since the first big refactoring, but never got around to it. I believe it fixes all the issues I was seeing in #6889 even after your latest changes.

@jasonsanjose jasonsanjose mentioned this pull request Mar 7, 2014
@redmunds
Copy link
Contributor

redmunds commented Mar 7, 2014

Holy crap! It changes docs so fast I thought something was broken :) Awesome!

@jasonsanjose
Copy link
Member Author

RIGHT?!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JSLint error: _reset was used before it was defined

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_createDocument() can return null. It looks like _server.add() does not handle null. Should this get handled by caller or server?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix in BaseServer

@redmunds
Copy link
Contributor

redmunds commented Mar 7, 2014

Done with review.

@jasonsanjose
Copy link
Member Author

@redmunds ready

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think you meant to commit this change.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WHEW! Thanks. Removed.

@redmunds
Copy link
Contributor

redmunds commented Mar 7, 2014

Merging.

redmunds added a commit that referenced this pull request Mar 7, 2014
Do not close/reopen live preview on currentDocumentChange
@redmunds redmunds merged commit 7bfddd1 into randy/live-dev-fixes Mar 7, 2014
@redmunds redmunds deleted the jasonsanjose/live-dev-fixes branch August 15, 2014 16:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants