I don’t think the use of a WebContextDelegateWorker is correct here. If I understand the intent correctly, you want to:
- remove that WebContextDelegateWorker
- update the reminders-scripts.js script to use oxide.sendMessage(…) instead of navigator.qt.postMessage(…)
- add an Oxide.ScriptMessageHandler to the messageHandlers property of the webview to handle the message sent above
I don’t think the use of a WebContextDeleg ateWorker is correct here. If I understand the intent correctly, you want to:
- remove that WebContextDeleg ateWorker scripts. js script to use oxide.sendMessa ge(…) instead of navigator. qt.postMessage( …) sageHandler to the messageHandlers property of the webview to handle the message sent above
- update the reminders-
- add an Oxide.ScriptMes
See http:// bazaar. launchpad. net/~oxide- developers/ oxide/oxide. trunk/view/ head:/qt/ tests/qmltests/ api/tst_ ScriptMessage. qml for a complete example of how user scripts work in oxide.