-
Notifications
You must be signed in to change notification settings - Fork 13
System messages should be pluged into the application manifest #73
Comments
Can you clarify what you mean by "plugged"? |
In Firefox OS we have: "messages": [
[ "foo", "/index.html" ],
[ "bar", "/blah.html" ]
], The current spec doesn't say how you register to get system messages. |
OK. So the setMessageHandler() doesn't actually register for a message? It only sets a handler for messages that the application had previously registered for via the manifest? |
Yes. |
OK. Then I think we should clarify that in the runtime spec. The current text gives no hints as to how registering happens. Why do you think the system messages should be declared in the manifest? Wouldn't a runtime API for registering/unregistering be enough? |
We might need a runtime API too but we definitely need something in the manifest so I prefer to delay the JS API for when we will really need it. I started writing something for that last week. I have to find time to finish it. |
From the example you gave earlier I see that the registration is on a per-document basis - message of type "foo" goes to index.html and "bar" goes to blah.html. Could you please explain what the expected behaviour is if a "bar" message arrives when:
|
I think this issue is also relevant here: #20 |
We should also consider multi-window scenarios as in #100 |
No description provided.
The text was updated successfully, but these errors were encountered: