W3C home > Mailing lists > Public > public-pointer-events@w3.org > January to March 2013

PointerEvents and iframes

From: Daniel Freedman <dfreedm@google.com>
Date: Wed, 16 Jan 2013 15:29:02 -0800
Message-ID: <CAAUAVAg7uDP-6P7kiNsqQ26Q+Ch1oAtpvaLA02Jzz-0yOvC-YA@mail.gmail.com>
To: "public-pointer-events@w3.org" <public-pointer-events@w3.org>
Cc: Ojan Vafai <ojan@chromium.org>
A classic problem with using iframes is that mouse events will not fire
over them. This is particularly troublesome for user interaction and
dragging motions.

I've had a few conversations about trying to let iframes use event
retargeting instead, similar to how events bubble in Shadow DOM (
https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#event-retargeting),
and have been told that there is too much legacy around the "iframe
blackhole" to change for mouse events.

However, since Pointer Events are brand new, maybe we could add this iframe
event retargeting to the spec. In this scenario, a Pointer Event that
bubbles through an iframe will have the target changed to the iframe,
negating the possibility of an information leak to the parent window.

Thoughts?
Received on Wednesday, 16 January 2013 23:29:49 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:17:04 GMT