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

Enabled the remaining agents #1301

Closed
wants to merge 1 commit into from
Closed

Enabled the remaining agents #1301

wants to merge 1 commit into from

Conversation

jdiehl
Copy link
Contributor

@jdiehl jdiehl commented Jul 26, 2012

Please load the remaining agents for extension usage. Otherwise, there is no way to access this functionality.

Here is what the agents do:

  • EditAgent: listen to and execute edit events from the remote agent
  • GotoAgent: listen to and execute goto events from the remote agent + provide a goto (open document and show line) API
  • HighlightAgent: listen to and forward highlight events from the remote agent to the current live document
  • ScriptAgent: track loaded script resources, add DOM manipulation breakpoints and track these

Non of this should be very invasive. If you want to disable all remote functionality (the stuff that happens inside the Chrome life Preview) you should comment out the event listeners from RemoteAgent, instead:

106: Inspector.on("Page.loadEventFired", _onLoadEventFired);
107: Inspector.on("DOM.attributeModified", _onAttributeModified);

The first loads the remote functions into the active page and the second listens to dom changes and creates edit events if appropriate.

@joelrbrandt
Copy link
Contributor

@jdiehl after some discussion with the team, we're hoping to enable this in a slightly different way. See #1303.

I incorporated your commit from this pull into #1301, so you'll still get "credit" :-)

Closing.

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.

None yet

2 participants