Commit 34fcd80e authored by Raine Makelainen's avatar Raine Makelainen

[embedlite-components] Send embed:linkclicked message on single tap. Contributes to JB#36016

When an anchor or html area element is clicked and it contains
href, send "embed:linkclicked" message with clicked uri.
parent a45ebecc
......@@ -207,6 +207,16 @@ EmbedHelper.prototype = {
}
this._touchElement = null;
}
let uri = this._getLinkURI(element);
if (uri && (uri instanceof Ci.nsIURI)) {
let winid = Services.embedlite.getIDByWindow(content);
Services.embedlite.sendAsyncMessage(winid, "embed:linkclicked",
JSON.stringify({
"uri": uri.asciiSpec
}));
}
break;
}
case "Gesture:DoubleTap": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment