I found the culprit: UnityWebAppsUtils.js (from the unity-webapps-qml
package) does this:
var script = 'import com.canonical.Oxide 1.0 as Oxide; ' +
' Oxide.ScriptMessageHandler { msgId: "UnityWebappApi-Message";
contexts: ["' +
this._WEBAPPS_USER_SCRIPT_CONTEXT +
'"]; ' +
'}';
var messageHandler = Qt.createQmlObject(script, this.webview);
messageHandler.callback = handler;
this.webview.messageHandlers = [ messageHandler ];
So it effectively overrides the webview’s existing message handlers.
** Also affects: unity-webapps-qml
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1323735
Title:
contextual menus not working in the webapp container
To manage notifications about this bug go to:
https://bugs.launchpad.net/unity-webapps-qml/+bug/1323735/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs