[Webkit-unassigned] [Bug 164718] [GTK] webkit_navigation_action_get_modifiers() returns 0 for JavaScript events

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed May 17 23:12:27 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=164718

--- Comment #7 from Carlos Garcia Campos <cgarcia at igalia.com> ---
(In reply to antoyo from comment #5)
> I'm not authorized to see this bug.

See http://trac.webkit.org/changeset/197150

> But, in any case, surely there's an alternative way to simulate a ctrl-click?

Form the UI process you can send events to the widget. That's what we do for our tests or for web automation. That depends on the toolkit, of course, GTK+ in this case.

> I can understand that events generated by JavaScript are untrusted, but
> we're in a web extension, here.
> A web extension can access any file of the filesystem while JavaScript
> cannot, for instance, so why should events generated by a web extension be
> untrusted?

Yes, essentially it's exactly the same, it's the same code called from two different bindings (JS and GObject), but I agree that GOboject bindings can only be used from a compiled web extension that we are currently considering trusted for many other things. So, we could probably change the DOM API implementation to generate trusted events, or at least add a way to do so.

> Thanks.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170518/932c28dd/attachment.html>


More information about the webkit-unassigned mailing list