Comments (10)
$feature firephp/firephp-for-firebug.next#1
from devtools-extension-examples.
I suppose I cannot reference the DOM due to inter-process boundary, but how do I post and receive messages between the panel DOM and the panel JS?
from devtools-extension-examples.
self.port
does not work
from devtools-extension-examples.
If the panel's iframe uses type="content", which is the recommended way, you need to use message manager to send messages between the chrome scope and the iframe.
A good example of how to send these message is in the Add-on SDK.
post-repl:
- sending message to the content
https://github.com/mozilla/addon-sdk/blob/master/examples/actor-repl/index.js#L26 - receive message within the content
https://github.com/mozilla/addon-sdk/blob/master/examples/actor-repl/data/index.html#L116 - Here is implementation of the postMessage
https://github.com/mozilla/addon-sdk/blob/master/lib/dev/panel.js#L129
Honza
from devtools-extension-examples.
This does not seem to work. I am not trying to start a debug session. When I use this and call this.debuggee.start()
I get a remote actor protocol message in the panel. I am simply trying to message with the content in the panel. Any change someone can add an example. I'll add skeleton if you give me access to this repo.
from devtools-extension-examples.
from devtools-extension-examples.
Here is an example:
https://github.com/firebug/devtools-extension-examples/tree/master/MessageManager
Honza
from devtools-extension-examples.
You should have an access to this repo now.
Honza
from devtools-extension-examples.
Thanks! This is way more than I could have figured out. These little examples are key to the success of extensions. As soon as each example has an automated test we should run these against SDK changes.
from devtools-extension-examples.
Yes, the tests are needed.
Honza
from devtools-extension-examples.
Related Issues (11)
- Wrong require statement(s?) in test file
- MessageManager messages in HTML panel HOT 1
- Dependency path for ActorRegistryFront
- A test for each example
- New Example: Customize previews for objects HOT 2
- Add example to access "window" global in the web page HOT 10
- Rename ToolboxOverlay to MyToolboxOverlay HOT 3
- DomInspector, ToolboxOverlay.attach calls target.client.listTabs twice HOT 1
- CustomActor: rename "prefix" in panel to "typeName" HOT 2
- Document custom actor's initialize() method's arguments HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from devtools-extension-examples.