Skip to content

MessageManager messages in HTML panel #12

@cadorn

Description

@cadorn

I am using https://github.com/firebug/devtools-extension-examples/tree/master/MessageManager

I am trying to get messages from chrome scope in scripts loaded into the myPanel.html page.

So I am receiving messages in the frame-script.js but how do I now pass these onto the HTML page?

Using following in frame-script.js and myPanel.html respectively does not work:

content.postMessage(data, "*");
window.addEventListener("message", messageListener, false);

Do I need to send messages by using a DOM element as a proxy?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions