W3C home > Mailing lists > Public > public-device-apis@w3.org > January 2013

Re: [proximity, light] Dispatching events at objects (was: Please confirm DAP comment resolution)

From: Anssi Kostiainen <anssi.kostiainen@nokia.com>
Date: Thu, 31 Jan 2013 10:44:30 +0200
Cc: "public-device-apis public-device-apis@w3.org" <public-device-apis@w3.org>, Doug Turner <dougt@mozilla.com>, "ext Anne van Kesteren" <annevk@annevk.nl>, Frederick Hirsch <Frederick.Hirsch@nokia.com>
Message-Id: <03E95B43-52D1-482F-9D58-1007C0FF6B4A@nokia.com>
To: ext Rick Waldron <waldron.rick@gmail.com>
Hi Rick,

On 30.1.2013, at 19.19, ext Rick Waldron wrote:

> It's hard to grok from the snippet given—is the general idea that these events should be dispatched to the Window object? If so, then I strongly disagree for the same reasons I've given several times already—the Window/top level object is not the object of specific interest for device sensor readings. 

The proposal is about improving the current design, and is orthogonal to the discussion whether to use the Window or some other object.

The full text from the thread (archived at: <http://lists.w3.org/Archives/Public/public-device-apis/2013Jan/0084.html>):

[[

On a related note, here's an idea how this could be altered to improve privacy:

Dispatch these events only at the top-level browsing context's Window object, and if loosened a bit from there, at any nested browsing context's Window object whose Document object has the same origin as the top-level browsing context's Document.

This would allow these events to be dispatched only within iframes and frames in a frameset that have the same origin as the top-level browsing context's Document. Lose some use cases, gain some privacy protection.

]]

I'm happy to help you get your alternative proposal drafted. A more complete draft would help the working group participants and implementors to discuss and evaluate it properly.

-Anssi
Received on Thursday, 31 January 2013 08:45:33 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 31 January 2013 08:45:33 GMT