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

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 UTC