Skip to content

Instantly share code, notes, and snippets.

@rpl
Last active September 30, 2015 11:43
Show Gist options
  • Select an option

  • Save rpl/8626f7231c9e23f4e478 to your computer and use it in GitHub Desktop.

Select an option

Save rpl/8626f7231c9e23f4e478 to your computer and use it in GitHub Desktop.
Backbone Debugger Running on experimental Mozilla WebExtension devtools API

changes on Mozilla WebExtension API

  • new DevTools API (devtools.inspectedWindow and devtools.panels.create)
  • changes to ExtensionContent.jsm (to be able to inject a script in the page on document_start during devtools.inspectedWindow.reload)

changes to Backbone Debugger

  • differences with behavior of standard APIs (e.g. order of the W3C postMessage parameters)

remaining issues

  • timing issues on the message exchange (the panel start to listen to backboneAgent:backboneDetected in a devtools.inspectedWindow.eval callback which can be received too late, when the message was already routed to the panel)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment